Caideyipi commented on code in PR #17938:
URL: https://github.com/apache/iotdb/pull/17938#discussion_r3417753427


##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/partition/DataPartition.java:
##########
@@ -221,8 +221,20 @@ public List<TRegionReplicaSet> 
getDataRegionReplicaSetForWriting(
     final List<TRegionReplicaSet> dataRegionReplicaSets = new ArrayList<>();
     final Map<TSeriesPartitionSlot, Map<TTimePartitionSlot, 
List<TRegionReplicaSet>>>
         dataBasePartitionMap = dataPartitionMap.get(databaseName);
+    if (dataBasePartitionMap == null) {
+      throw new RuntimeException(
+          "Database "
+              + databaseName
+              + " not exists and failed to create automatically because 
enable_auto_create_schema is FALSE.");

Review Comment:
   Fixed



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

Reply via email to