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()
+ " 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