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
[FORWARDPORT] Make comparators able to act on keys and values #15380
[FORWARDPORT] Make comparators able to act on keys and values #15380
Conversation
@taburet I think we can merge this with a single approval. WDYT? |
@mmedenjak it's better to review it, it's not a clean cherry-pick, mostly because the client code was merged into the core. |
@@ -444,6 +445,32 @@ public void testLargePageSizeIsNotCausingIndexOutBoundsExceptions() { | |||
} | |||
} | |||
|
|||
@Test | |||
public void testCustomComparatorAbleToActOnKeysAndValues() { |
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.
It seems in the PagingPredicateTest
we have exactly the same test. Can we somehow avoid code duplication?
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.
Merged member and client paging predicate tests together.
A custom paging predicate comparator may act on keys and values at the same time even if only the keys were requested, e.g. using `IMap.keySet` call. Before this fix only keys were fetched for `IMap.keySet`, making comparators unable to act on values.
6037b49
to
ac88eb2
Compare
A custom paging predicate comparator may act on keys and values at the
same time even if only the keys were requested, e.g. using
IMap.keySet
call. Before this fix only keys were fetched for
IMap.keySet
, makingcomparators unable to act on values.
Original maintenance PR: #15324