Older Git and LFS versions installed in Bamboo can cause delay in build when using Automatic branch merging
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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.
... 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.