Caideyipi commented on code in PR #19340:
URL: https://github.com/apache/iotdb/pull/19340#discussion_r4639306150
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueue.java:
##########
@@ -4873,6 +4879,8 @@ private void applySeekResetUnderWriteLock(final
PendingSeekRequest request) {
writerStates.clear();
clearRecoveryWriterProgress();
materializedProgressByWriter.clear();
+ commitManager.claimTransientInFlightStateIfPresent(
Review Comment:
[P2] Fence seek-reset ownership claims against superseded queues. This claim
unconditionally clears transient state and replaces transientOwner. A seek is
applied asynchronously after it is queued; during replacement, an old queue
worker can pass its close check while the new queue has already claimed
ownership and recorded mappings. When this line runs, the old queue steals
ownership and erases the replacement queue's outstanding ACKs; resetState can
also overwrite the shared frontier, leaving the replacement unable to commit
its replay. Please reject or abort seek resets from a superseded owner instead
of allowing this claim to take over.
--
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]