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
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/receiver/protocol/pipeconsensus/PipeConsensusReceiver.java
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1068,6 +1068,16 @@ public synchronized void handleExit() {
1068
1068
tsFileWriterCheckerFuture.cancel(false);
1069
1069
tsFileWriterCheckerFuture = null;
1070
1070
}
1071
+
// shutdown executor
1072
+
scheduledTsFileWriterCheckerPool.shutdownNow();
1073
+
try {
1074
+
if (!scheduledTsFileWriterCheckerPool.awaitTermination(30, TimeUnit.SECONDS)) {
1075
+
LOGGER.warn("TsFileChecker did not terminate within {}s", 30);
1076
+
}
1077
+
} catch (InterruptedExceptione) {
1078
+
LOGGER.warn("TsFileChecker Thread {} still doesn't exit after 30s", consensusPipeName);
1079
+
Thread.currentThread().interrupt();
1080
+
}
1071
1081
// Clear the tsFileWriters, receiverBuffer and receiver base dirs
0 commit comments