HBASE-18623 Frequent failed to parse at EOF warnings from WALEntryStream
Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/c51c7846 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/c51c7846 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/c51c7846 Branch: refs/heads/branch-1.4 Commit: c51c784697b1dc108e7ad31fdae7992b754c9430 Parents: b2eb09a Author: Andrew Purtell <apurt...@apache.org> Authored: Fri Aug 18 17:13:51 2017 -0700 Committer: Andrew Purtell <apurt...@apache.org> Committed: Mon Aug 21 09:29:23 2017 -0700 ---------------------------------------------------------------------- .../hbase/replication/regionserver/WALEntryStream.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/c51c7846/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java index 4f49955..3942d23 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/WALEntryStream.java @@ -233,9 +233,11 @@ public class WALEntryStream implements Iterator<Entry>, Closeable, Iterable<Entr if (trailerSize < 0) { if (currentPosition < stat.getLen()) { final long skippedBytes = stat.getLen() - currentPosition; - LOG.info("Reached the end of WAL file '" + currentPath - + "'. It was not closed cleanly, so we did not parse " + skippedBytes - + " bytes of data."); + if (LOG.isDebugEnabled()) { + LOG.debug("Reached the end of WAL file '" + currentPath + + "'. It was not closed cleanly, so we did not parse " + skippedBytes + + " bytes of data. This is normally ok."); + } metrics.incrUncleanlyClosedWALs(); metrics.incrBytesSkippedInUncleanlyClosedWALs(skippedBytes); }