updateCurrentHandle method call is moved from under assert clause - Fixes
@@ -1297,7 +1297,9 @@ public class FileWriteAheadLogManager extends GridCacheSharedManagerAdapter impl
if (next.getSegmentId() - lashCheckpointFileIdx() >= maxSegCountWithoutCheckpoint)
cctx.database().forceCheckpoint("too big size of WAL without checkpoint");
- assert updateCurrentHandle(next, hnd) : "Concurrent updates on rollover are not allowed";
+ boolean updated = updateCurrentHandle(next, hnd);
+
+ assert updated : "Concurrent updates on rollover are not allowed";
if (walAutoArchiveAfterInactivity > 0)
lastRecordLoggedMs.set(0);
