This is an automated email from the ASF dual-hosted git repository.

yongzao pushed a commit to branch fix-create-region-npe
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit ce1e8df23ff694825c12cbebb668c1acba72e6b8
Author: Yongzao <[email protected]>
AuthorDate: Fri Sep 12 16:54:27 2025 +0800

    Update PartitionInfo.java
---
 .../iotdb/confignode/persistence/partition/PartitionInfo.java       | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java
 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java
index c85297764f9..c14d0ffcd79 100644
--- 
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java
+++ 
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/partition/PartitionInfo.java
@@ -193,6 +193,12 @@ public class PartitionInfo implements SnapshotProcessor {
     plan.getRegionGroupMap()
         .forEach(
             (database, regionReplicaSets) -> {
+              if (isDatabasePreDeleted(database)) {
+                LOGGER.warn(
+                    "[CreateRegionGroups] Database {} has been deleted, 
corresponding RegionGroups will not be created.",
+                    database);
+                return;
+              }
               
databasePartitionTables.get(database).createRegionGroups(regionReplicaSets);
               regionReplicaSets.forEach(
                   regionReplicaSet ->

Reply via email to