-
Bug
-
Resolution: Fixed
-
Low
-
10.2.2, 9.6.11, 9.6.12
-
None
-
1
-
Severity 3 - Minor
-
1
-
Issue Summary
Bamboo Deployment shared/serverState/secureTokens are not cleanup post Deployment jobs which caused performance issues over time on starting Bamboo with -Dbamboo.ignore.server.state.on.restart=true.
Steps to Reproduce
- create a plan and deployment project
- Run a deployment
- Check the files inside <SHARED_HOME>/serverState/
Expected Results
empty directory shared/serverState/secureTokens
Actual Results
the files in the shared/serverState/secureTokens was not deleted. This can created significant performance impact when you have millions of secureTokens files.
shared/serverState/secureTokens: total 24 -rw-r----- 1 bamboo bamboo 344 Mar 27 05:59 1114113-1277953-1540097.xml -rw-r----- 1 bamboo bamboo 350 Mar 27 05:59 859619ef-7b7e-485b-a4de-c6ea13f221e8.xml -rw-r----- 1 bamboo bamboo 344 Mar 27 06:00 1114113-1277953-1540098.xml -rw-r----- 1 bamboo bamboo 350 Mar 27 06:00 a756c3ec-085f-4355-96ef-a22d650a51db.xml -rw-r----- 1 bamboo bamboo 344 Mar 27 06:02 1114113-1277953-1540099.xml -rw-r----- 1 bamboo bamboo 350 Mar 27 06:02 1d1a0038-aee7-4df0-ac42-0cce63a68b6b.xml
Workaround
Manually deleting the old files please be aware that this can impact the build resiliency