HBASE-20015 TestMergeTableRegionsProcedure and TestRegionMergeTransactionOnCluster flakey
This commit is contained in:
parent
68d509bc1f
commit
f3ff55a2b4
|
@ -255,10 +255,16 @@ public class MergeTableRegionsProcedure
|
|||
throw new UnsupportedOperationException(this + " unhandled state=" + state);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOG.warn("Error trying to merge regions " + RegionInfo.getShortNameToLog(regionsToMerge) +
|
||||
" in the table " + getTableName() + " (in state=" + state + ")", e);
|
||||
|
||||
setFailure("master-merge-regions", 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);
|
||||
setFailure("master-merge-regions", e);
|
||||
}
|
||||
}
|
||||
return Flow.HAS_MORE_STATE;
|
||||
}
|
||||
|
|
|
@ -270,6 +270,7 @@ 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
|
||||
|
|
Loading…
Reference in New Issue