Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-26066

Bamboo Deployment serverStates are not cleanup post Deployment

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 11.0.0, 10.2.3
    • 10.2.2, 9.6.11, 9.6.12
    • Deployments
    • None

      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 

            [BAM-26066] Bamboo Deployment serverStates are not cleanup post Deployment

            There are no comments yet on this issue.

              851f15845f55 Mateusz Szmal
              661435e617fd Vani
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: