This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch rel/0.9
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/rel/0.9 by this push:
new 9a4cd8b add exception catch in recover
9a4cd8b is described below
commit 9a4cd8b84f74bf2d9bfaab2e62db4736aa7097c7
Author: qiaojialin <[email protected]>
AuthorDate: Tue May 19 12:43:51 2020 +0800
add exception catch in recover
---
.../java/org/apache/iotdb/db/engine/StorageEngine.java | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
b/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
index 392fdc1..0954c9a 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
@@ -115,12 +115,17 @@ public class StorageEngine implements IService {
List<Future> futures = new ArrayList<>();
for (MNode storageGroup : sgNodes) {
futures.add(recoveryThreadPool.submit((Callable<Void>) () -> {
- StorageGroupProcessor processor = new StorageGroupProcessor(systemDir,
- storageGroup.getFullPath());
- processor.setDataTTL(storageGroup.getDataTTL());
- processorMap.put(storageGroup.getFullPath(), processor);
- logger.info("Storage Group Processor {} is recovered successfully",
- storageGroup.getFullPath());
+ try {
+ StorageGroupProcessor processor = new
StorageGroupProcessor(systemDir,
+ storageGroup.getFullPath());
+ processor.setDataTTL(storageGroup.getDataTTL());
+ processorMap.put(storageGroup.getFullPath(), processor);
+ logger.info("Storage Group Processor {} is recovered successfully",
+ storageGroup.getFullPath());
+ } catch (Exception e) {
+ logger.error("meet error when recovering", e);
+ throw e;
+ }
return null;
}));
}