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

   Currently, SchemaRegion has LINEARIZABLE reads set up, and its state machine 
stops writing when the system is readonly, potentially causing the query to 
freeze indefinitely.
   
![img_v3_02cd_b5506948-93bf-41a6-b8d1-9c34ed85caeg](https://github.com/apache/iotdb/assets/32640567/7fc427cd-ff51-4e63-9626-36c0dbb22774)
   
![img_v3_02cd_53be8b5c-389f-47b6-a2e0-2d804b36a1ag](https://github.com/apache/iotdb/assets/32640567/7ae42cce-9b34-454f-9759-0d3e11812ceb)
   
   
   In fact, we only need to process dataRegion, because the semantics of 
readonly itself does not prevent metadata from being written. In addition, 
dataregion is not LINEARIZABLE read by default. Therefore, even if the 
dataregion is ratis, there will be no stuck problem.
   
   In addition, the problem comes from the earliest 
[issue](https://issues.apache.org/jira/browse/IOTDB-5843), the current 
shutdownhook would stop the RPC client service at the beginning, Therefore, 
this change will not cause any worse effects.


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