-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 10.2.9
-
Component/s: Builds
-
None
-
1
-
Severity 3 - Minor
Issue Summary
Buildresultsummary page keeps on refreshing if the Plan is rerun after it has failed and failed Job is disabled.
Note :
1. We were not able to replicate the issue with the steps provided in the customer instance, but the customer is seeing the issue.
2. If we modify the database manually with the results which we saw in the customer instance then we can see similar issue.
Steps to Reproduce
1) Create a plan with 3 stages
2) In Stage 1 > have 2 Jobs, Stage 2 > 1 Job, Stage 3 > 1 Job
3) Make sure the Stage 2 > 1 Job fails
4) Run the build
5) The build will fail, disable the job from stage 2 which failed
6) Re-run the same failed build again
Expected Results
The build completes successfully or fails.
Actual Results
The Buildresultsummary page keeps on refreshing and you cannot perform any action on the page.
We saw the below error in the logs files > could not re-associate uninitialized transient collection
2026-01-23 10:59:58,201 INFO [AtlassianEvent::1-BAM::EVENTS:pool-2-thread-18] [DependencyChainListener] Finished checking children plans of 'xyz' for plan PLAN-KEY-508 2026-01-23 10:59:58,200 ERROR [14-BAM::ChainExec:pool-15-thread-2] [ChainExecutionThreadPoolExecutor] Error proceeding with chain execution java.lang.RuntimeException: org.springframework.orm.hibernate5.HibernateSystemException: could not re-associate uninitialized transient collection; nested exception is org.hibernate.HibernateException: could not re-associate uninitialized transient collection
The problem seems to be with the buildresultsummary table, if we see below the life_cycle_state of the row of the build_type CHAIN remains in progress and Bamboo is not able to update it and this causes the issue. If we manually change it to NotBuilt, the page refresh stops.
PLAN-KEY,2,Unknown,InProgress PLAN-KEY-BAD,2,Successful,Finished PLAN-KEY-BARR,2,Successful,Finished PLAN-KEY-BFUW,2,Successful,Finished PLAN-KEY-BFUWR,2,Successful,Finished PLAN-KEY-NU,2,Successful,Finished
Workaround
1) Restart the Bamboo Instance
or
2) Need to run some update queries on the Database if restart is not feasible often.
Please take a backup of the DB before processing ahead with the below steps
- Run the below query and make a note of buildresultsummary_id
select * from buildresultsummary where build_key like 'build-key%' and build_number='' and life_cycle_state='InProgress' order by build_number,build_key
Please replace build-key with plan-key which has issues.
Please replace build_number with the build_number which has issues.
- Run the below update query by replacing the buildresultsummary_id from the above result and replacing in the below query.
update buildresultsummary set life_cycle_state='NotBuilt' where buildresultsummary_id=''