dlmarion commented on code in PR #4486:
URL: https://github.com/apache/accumulo/pull/4486#discussion_r1581342931
##########
server/base/src/test/java/org/apache/accumulo/server/SetEqualityIteratorTest.java:
##########
@@ -150,8 +154,11 @@ public void testTabletWithOneFile() throws IOException {
// Asserting the result
assertEquals(new Key(tabletRow, family),
setEqualityIteratorOneFile.getTopKey());
// The iterator should produce a value that is equal to the expected value
on the condition
- var condition =
SetEqualityIterator.createCondition(Collections.singleton(file1),
- storedTabletFile -> storedTabletFile.getMetadata().getBytes(UTF_8),
family);
+ var condition =
+
SetEqualityIterator.createCondition(tmOneFile.getFilesMap().entrySet(), entry
-> {
+ return (entry.getKey().getMetadata() +
SetEqualityIterator.VALUE_SEPARATOR
+ + entry.getValue().encodeAsString()).getBytes(UTF_8);
+ }, family, true);
Review Comment:
ok, I will have to look at this and add more tests. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]