jt2594838 commented on code in PR #18821:
URL: https://github.com/apache/iotdb/pull/18821#discussion_r4244265604
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/SchemaEngine.java:
##########
@@ -91,6 +91,9 @@ public class SchemaEngine {
private SchemaMetricManager schemaMetricManager;
+ // Published so write handlers can identify teardown failures before region
locks are removed.
+ private volatile boolean clearing;
Review Comment:
Publishes teardown state across threads because write execution may observe
clear() from another thread. init() resets it for a subsequent engine
lifecycle, while clear() marks it before schema resources are torn down.
--
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]