jt2594838 commented on code in PR #18829:
URL: https://github.com/apache/iotdb/pull/18829#discussion_r4266342700
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueue.java:
##########
@@ -1245,9 +1259,13 @@ protected ReplayLocateDecision
locateReplayStartForRegionProgress(
final ReplayLocateDecision decision =
scanReplayStartForRequests(iterator, regionProgress, seekAfter);
if (iterator.hasIncompleteScan()) {
- return ReplayLocateDecision.locateMiss(
- regionProgress,
- "replay lookup did not complete: " +
iterator.getIncompleteScanDetail());
+ final String detail =
+ "replay lookup did not complete: " +
iterator.getIncompleteScanDetail();
+ // Retry only a deferred read. Confirmed corruption encountered
earlier in the scan must
+ // still surface as a lookup failure, even if a later file is
temporarily unreadable.
+ return iterator.isWaitingForReadableWal() &&
!iterator.hasSkippedBrokenWalFiles()
+ ? ReplayLocateDecision.retryLater(regionProgress, detail)
+ : ReplayLocateDecision.locateMiss(regionProgress, detail);
Review Comment:
i18n
--
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]