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:
parent
62cd2b688e
commit
b03ed8bae0
|
@ -673,10 +673,10 @@ public class MemStoreFlusher implements FlushRequester {
|
||||||
FlushType type = null;
|
FlushType type = null;
|
||||||
if (emergencyFlush) {
|
if (emergencyFlush) {
|
||||||
type = isAboveHighWaterMark();
|
type = isAboveHighWaterMark();
|
||||||
|
}
|
||||||
if (type == null) {
|
if (type == null) {
|
||||||
type = isAboveLowWaterMark();
|
type = isAboveLowWaterMark();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
for (FlushRequestListener listener : flushRequestListeners) {
|
for (FlushRequestListener listener : flushRequestListeners) {
|
||||||
listener.flushRequested(type, region);
|
listener.flushRequested(type, region);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue