HBASE-26429 HeapMemoryManager fails memstore flushes with NPE if enabled (#3819)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
Andrew Purtell 2021-11-08 18:31:21 -08:00 committed by GitHub
parent 62cd2b688e
commit b03ed8bae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -673,10 +673,10 @@ public class MemStoreFlusher implements FlushRequester {
FlushType type = null;
if (emergencyFlush) {
type = isAboveHighWaterMark();
}
if (type == null) {
type = isAboveLowWaterMark();
}
}
for (FlushRequestListener listener : flushRequestListeners) {
listener.flushRequested(type, region);
}