jt2594838 commented on code in PR #18821:
URL: https://github.com/apache/iotdb/pull/18821#discussion_r4244264712
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/executor/RegionWriteExecutor.java:
##########
@@ -176,6 +176,12 @@ public RegionExecutionResult execute(final
ConsensusGroupId groupId, final PlanN
return RegionExecutionResult.create(
false, errorMsg,
RpcUtils.getStatus(TSStatusCode.NO_AVAILABLE_REGION_GROUP));
}
+ // SchemaEngine clears regions before DataNodeRegionManager removes
their validation locks.
+ // Failures from an in-flight schema write during that window must
remain retryable.
+ if (groupId instanceof SchemaRegionId && schemaEngine.isClearing()) {
Review Comment:
Maps exceptions from in-flight schema writes to retryable status while
SchemaEngine teardown is active. The validation lock may still be registered
after clear begins, so the general outer catch cannot infer region availability
from that lock.
--
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]