OAK-9850: ConcurrentPrefetchAndUpdateIT.cacheConsistency fails occasi…#646
OAK-9850: ConcurrentPrefetchAndUpdateIT.cacheConsistency fails occasi…#646mreutegg merged 4 commits intoapache:trunkfrom
Conversation
…onally Keys collection passed to registerTracker must not be modified later. NodeDocumentCache.putNonConflictingDocs() must always notify other trackers. Enable test again.
stefan-egli
left a comment
There was a problem hiding this comment.
Besides fixing the test, and besides it being related to a new feature being involved (prefetch), would there also have been a possibility for outdated cache state previously?
The test was not broken and this PR does not make any changes to the test except enable it again.
I think that's possible. The added else clause in NodeDocumentCache.putNonConflictingDocs() is not specific to prefetching. |
|
Wsa wondering if it would make sense to try and come up with a test case that would have failed without this fix. Maybe it could help finding or explaining other issues (like some stray OakMerge0004 conflicts..). |
...ument/src/main/java/org/apache/jackrabbit/oak/plugins/document/mongo/MongoDocumentStore.java
Show resolved
Hide resolved
Running |
…onally Add comment about why a new HashSet is passed to registerTracker()
|
Test failure in oak-blob-plugins seems unrelated. I can reproduce the failure locally and created https://issues.apache.org/jira/browse/OAK-9879 |
…onally Add a simple test that illustrates why changes to NodeDocumentCache are necessary
@stefan-egli there is now a simple test that illustrates why changes to NodeDocumentCache are necessary. |
…onally
Keys collection passed to registerTracker must not be modified later.
NodeDocumentCache.putNonConflictingDocs() must always notify other trackers.
Enable test again.