jt2594838 commented on code in PR #18821:
URL: https://github.com/apache/iotdb/pull/18821#discussion_r4244292018
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/executor/RegionWriteExecutor.java:
##########
@@ -957,6 +971,9 @@ private RegionExecutionResult executeAlterTimeSeries(
new PipeEnrichedWritePlanNode(node), context)
: PlanVisitor.super.visitAlterTimeSeries(node, context);
} catch (MetadataException e) {
+ if (schemaEngine.isClearing()) {
+ return createSchemaRegionUnavailableResult();
Review Comment:
The MTree cleared-root guard reports PathNotExistException, which this
validation method catches locally. Mapping MetadataException to the shared
retryable result while SchemaEngine is clearing prevents this catch from
returning a normal path-not-exist status during shutdown; ordinary metadata
errors retain their existing behavior.
--
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]