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 

          Form Name

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

            Jonathan Barth made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 1003770 ]
            Jonathan Barth made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 1003767 ]
            Alexey Chystoprudov made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            SET Analytics Bot made changes -
            UIS New: 1
            Mateusz Szmal made changes -
            Fix Version/s New: 10.2.3 [ 110911 ]
            Fix Version/s New: 11.0.0 [ 110791 ]
            Mateusz Szmal made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Mateusz Szmal made changes -
            Remote Link New: This issue links to "+core+ Dogfooding › TBD Test Git Branch Detection › bugfix-BAM-26066-serverStates-are-not-cleanup-post-Deployment (tardigrade-bamboo)" [ 1001431 ]
            Mateusz Szmal made changes -
            Status Original: Gathering Impact [ 12072 ] New: In Progress [ 3 ]
            Mateusz Szmal made changes -
            Assignee New: Mateusz Szmal [ 851f15845f55 ]

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

                Created:
                Updated:
                Resolved: