sashapolo commented on code in PR #7748:
URL: https://github.com/apache/ignite-3/pull/7748#discussion_r2920636395
##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/storage/segstore/AbstractMemTable.java:
##########
@@ -56,13 +56,13 @@ public void truncateSuffix(long groupId, long
lastLogIndexKept) {
Map<Long, SegmentInfo> memtable = memtable(groupId);
memtable.compute(groupId, (id, segmentInfo) -> {
- if (segmentInfo == null || lastLogIndexKept <
segmentInfo.firstLogIndexInclusive()) {
- // If the current memtable does not have information for the
given group or if we are truncating everything currently
- // present in the memtable, we need to write a special "empty"
SegmentInfo into the memtable to override existing persisted
- // data during search.
+ if (segmentInfo == null) {
Review Comment:
Note to reviewer: this was a bug, not related to this PR per-se.
--
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]