alievmirza commented on code in PR #7978:
URL: https://github.com/apache/ignite-3/pull/7978#discussion_r3072994814


##########
modules/page-memory/src/integrationTest/java/org/apache/ignite/internal/pagememory/tree/AbstractBplusTreePageMemoryTest.java:
##########
@@ -3016,7 +3026,7 @@ public Long getLookupRow(BplusTree<Long, ?> tree, long 
pageAddr, int idx) {
     /**
      * {@link TreeRowClosure} implementation for the test.

Review Comment:
   Javadock is outdated.



##########
modules/page-memory/src/integrationTest/java/org/apache/ignite/internal/pagememory/tree/AbstractBplusTreePageMemoryTest.java:
##########
@@ -3033,26 +3043,26 @@ static class TestTreeRowClosure implements 
TreeRowClosure<Long, Long> {
         /** {@inheritDoc} */
         @Override
         public boolean apply(BplusTree<Long, Long> tree, BplusIo<Long> io, 
long pageAddr, int idx) throws IgniteInternalCheckedException {
-            assertFalse(found);
-
-            found = expVal == null || io.getLookupRow(tree, pageAddr, 
idx).equals(expVal);
+            if (expVal == null || io.getLookupRow(tree, pageAddr, 
idx).equals(expVal)) {
+                found = true;
+            }
 
-            return !found;
+            return true;
         }
     }
 
     /**
      * {@link TreeRowClosure} implementation for the test.

Review Comment:
   the same comment for the javadoc



-- 
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]

Reply via email to