HBASE-26979 StoreFileListFile logs frequent stacktraces at INFO level (#4373)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Andrew Purtell 2022-04-27 18:02:00 -07:00 committed by GitHub
parent ee0c921258
commit 90d42f2733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -200,8 +200,8 @@ class StoreFileListFile {
lists[i] = load(files.get(i));
loaded = true;
} catch (EOFException e) {
// this is normal case, so use info and do not log stacktrace
LOG.info("Failed to load track file {}: {}", trackFiles[i], e.toString());
// this is normal case, so just log at debug
LOG.debug("EOF loading track file {}, ignoring the exception", trackFiles[i], e);
}
}
if (loaded) {
@ -258,7 +258,7 @@ class StoreFileListFile {
} catch (IOException e) {
// we will create new file with overwrite = true, so not a big deal here, only for speed up
// loading as we do not need to read this file when loading
LOG.debug("failed to delete old track file {}, not a big deal, just ignore", e);
LOG.debug("Failed to delete old track file {}, ignoring the exception", e);
}
}
}