Caideyipi opened a new pull request, #18377:
URL: https://github.com/apache/iotdb/pull/18377

   ## Description
   
   ### Aggregate unreadable retained WAL logs
   
   Downgrade per-file WAL open failures to DEBUG and emit one WARN summary when 
a replay scan is exhausted. The summary includes the WAL directory, skipped 
file count, first/last file, and the first concise error without repeating a 
stack trace for every file.
   
   ### Report unavailable replay ranges
   
   Detect discontinuities between the expected subscription search index and 
the next retained WAL entry. Record the skipped entry count only when the 
replay cursor advances, log the unavailable range and cumulative count, and 
include `walGapSkippedEntries` in periodic queue statistics.
   
   This makes bounded WAL-retention loss visible even when the current lag 
later returns to zero.
   
   ### Verification
   
   - `ProgressWALIteratorTest`: 8 tests passed
   - 
`ConsensusPrefetchingQueueTest#testWalReplayCountsOnlyUnavailableSearchIndexes`:
 passed
   - English DataNode main and test sources compiled during the focused test run
   - Chinese locale DataNode main sources compiled with `-P with-zh-locale`
   - Spotless and Checkstyle passed
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   - [x] added unit tests or modified existing tests to cover new code paths.
   - [x] added comments explaining intent where needed.
   
   <hr>
   
   ##### Key changed/added classes
   
   - `ProgressWALIterator`
   - `ConsensusPrefetchingQueue`


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