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

Signed-off-by: Duo Zhang <zhangduo@apache.org>

Conflicts:
	hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/storefiletracker/StoreFileListFile.java
This commit is contained in:
Andrew Purtell 2022-04-27 18:02:00 -07:00
parent 3439c5bd90
commit 4b2ac4b38e

View File

@ -120,8 +120,8 @@ class StoreFileListFile {
try { try {
lists[i] = load(trackFiles[i]); lists[i] = load(trackFiles[i]);
} catch (FileNotFoundException | EOFException e) { } catch (FileNotFoundException | EOFException e) {
// this is normal case, so use info and do not log stacktrace // this is normal case, so just log at debug
LOG.info("Failed to load track file {}: {}", trackFiles[i], e.toString()); LOG.debug("EOF loading track file {}, ignoring the exception", trackFiles[i], e);
} }
} }
int winnerIndex = select(lists); int winnerIndex = select(lists);
@ -162,8 +162,8 @@ class StoreFileListFile {
fs.delete(trackFiles[nextTrackFile], false); fs.delete(trackFiles[nextTrackFile], false);
} catch (IOException e) { } catch (IOException e) {
// we will create new file with overwrite = true, so not a big deal here, only for speed up // 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(we will hit FileNotFoundException) // 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);
} }
} }
} }