| Summary: | [GSS](JDG 6.x) Non-threadsafe use of HashSet in AdvancedAsyncCacheLoader | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | dereed |
| Component: | Infinispan | Assignee: | Tristan Tarrant <ttarrant> |
| Status: | VERIFIED --- | QA Contact: | Martin Gencur <mgencur> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3.2 | CC: | jdg-bugs, ssiddiqu, vjuranek, wfink |
| Target Milestone: | ER1 | ||
| Target Release: | 6.6.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1309749, 1314934 | ||
|
Description
dereed
2016-02-26 03:06:26 UTC
Possible fixes: - use Collections.synchronizedSet or another other thread-safe structure - synchronize on the set around the only multi-threaded access to it in loadAllKeys$CacheLoaderTask#processEntry Could you please tell me what is the configuration in this case (I'm especially interested which CacheLoader is used underneath) ? It's using the <singleFile> cache store. The issue was seen during a cache.entrySet() call. Also relevant -- the loader is configured for async.
<singleFile ...>
<async enabled="true" threadPoolSize="5" .../>
</singleFile>
The issue occurs with the local file store , but other stores should be examined for this possible race condition. As the # of entries in the cache increases, the odds of hitting it again increase also. Sebastian Łaskawiec <slaskawi> updated the status of jira ISPN-6276 to Closed This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions |