You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "Caideyipi (via GitHub)" <gi...@apache.org> on 2026/10/21 01:35:33 UTC

[PR] [Fix] Prevent stale schema queue closes after leader transfer [iotdb]

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

   Schema listener cleanup uses the local DataNode's Pipe metadata. If the SchemaRegion leader steps down while a cleanup write is in flight, Ratis can forward that close to the new leader after it has opened the queue for a new task. The late close invalidates the active iterator and stalls schema replication.
   
   Allow consensus requests to opt out of remote forwarding and apply this to schema queue closes. The new leader can reevaluate cleanup on its next metadata synchronization. Ordinary writes and queue opens retain their existing routing, and the serialized plan format is unchanged.
   
   Validation:
   - A three-peer Ratis regression transfers leadership, accepts a current-leader request, rejects the old leader's stale request, and verifies that ordinary follower writes still succeed.
   - The same regression fails against the original `origin/master` Ratis implementation because it forwards the stale request (status 200 instead of 400).
   - A DataNode regression verifies the close restriction survives cloning and serialization.
   - Spotless and the targeted regression tests pass.
   


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Fix] Prevent stale schema queue closes after leader transfer [iotdb]

Posted by "jt2594838 (via GitHub)" <gi...@apache.org>.
jt2594838 merged PR #18948:
URL: https://github.com/apache/iotdb/pull/18948


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org