This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 9cc8ffddc0e Catch Exception to improve the robustness of loading
procedure #13696
9cc8ffddc0e is described below
commit 9cc8ffddc0e8e7e6a658a2bdad488aeb91bdee6d
Author: Li Yu Heng <[email protected]>
AuthorDate: Wed Oct 9 18:16:32 2024 +0800
Catch Exception to improve the robustness of loading procedure #13696
---
.../java/org/apache/iotdb/confignode/persistence/ProcedureInfo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/ProcedureInfo.java
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/ProcedureInfo.java
index b2abf1f95e8..5589fdd3799 100644
---
a/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/ProcedureInfo.java
+++
b/iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/ProcedureInfo.java
@@ -171,7 +171,7 @@ public class ProcedureInfo implements SnapshotProcessor {
}
return Optional.ofNullable(procedure);
}
- } catch (IOException e) {
+ } catch (Exception e) {
LOGGER.error("Load {} failed, it will be deleted.", procedureFilePath,
e);
if (!procedureFilePath.toFile().delete()) {
LOGGER.error("{} deleted failed; take appropriate action.",
procedureFilePath, e);