Bug 535436 (RHQ-2131)
Summary: | hitting JDK1.5 concurrency bug in inventorymanager | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Charles Crouch <ccrouch> | ||||
Component: | No Component | Assignee: | John Mazzitelli <mazz> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Rajan Timaniya <rtimaniy> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 1.2 | CC: | cwelton, hbrock, jshaughn, mazz, rtimaniy, tao | ||||
Target Milestone: | --- | Keywords: | SubBug | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
URL: | http://jira.rhq-project.org/browse/RHQ-2131 | ||||||
Whiteboard: | |||||||
Fixed In Version: | 1.4 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-05-20 12:45:51 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 565628, 591531 | ||||||
Attachments: |
|
Description
Charles Crouch
2009-06-05 23:13:00 UTC
Push to 1.4 This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2131 Temporarily adding the keyword "SubBug" so we can be sure we have accounted for all the bugs. keyword: new = Tracking + FutureFeature + SubBug making sure we're not missing any bugs in rhq_triage I see four instances in InventoryManager that use inventoryEventListeners.toArray We just need to change it to, say, copy via constructor to a new object. Created attachment 408131 [details] bz535436.patch attached .patch file that should work around this bug. All adding/removing/copying performed on the listeners' set are protected by synchronized block now. gwt branch commit ac4460c69494fc6720de5d9ba03af5c6b89ed989 we can either cherry-pick that over to master or wait until the next gwt->master merge cherry pick into master is done commit 901a44092dd5031653ac056bd9fd925dc97ab43e Date: Wed Apr 21 13:36:48 2010 -0400 Mazz Is there anything we can do to test this is fixed? No replication tests that I know of. All I did was (based on that sun bug report) removed calls to toArray and ensured the code is synchronized. I never saw this break, but since toArray is no longer used, that problem should go away. The synchronization code I added was pretty basic so that stuff should be good. Closing bug as per discussion with Corey and Mazz. |