sashapolo commented on code in PR #7748:
URL: https://github.com/apache/ignite-3/pull/7748#discussion_r2920639124


##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/storage/segstore/GroupIndexMeta.java:
##########
@@ -123,7 +123,14 @@ boolean onIndexCompacted(FileProperties oldProperties, 
IndexFileMeta newProperti
     }
 
     void addIndexMeta(IndexFileMeta indexFileMeta) {
-        IndexMetaArrayHolder curFileMetas = fileMetaDeque.getLast();
+        IndexMetaArrayHolder curFileMetas = fileMetaDeque.peekLast();
+
+        // Deque may be empty due to prefix truncation.
+        if (curFileMetas == null) {

Review Comment:
   Note to reviewer: same thing



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