Bamboo throws 'HHH000315: Exception executing batch' error when deleting a deployment environment
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
Bamboo presents an internal server error when deleting a deployment environment.
Diagnosis
The following appears in the $BAMBOO_HOME/logs/atlassian-bamboo.log
1
2
3
4
5
6
2017-03-24 08:57:29,575 INFO [http-nio-8085-exec-43] [DefaultStopBuildManager] 48693249-48562178-109019855: Request to stop '48693249-48562178-109019855' received from admin@******.com
2017-03-24 08:57:29,575 INFO [http-nio-8085-exec-43] [BuildQueueManagerImpl] Attempting to remove from queue: 48693249-48562178-109019855
2017-03-24 08:57:29,581 WARN [http-nio-8085-exec-43] [DeploymentsInProgressServiceImpl] Not found deployment in progress record for result id: 109019855
2017-03-24 08:57:29,616 ERROR [http-nio-8085-exec-43] [BatchingBatch] HHH000315: Exception executing batch [Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1]
2017-03-24 08:57:29,617 ERROR [http-nio-8085-exec-43] [ExceptionMappingInterceptor] Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
org.springframework.orm.hibernate4.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
Cause
Deployment has not completed successfully and is in an inconsistent state.
Solution
Workaround
Restart Bamboo.
Delete the environment.
Was this helpful?