Phillippko commented on code in PR #5590:
URL: https://github.com/apache/ignite-3/pull/5590#discussion_r2034797733


##########
modules/page-memory/src/main/java/org/apache/ignite/internal/pagememory/tree/BplusTree.java:
##########
@@ -4903,16 +4901,17 @@ private boolean releaseForRetry(Tail<L> t) {
             // Here we wanted to do a regular merge after all the important 
operations,
             // so we can leave this invalid tail as is. We have no other 
choice here
             // because our tail is not long enough for retry. Exiting.
-            assert isRemoved();
-            assert needReplaceInner != TRUE && needMergeEmptyBranch != TRUE;
+            assert isRemoved() && !needReplaceInner && needMergeEmptyBranch != 
TRUE
+                    : "isRemoved=" + isRemoved() + ", needReplaceInner=" + 
needReplaceInner
+                    + ", needMergeEmptyBranch=" + needMergeEmptyBranch;
 
             return false;
         }
 
         @Override
         protected Result finishTail() throws IgniteInternalCheckedException {
-            assert !isFinished();
-            assert tail.type == Tail.EXACT && tail.lvl >= 0 : tail;
+            assert !isFinished() && tail.type == Tail.EXACT && tail.lvl >= 0 
&& needMergeEmptyBranch != READY
+                    : "isFinished=" + isFinished() + ", tail=" + tail + ", 
needMergeEmptyBranch=" + needMergeEmptyBranch;

Review Comment:
   If multiple assertions are broken, we won't know about it. With one 
assertion, we have a little more information for debugging 



-- 
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-unsubscr...@ignite.apache.org

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

Reply via email to