HBASE-25541 : Setting the path to null when we dequeue the current log (#2959)

Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
This commit is contained in:
Sandeep Pal 2021-02-17 22:23:52 -08:00 committed by GitHub
parent 618236dd90
commit 1beda0d598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ class WALEntryStream implements Closeable {
LOG.debug("EOF, closing {}", currentPath);
closeReader();
logQueue.remove();
setCurrentPath(null);
setPosition(0);
metrics.decrSizeOfLogQueue();
}