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:
Michael Stack 2011-05-19 18:34:32 +00:00
parent b192163701
commit 557ce312af
2 changed files with 7 additions and 0 deletions

View File

@ -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()) {

View File

@ -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.