HBASE-3898 TestSplitTransactionOnCluster broke in TRUNK -- retry
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1125045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b192163701
commit
557ce312af
|
@ -129,6 +129,11 @@ public class CompactSplitThread implements CompactionRequestor {
|
|||
}
|
||||
|
||||
public synchronized void requestSplit(final HRegion r, byte[] midKey) {
|
||||
if (midKey == null) {
|
||||
LOG.debug("Region " + r.getRegionNameAsString() +
|
||||
" not splittable because midkey=null");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
this.splits.execute(new SplitRequest(r, midKey, this.server));
|
||||
if (LOG.isDebugEnabled()) {
|
||||
|
|
|
@ -156,6 +156,8 @@ public class SplitTransaction {
|
|||
*/
|
||||
public boolean prepare() {
|
||||
if (this.parent.isClosed() || this.parent.isClosing()) return false;
|
||||
// Split key can be false if this region is unsplittable; i.e. has refs.
|
||||
if (this.splitrow == null) return false;
|
||||
HRegionInfo hri = this.parent.getRegionInfo();
|
||||
parent.prepareToSplit();
|
||||
// Check splitrow.
|
||||
|
|
Loading…
Reference in New Issue