Build expiry is slow for results with lots of tests (?)

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Done
    • 6.2.0
    • Component/s: None
    • None

      Especially when run for the first time. In case a full batch of build results is removed (500), it make take up to 20s to remove single build results (consisting of ~10 job results).
      Most probably this is related to Hibernate session not flushed and Hibernate going through all objects in session.
      We should:

      • find out if this is Hibernate slowing us down or something else
      • should we decrease batch size (from 500 to 100?)

      Example from Cloud instance with 1.5GB heap allocated. It took 6 minutes to delete single Chain result (that was probably at the end of 500 records batch)

      2016-09-09 14:42:10,748 WARN [7-BuildExpiryBean:pool-13-thread-1] [BuildResultsSummaryManagerImpl] Couldn't delete log file for plan [GBEE-DSRT-RFS1], build [1633], file [/data/jirastudio/bamboo/home/xml-data/builds/GBEE-DSRT-RFS1/download-data/build_logs/GBEE-DSRT-RFS1-1633.log]
      2016-09-09 14:42:10,754 WARN [7-BuildExpiryBean:pool-13-thread-1] [BuildResultsSummaryManagerImpl] Couldn't delete log file for plan [GBEE-DSRT], build [1633], file [/data/jirastudio/bamboo/home/xml-data/builds/GBEE-DSRT/download-data/build_logs/GBEE-DSRT-1633.log]
      2016-09-09 14:48:38,303 WARN [7-BuildExpiryBean:pool-13-thread-1] [BuildResultsSummaryManagerImpl] Couldn't delete log file for plan [GBEE-DSRT-RFS1], build [1794], file [/data/jirastudio/bamboo/home/xml-data/builds/GBEE-DSRT-RFS1/download-data/build_logs/GBEE-DSRT-RFS1-1794.log]
      2016-09-09 14:48:38,304 WARN [7-BuildExpiryBean:pool-13-thread-1] [BuildResultsSummaryManagerImpl] Couldn't delete log file for plan [GBEE-DSRT-RFS2], build [1794], file [/data/jirastudio/bamboo/home/xml-data/builds/GBEE-DSRT-RFS2/download-data/build_logs/GBEE-DSRT-RFS2-1794.log]
      2016-09-09 14:48:38,305 WARN [7-BuildExpiryBean:pool-13-thread-1] [BuildResultsSummaryManagerImpl] Couldn't delete log file for plan [GBEE-DSRT-ISF], build [1794], file [/data/jirastudio/bamboo/home/xml-data/builds/GBEE-DSRT-ISF/download-data/build_logs/GBEE-DSRT-ISF-1794.log]
      2016-09-09 14:48:38,305 WARN [7-BuildExpiryBean:pool-13-thread-1] [BuildResultsSummaryManagerImpl] Couldn't delete log file for plan [GBEE-DSRT], build [1794], file [/data/jirastudio/bamboo/home/xml-data/builds/GBEE-DSRT/download-data/build_logs/GBEE-DSRT-1794.log]
      

            Assignee:
            Przemek Bruski
            Reporter:
            Krystian Brazulewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: