You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "sanpwc (via GitHub)" <gi...@apache.org> on 2023/06/20 07:50:30 UTC

[GitHub] [ignite-3] sanpwc commented on a diff in pull request #2209: IGNITE-19731 Fixed ItTableScanTest different test failed

sanpwc commented on code in PR #2209:
URL: https://github.com/apache/ignite-3/pull/2209#discussion_r1234877316


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/SortedIndexLocker.java:
##########
@@ -100,7 +100,12 @@ public CompletableFuture<IndexRow> locksForScan(UUID txId, Cursor<IndexRow> curs
                 return null;
             }
 
-            return peekCursor.next();
+            IndexRow nextRow = peekCursor.next();
+
+            assert rowIdMatches(indexRow, nextRow) :

Review Comment:
   What if same tx will concurrently insert one more key right in from of nextRow?



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org