Older Git and LFS versions installed in Bamboo can cause delay in build when using Automatic branch merging

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When LFS is enabled for a repository and Automatic branch merging is enabled, plan branches may spend a significant amount of time ~35 minutes to 1 hour in the queue before it starts building a new change.

Environment

This applies to Bamboo DC or server versions.

Diagnosis

  • Perform a thread dump

    • The analysis will show the threads are blocked waiting for a slow-performing LFS thread.

      1 2 3 4 ... com.atlassian.bamboo.plugins.git.GitCommandProcessor.runLfsPullCommand(GitCommandProcessor.java:575) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.checkout(NativeGitOperationHelper.java:491) ...

Cause

  • It is potentially caused by a performance bottleneck when older Git and LFS versions are installed and used (e.g. Git 1.8.3, LFS 2.10.0).

Solution

  • Upgrade Git and LFS to a more recent supported version.

Updated on February 26, 2025

Still need help?

The Atlassian Community is here for you.