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

Bamboo queue fail to work properly due to duplicates

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 6.10.0
    • 6.5.0, 6.7.1, 6.9.2
    • Build Queues
    • None

      Issue Summary

      Bamboo queue fail to work properly due to duplicates

      Steps to Reproduce

      Steps may vary depending on each instance

      Expected Results

      No duplicates entries in the queue, since keys should always be unique

      Actual Results

      The following error is displayed in the server logs:

      2019-07-30 00:39:30,388 ERROR [PluginSchedulerTask-KubernetesIsolatedDockerImpl] [KubernetesWatchdog] Exception caught and swallowed to preserve rescheduling of the task
      java.lang.IllegalArgumentException: Multiple entries with same key: QueuedResultKey{resultKey=BP-FLL-CUIE-323, timestamp=16838536244288330}=com.atlassian.bamboo.v2.build.queue.BuildQueueManager$QueueItemView@78f5394d and QueuedResultKey{resultKey=BP-FLL-CUIE-323, timestamp=16838536244288330}=com.atlassian.bamboo.v2.build.queue.BuildQueueManager$QueueItemView@64ee5a78
          at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150)
          at com.google.common.collect.RegularImmutableMap.checkNoConflictInBucket(RegularImmutableMap.java:104)
          at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:70)
          at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:254)
          at com.google.common.collect.Maps.uniqueIndex(Maps.java:1166)
          at com.google.common.collect.Maps.uniqueIndex(Maps.java:1140)
          at com.atlassian.bamboo.v2.build.queue.QueueManagerView.getQueueView(QueueManagerView.java:55)
          at com.atlassian.buildeng.spi.isolated.docker.DockerAgentBuildQueue.currentlyQueued(DockerAgentBuildQueue.java:72)
          at com.atlassian.buildeng.kubernetes.KubernetesWatchdog.executeImpl(KubernetesWatchdog.java:262)
          at com.atlassian.buildeng.kubernetes.KubernetesWatchdog.execute(KubernetesWatchdog.java:107)
          at com.atlassian.sal.core.scheduling.TimerPluginScheduler$PluginTimerTask.run(TimerPluginScheduler.java:75)
          at java.util.TimerThread.mainLoop(Timer.java:555)
          at java.util.TimerThread.run(Timer.java:505)
      

      Workaround

      Upgrade to a version of Bamboo higher or equal to 6.10.0.

            [BAM-20712] Bamboo queue fail to work properly due to duplicates

            No work has yet been logged on this issue.

              Unassigned Unassigned
              pdemitrio Patricio
              Affected customers:
              0 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: