ivandasch commented on code in PR #10183:
URL: https://github.com/apache/ignite/pull/10183#discussion_r941189320
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/FileWriteAheadLogManager.java:
##########
@@ -2185,6 +2185,13 @@ private void initAlreadyCompressedSegments() {
if (alreadyCompressed.length > 0)
segmentAware.onSegmentCompressed(alreadyCompressed[alreadyCompressed.length -
1].idx());
+ else {
+ // We have to set a starting index for the compressor.
+ FileDescriptor[] alreadyArchived =
scan(walArchiveDir.listFiles(WAL_SEGMENT_FILE_FILTER));
Review Comment:
If wal history is quite big and there are many archived files the scan can
be quite slow
--
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]