Bug 972444
Summary: | Concurrent calling of QueueImpl.deliver() results in duplicated messages | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Yong Hao Gao <hgao> |
Component: | HornetQ | Assignee: | Clebert Suconic <csuconic> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.1.0 | CC: | anmiller, csuconic, mnovak, myarboro |
Target Milestone: | ER7 | ||
Target Release: | EAP 6.1.1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-09-16 20:30:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Yong Hao Gao
2013-06-09 12:52:25 UTC
Francisco Borges <francisco.borges> made a comment on jira HORNETQ-1224 Hi Howard, I commented on the case on the forum. If we synchronize {{QueueImpl.deliver()}} on a {{deliveryGuard}}, the tests will pass (and actually run much faster). Something like this ought to fix the case: {code} private final Object deliveryGuard = new Object(); private void deliver() { synchronized (deliveryGuard) { // .... } } {code} Since you are out on vacation and we are not releasing a new version tomorrow, I'm not sending a PR on this as the fix is yours. Yong Hao Gao <hgao> made a comment on jira HORNETQ-1224 Hi Francisco, As discussed I assigned this task to you. :) Thanks. Francisco Borges <francisco.borges> updated the status of jira HORNETQ-1224 to Resolved Francisco Borges <francisco.borges> made a comment on jira HORNETQ-1224 Fix + unit test are merged. Case is fixed. Clebert Suconic <clebert.suconic> updated the status of jira HORNETQ-1224 to Closed BZ is in incorrect state. Fix for this issue is present in EAP 6.1.1.ER7(HQ 2.3.5.Final) Verified using provided test in EAP 6.1.1.ER7. |