}
}
// Wait for open event AFTER we have closed the region
if(closeEventProcessed.get()) {
if(op instanceof ProcessRegionOpen) {
ProcessRegionOpen regionOpenOp = (ProcessRegionOpen)op;
String region = regionOpenOp.getRegionInfo().getRegionNameAsString();
LOG.debug("Finished closing region " + region + ", expected to close region " + regionToClose);
if(regionToClose.equals(region)) {
reopenEventProcessed.set(true);
}
synchronized(reopenEventProcessed) {