[
https://issues.apache.org/jira/browse/CURATOR-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721770#comment-14721770
]
Cameron McKenzie commented on CURATOR-254:
------------------------------------------
Ok, I think that the test is optimistic then.
The test defines the maximum items as 10, has 4 threads putting items onto the
queue and will fail if at any point the number of work items on the queue is >
20. For the pathological case where all the threads are putting work at the
same time and none are consuming anything, then it would seem that a value
approaching 40 would be possible? Perhaps the assertion should be changed so
that the max value is num threads * max value?
> TestBoundedDistributedQueue:testMulti fails intermittently
> ----------------------------------------------------------
>
> Key: CURATOR-254
> URL: https://issues.apache.org/jira/browse/CURATOR-254
> Project: Apache Curator
> Issue Type: Bug
> Affects Versions: 2.8.0
> Reporter: Cameron McKenzie
> Assignee: Cameron McKenzie
> Fix For: 2.9.1
>
> Attachments:
> TEST-org.apache.curator.framework.recipes.queue.TestBoundedDistributedQueue.xml
>
>
> The TestBoundedDistributedQueue:testMulti fails intermittently. See attached
> test report.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)