This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch fix_wal_checker
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/fix_wal_checker by this push:
new 5637ed5 add error log
5637ed5 is described below
commit 5637ed57f22c81b2b1f10c03514aad444cce8b81
Author: 江天 <[email protected]>
AuthorDate: Mon Apr 22 16:16:40 2019 +0800
add error log
---
iotdb/src/main/java/org/apache/iotdb/db/tools/WalChecker.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/iotdb/src/main/java/org/apache/iotdb/db/tools/WalChecker.java
b/iotdb/src/main/java/org/apache/iotdb/db/tools/WalChecker.java
index 21996d5..a3fbf4e 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/tools/WalChecker.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/tools/WalChecker.java
@@ -77,6 +77,8 @@ public class WalChecker {
if (walFile.length() > 0 && walFile.length() <
RAFLogReader.LEAST_LOG_SIZE) {
// contains only one damaged log
+ LOGGER.error("{} fails the check because it is non-empty but does not
contain enough bytes "
+ + "even for one log.", walFile.getAbsoluteFile());
failedFiles.add(walFile);
continue;
}