Skip to content

Commit

Permalink
HBASE-28142 Region Server Logs getting spammed with warning when stor…
Browse files Browse the repository at this point in the history
…efile has no reader

Signed-off-by: Nihal Jain <nihaljain@apache.org>
Signed-off-by: Rajeshbabu Chintaguntla <rajeshbabu@apache.org>
  • Loading branch information
anchal246 authored Feb 18, 2024
1 parent 96a447f commit b5175ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1616,7 +1616,7 @@ protected void refreshStoreSizeAndTotalBytes() throws IOException {
for (HStoreFile hsf : this.storeEngine.getStoreFileManager().getStorefiles()) {
StoreFileReader r = hsf.getReader();
if (r == null) {
LOG.warn("StoreFile {} has a null Reader", hsf);
LOG.debug("StoreFile {} has a null Reader", hsf);
continue;
}
this.storeSize.addAndGet(r.length());
Expand Down Expand Up @@ -1785,7 +1785,7 @@ public int getCompactedFilesCount() {
private LongStream getStoreFileAgeStream() {
return this.storeEngine.getStoreFileManager().getStorefiles().stream().filter(sf -> {
if (sf.getReader() == null) {
LOG.warn("StoreFile {} has a null Reader", sf);
LOG.debug("StoreFile {} has a null Reader", sf);
return false;
} else {
return true;
Expand Down

0 comments on commit b5175ba

Please sign in to comment.