New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISPN-13612 InvalidatedNearRemoteCache can persist stale values in cas… #11195
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just one question.
MetadataValue<V> nearValue = nearcache.get(key); | ||
if (nearValue == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could a concurrent get retrieve the placeholder here? Should we extend the if check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it can... I forgot to add || nearValue.value() == null
. Good catch.
...nt/src/test/java/org/infinispan/client/hotrod/near/InvalidationNearCacheConcurrencyTest.java
Show resolved
Hide resolved
b7b9b57
to
5c6fe3c
Compare
Updated to fix one of the comments, unfortunately I am not sure of a better way then a sleep without making the test very complex to fix the timing issue :( |
client/hotrod-client/src/main/java/org/infinispan/client/hotrod/near/NearCache.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't client/hotrod
be changed too?
client/hotrod-client/src/test/java/org/infinispan/client/hotrod/near/AssertsNearCache.java
Show resolved
Hide resolved
client/hotrod-client/src/test/java/org/infinispan/client/hotrod/near/MockNearCacheService.java
Outdated
Show resolved
Hide resolved
...nt/src/test/java/org/infinispan/client/hotrod/near/InvalidationNearCacheConcurrencyTest.java
Outdated
Show resolved
Hide resolved
Yes, I guess I erroneously thought you couldn't use it in the new client, but looking at the code closer I was wrong :D |
5c6fe3c
to
66c37e0
Compare
Review comments are addressed as I could. Just adding documentation note as I forgot to push before. |
66c37e0
to
90915d5
Compare
Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a bunch of nitpicks 🤣
client/hotrod/src/main/java/org/infinispan/hotrod/near/NearCacheService.java
Outdated
Show resolved
Hide resolved
client/hotrod-client/src/main/java/org/infinispan/client/hotrod/near/NearCacheService.java
Outdated
Show resolved
Hide resolved
client/hotrod/src/main/java/org/infinispan/hotrod/near/NearCacheService.java
Outdated
Show resolved
Hide resolved
client/hotrod/src/main/java/org/infinispan/hotrod/near/NearCacheService.java
Outdated
Show resolved
Hide resolved
…e of concurrent access
90915d5
to
03acc1c
Compare
Updated trace messages. |
merged! thanks @wburns ! |
…e of concurrent access
https://issues.redhat.com/browse/ISPN-13612