You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Cameron McKenzie (JIRA)" <ji...@apache.org> on 2014/07/30 02:52:39 UTC
[jira] [Commented] (CURATOR-115) delayeddistributedqueue failed to
sort children
[ https://issues.apache.org/jira/browse/CURATOR-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14078718#comment-14078718 ]
Cameron McKenzie commented on CURATOR-115:
------------------------------------------
Can you see if you can reproduce this against Curator 1.6.0? I believe that CURATOR-116 should fix this issue.
> delayeddistributedqueue failed to sort children
> -----------------------------------------------
>
> Key: CURATOR-115
> URL: https://issues.apache.org/jira/browse/CURATOR-115
> Project: Apache Curator
> Issue Type: Bug
> Components: Recipes
> Affects Versions: 2.4.2
> Environment: linux, jdk 7
> Reporter: kimi
>
> 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)
--
This message was sent by Atlassian JIRA
(v6.2#6252)