Bamboo Deployment serverStates are not cleanup post Deployment

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 11.0.0, 10.2.3
    • Affects Version/s: 10.2.2, 9.6.11, 9.6.12
    • Component/s: Deployments
    • 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

      1. create a plan and deployment project
      2. Run a deployment 
      3. 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 

            Assignee:
            Mateusz Szmal
            Reporter:
            Vani
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: