HBASE-21683 Reset readsEnabled flag after successfully flushing the primary region

This commit is contained in:
zhangduo 2019-01-07 20:09:20 +08:00 committed by Duo Zhang
parent 7377fcd29b
commit e9dae2adc3
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,7 @@ public class RegionReplicaFlushHandler extends EventHandler {
+ " of region " + region.getRegionInfo().getEncodedName() + " of region " + region.getRegionInfo().getEncodedName()
+ " Now waiting and blocking reads until observing a full flush cycle"); + " Now waiting and blocking reads until observing a full flush cycle");
} }
region.setReadsEnabled(true);
break; break;
} else { } else {
if (response.hasWroteFlushWalMarker()) { if (response.hasWroteFlushWalMarker()) {
@ -156,6 +157,7 @@ public class RegionReplicaFlushHandler extends EventHandler {
+ " of region " + region.getRegionInfo().getEncodedName() + " Now waiting and " + " of region " + region.getRegionInfo().getEncodedName() + " Now waiting and "
+ "blocking reads until observing a flush marker"); + "blocking reads until observing a flush marker");
} }
region.setReadsEnabled(true);
break; break;
} else { } else {
// somehow we were not able to get the primary to write the flush request. It may be // somehow we were not able to get the primary to write the flush request. It may be