Bug 882990
| Summary: | Two PrepareCommands in parallel cause ConcurrentModificationException | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Radim Vansa <rvansa> |
| Component: | Infinispan | Assignee: | Tristan Tarrant <ttarrant> |
| Status: | CLOSED UPSTREAM | QA Contact: | Martin Gencur <mgencur> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.1.0 | CC: | jdg-bugs |
| Target Milestone: | ER9 | ||
| Target Release: | 6.1.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-02-10 03:27:05 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
Radim Vansa
2012-12-03 15:11:36 UTC
Adrian Nistor <anistor> made a comment on jira ISPN-2578 This issue is now possible because of NBST command forwarding. Previously it was impossible to have two commands for the same TX being executed in parallel, so no thread safety was taken into consideration. This leads now to many issues and the one described here is just one instance, so maybe we should try to solve the general case: avoid two TX commands for same global tx id entering the interceptor chain simultaneously, possibly by synchronizing on the cache tx object prior to this. Or maybe just take the simple route of using synchronized collections for the internals of the tx object? Not sure which one is best, but certainly I would not apply a local fix for this ConcurrentModificationException. Adrian Nistor <anistor> made a comment on jira ISPN-2578 Integrated. Thanks! This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |