Bug 918450
| Summary: | org.infinispan.lucene.DirectoryOnMultipleCachesTest.verifyIntendedLockCachesUsage fails randomly | |||
|---|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Anna Manukyan <amanukya> | |
| 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: | --- | |||
| Target Release: | 6.2.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 921984 (view as bug list) | Environment: | ||
| Last Closed: | 2025-02-10 03:27:33 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 921984 | |||
|
Description
Anna Manukyan
2013-03-06 09:25:45 UTC
Pedro Ruivo <pedroruivo2> made a comment on jira ISPN-2896 I think that bug is caused by the removeAsync when the value == 0. Simplify code: {code:java} int refCount = refCountObject.intValue(); newValue = refCount - 1; locksCache.replace(readLockKey, refCountObject, newValue); if (newValue == 0) { locksCache.withFlags(Flag.IGNORE_RETURN_VALUES).removeAsync(readLockKey); } {code} So, when the assertion is done, the value can be zero or one. In case of zero, we need to check if the key is really removed. Resolved upstream Sanne Grinovero <sanne+jbossorg> updated the status of jira ISPN-2896 to Closed This product has been discontinued or is no longer tracked in Red Hat Bugzilla. |