Ring-k commented on a change in pull request #1387:
URL: https://github.com/apache/incubator-iotdb/pull/1387#discussion_r443933514



##########
File path: 
cluster/src/main/java/org/apache/iotdb/cluster/server/member/MetaGroupMember.java
##########
@@ -1520,12 +1534,31 @@ private TSStatus processPartitionedPlan(PhysicalPlan 
plan) throws UnsupportedPla
     } catch (MetadataException e) {
       logger.error("Cannot route plan {}", plan, e);
     }
-    // the storage group is not found locally, forward it to the leader
+    // the storage group is not found locally
     if (planGroupMap == null || planGroupMap.isEmpty()) {
-      logger.debug("{}: Cannot found storage groups for {}", name, plan);
+      if (plan instanceof InsertPlan && 
IoTDBDescriptor.getInstance().getConfig()

Review comment:
       The problem you mentioned refers to `CreateTimeseriesPlan`, 
`InsertTimeseriesPlan`, `DeleteTimeseriesPlan` and `DeleteTimeseriesPlan`. 
However, if storage group is not set when executing `DeleteTimeseriesPlan` and 
`DeleteTimeseriesPlan`, logically there's no necessity for the storage group to 
be created. As in the method `executeNonQuery` in `MetaGroupMember`, these two 
plans will trigger `processNonPartitionDataPlan` and 
`processNonPartitionMetaPlan` respectively. `CreateTimeseriesPlan` and 
`InsertTimeseriesPlan` are "partitioned plans". As a result, if storage group 
is not set for these 2 types, auto creation will be performed. 




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to