Revert "HBASE-20015 TestMergeTableRegionsProcedure and TestRegionMergeTransactionOnCluster flakey"

This reverts commit 72193650dd.
This commit is contained in:
Michael Stack 2018-02-16 23:21:56 -08:00
parent 3ea2ffcd57
commit 07bdd492f4
2 changed files with 4 additions and 11 deletions

View File

@ -255,17 +255,11 @@ public class MergeTableRegionsProcedure
throw new UnsupportedOperationException(this + " unhandled state=" + state);
}
} catch (IOException e) {
String msg = "Error trying to merge regions " +
RegionInfo.getShortNameToLog(regionsToMerge) + " in the table " + getTableName() +
" (in state=" + state + ")";
if (!isRollbackSupported(state)) {
// We reach a state that cannot be rolled back. We just need to keep retry.
LOG.warn(msg, e);
} else {
LOG.error(msg, e);
LOG.warn("Error trying to merge regions " + RegionInfo.getShortNameToLog(regionsToMerge) +
" in the table " + getTableName() + " (in state=" + state + ")", e);
setFailure("master-merge-regions", e);
}
}
return Flow.HAS_MORE_STATE;
}

View File

@ -270,7 +270,6 @@ public class SplitTableRegionProcedure
} else {
LOG.error(msg, e);
setFailure(e);
setFailure("master-split-regions", e);
}
}
// if split fails, need to call ((HRegion)parent).clearSplit() when it is a force split