liyuheng55555 commented on code in PR #13217:
URL: https://github.com/apache/iotdb/pull/13217#discussion_r1722610130
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/executor/RegionWriteExecutor.java:
##########
@@ -241,22 +238,25 @@ public RegionExecutionResult visitPipeEnrichedInsertNode(
private RegionExecutionResult executeDataInsert(
InsertNode insertNode, WritePlanNodeExecutionContext context) {
- RegionExecutionResult response = new RegionExecutionResult();
+ if (context.getRegionWriteValidationRWLock() == null) {
+ String message = "Failed to get the lock of the region because the
region is not existed.";
+ return RegionExecutionResult.create(
+ false, message,
RpcUtils.getStatus(TSStatusCode.WRITE_PROCESS_ERROR, message));
+ }
+
Review Comment:
@HxpSerein Then maybe rename it to `readNeedRetry` ?
--
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]