HBASE-7779 [snapshot 130201 merge] Fix TestMultiParallel (Ted Yu)
git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-7290v2@1446160 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bdf35759ed
commit
86c669ff3e
|
@ -99,9 +99,8 @@ public abstract class ZKProcedureUtil
|
|||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
if (watcher != null) {
|
||||
watcher.close();
|
||||
}
|
||||
// the watcher is passed from either Master or Region Server
|
||||
// watcher.close() will be called by the owner so no need to call close() here
|
||||
}
|
||||
|
||||
public String getAcquiredBarrierNode(String opInstanceName) {
|
||||
|
|
|
@ -26,11 +26,13 @@ import org.apache.hadoop.fs.FileSystem;
|
|||
import org.apache.hadoop.fs.Path;
|
||||
import org.apache.hadoop.hbase.HBaseTestingUtility;
|
||||
import org.apache.hadoop.hbase.HColumnDescriptor;
|
||||
import org.apache.hadoop.hbase.HConstants;
|
||||
import org.apache.hadoop.hbase.HTableDescriptor;
|
||||
import org.apache.hadoop.hbase.MediumTests;
|
||||
import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding;
|
||||
import org.apache.hadoop.hbase.master.snapshot.SnapshotManager;
|
||||
import org.apache.hadoop.hbase.regionserver.BloomType;
|
||||
import org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy;
|
||||
import org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils;
|
||||
import org.apache.hadoop.hbase.util.Bytes;
|
||||
import org.junit.After;
|
||||
|
@ -107,6 +109,9 @@ public class TestSnapshotMetadata {
|
|||
conf.setInt("hbase.client.pause", 250);
|
||||
conf.setInt("hbase.client.retries.number", 6);
|
||||
conf.setBoolean("hbase.master.enabletable.roundrobin", true);
|
||||
// Avoid potentially aggressive splitting which would cause snapshot to fail
|
||||
conf.set(HConstants.HBASE_REGION_SPLIT_POLICY_KEY,
|
||||
ConstantSizeRegionSplitPolicy.class.getName());
|
||||
}
|
||||
|
||||
@Before
|
||||
|
|
Loading…
Reference in New Issue