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

liukun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new ef6ca4c  Log debug the FileNotFoundException, throws the IOException 
(#122)
ef6ca4c is described below

commit ef6ca4c4a56b4e5580d060309ac51c7edcb67404
Author: Kun Liu <[email protected]>
AuthorDate: Wed Apr 3 08:56:53 2019 +0800

    Log debug the FileNotFoundException, throws the IOException (#122)
---
 .../java/org/apache/iotdb/db/engine/overflow/io/OverflowResource.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/iotdb/src/main/java/org/apache/iotdb/db/engine/overflow/io/OverflowResource.java
 
b/iotdb/src/main/java/org/apache/iotdb/db/engine/overflow/io/OverflowResource.java
index 0b45d54..17078f8 100644
--- 
a/iotdb/src/main/java/org/apache/iotdb/db/engine/overflow/io/OverflowResource.java
+++ 
b/iotdb/src/main/java/org/apache/iotdb/db/engine/overflow/io/OverflowResource.java
@@ -21,6 +21,7 @@ package org.apache.iotdb.db.engine.overflow.io;
 import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.FileInputStream;
+import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.util.ArrayList;
@@ -98,8 +99,9 @@ public class OverflowResource {
       // the tail is at least the len of magic string
       insertIO = new OverflowIO(readWriter);
       readMetadata();
+    } catch (FileNotFoundException e){
+      LOGGER.debug("Failed to construct the OverflowIO.", e);
     } catch (IOException e) {
-      LOGGER.error("Failed to construct the OverflowIO.", e);
       throw e;
     }
     this.versionController = versionController;

Reply via email to