You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ebc264
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/IoTDBRegionOperationReliabilityITFramework.java
+43Lines changed: 43 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,27 @@ public class IoTDBRegionOperationReliabilityITFramework {
119
119
LOGGER.info("Cluster has been restarted");
120
120
};
121
121
122
+
/**
123
+
* Gracefully stop (SIGTERM, not a forcible kill) the ConfigNode that hit the kill point, then
124
+
* restart it. A graceful stop lets the ConfigNode run its shutdown hooks, which interrupts the
125
+
* in-flight region-operation procedure worker. This reproduces a leader switch / graceful
126
+
* shutdown during AddRegionPeer: the interrupted {@code waitTaskFinish()} returns PROCESSING
127
+
* while the AddRegionPeerTask is still running on the coordinator DataNode. The procedure must
128
+
* NOT silently end here, otherwise the parent RegionMigrateProcedure would falsely treat AddPeer
129
+
* as complete and remove the source replica before the destination replica is actually Running.
130
+
* See AddRegionPeerProcedure#executeFromState DO_ADD_REGION_PEER PROCESSING branch.
Copy file name to clipboardExpand all lines: integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv1/IoTDBRegionMigrateConfigNodeCrashIoTV1IT.java
Copy file name to clipboardExpand all lines: integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv2/batch/IoTDBRegionMigrateConfigNodeCrashIoTV2BatchIT.java
Copy file name to clipboardExpand all lines: integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/iotv2/stream/IoTDBRegionMigrateConfigNodeCrashIoTV2StreamIT.java
Copy file name to clipboardExpand all lines: integration-test/src/test/java/org/apache/iotdb/confignode/it/regionmigration/pass/daily/ratis/IoTDBRegionMigrateConfigNodeCrashForRatisIT.java
"waitTaskFinish() returns PROCESSING, which means the waiting has been interrupted, this procedure will end without rollback";
1004
+
"waitTaskFinish() returns PROCESSING, which means the waiting has been interrupted (ConfigNode shutdown or leader change); the AddRegionPeer task is still running on the coordinator, this procedure will stay at DO_ADD_REGION_PEER and resume polling after recovery";
1005
1005
1006
1006
publicstaticfinalStringFAILED_TO_CREATE_DATABASE_THE_TTL_SHOULD_BE_NON_NEGATIVE = "Failed to create database. The TTL should be non-negative.";
1007
1007
publicstaticfinalStringFAILED_TO_CREATE_DATABASE_THE_DATAREGIONGROUPNUM_SHOULD_BE_POSITIVE = "Failed to create database. The dataRegionGroupNum should be positive.";
Copy file name to clipboardExpand all lines: iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/region/AddRegionPeerProcedure.java
0 commit comments