Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-115

delayeddistributedqueue failed to sort children

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • None
    • Recipes
    • None
    • linux, jdk 7

    Description

      i have a delayeddistributed queues to store some jobs, on startup, sometimes this issue come up:

      recipes.queue.DistributedDelayQueue$1-QueueBuilder-5 [ERROR] Exception caught in background handler
      java.lang.IllegalArgumentException: Comparison method violates its general contract!
      at java.util.TimSort.mergeLo(TimSort.java:747)
      at java.util.TimSort.mergeAt(TimSort.java:483)
      at java.util.TimSort.mergeCollapse(TimSort.java:408)
      at java.util.TimSort.sort(TimSort.java:214)
      at java.util.TimSort.sort(TimSort.java:173)
      at java.util.Arrays.sort(Arrays.java:659)
      at java.util.Collections.sort(Collections.java:217)
      at org.apache.curator.framework.recipes.queue.DistributedDelayQueue$1.sortChildren(DistributedDelayQueue.java:89)
      at org.apache.curator.framework.recipes.queue.DistributedQueue.runLoop(DistributedQueue.java:551)
      at org.apache.curator.framework.recipes.queue.DistributedQueue.access$000(DistributedQueue.java:65)
      at org.apache.curator.framework.recipes.queue.DistributedQueue$1.call(DistributedQueue.java:196)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:744)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              khiemu@googlemail.com kimi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: