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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to