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

   ## Description
   
   IoTConsensus checks whether a replica is read-only before a SyncLog batch 
enters its ordering queue. If shutdown makes the replica read-only while the 
batch waits, queued writes could still be applied after the final flush and 
acknowledged as successful, leaving recently accepted data missing after 
restart.
   
   Recheck the read-only state before applying each queued request. The 
existing retry handling rejects the remainder of the batch and lets the sender 
retry it. The table-model and tree-model cluster tests now wait for replication 
lag to reach zero on every DataRegion replica before flushing or restarting.
   
   ## Validation
   
   - `mvn -nsu test -pl iotdb-core/consensus 
-Dtest=IoTConsensusServerImplTest,ReplicateTest`: passed (9 tests).
   - Full reactor `test-compile` passed in English and Chinese locales.
   - Both modified cluster ITs were attempted locally but could not reach their 
final data assertions because the Windows test environment hit native memory 
exhaustion and stale cached dependencies. The dependency cache also surfaced 
unrelated existing RAT and MQTT dependency-analysis failures during reactor 
attempts.
   


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