From 348c2dfe9b0857e2406081451b4936c54b595a51 Mon Sep 17 00:00:00 2001 From: zhangduo Date: Mon, 7 Jan 2019 20:09:20 +0800 Subject: [PATCH] HBASE-21683 Reset readsEnabled flag after successfully flushing the primary region --- .../hbase/regionserver/handler/RegionReplicaFlushHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/RegionReplicaFlushHandler.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/RegionReplicaFlushHandler.java index b917379930b..81b6d7e0a9f 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/RegionReplicaFlushHandler.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/RegionReplicaFlushHandler.java @@ -145,6 +145,7 @@ public class RegionReplicaFlushHandler extends EventHandler { + " of region " + region.getRegionInfo().getEncodedName() + " Now waiting and blocking reads until observing a full flush cycle"); } + region.setReadsEnabled(true); break; } else { if (response.hasWroteFlushWalMarker()) { @@ -156,6 +157,7 @@ public class RegionReplicaFlushHandler extends EventHandler { + " of region " + region.getRegionInfo().getEncodedName() + " Now waiting and " + "blocking reads until observing a flush marker"); } + region.setReadsEnabled(true); break; } else { // somehow we were not able to get the primary to write the flush request. It may be