From da2e03bb3b3dbd0511e236b5390d4f2680cf3071 Mon Sep 17 00:00:00 2001 From: xincunSong <365724453@qq.com> Date: Fri, 29 May 2020 21:28:57 +0800 Subject: [PATCH] HBASE-24470 : Add store file info when log meessages in HStore. (#1804) Signed-off-by: binlijin Signed-off-by: Viraj Jasani --- .../java/org/apache/hadoop/hbase/regionserver/HStore.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java index 65602eb1832..1f926a2a345 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HStore.java @@ -608,7 +608,7 @@ public class HStore implements Store, HeapSize, StoreConfigInformation, file.closeStoreFile(evictOnClose); } } catch (IOException e) { - LOG.warn("Could not close store file", e); + LOG.warn("Could not close store file {}", file, e); } } throw ioe; @@ -2815,13 +2815,15 @@ public class HStore implements Store, HeapSize, StoreConfigInformation, file.initReader(); length = file.getReader().length(); } catch (IOException e) { - LOG.trace("Failed to open reader when trying to compute store file size, ignoring", e); + LOG.trace("Failed to open reader when trying to compute store file size for {}, ignoring", + file, e); } finally { try { file.closeStoreFile( file.getCacheConf() != null ? file.getCacheConf().shouldEvictOnClose() : true); } catch (IOException e) { - LOG.trace("Failed to close reader after computing store file size, ignoring", e); + LOG.trace("Failed to close reader after computing store file size for {}, ignoring", + file, e); } } return length;