HBASE-451 Remove HTableDescriptor from HRegionInfo
addendum that fixes TestTableMapReduce git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1139470 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a5251661e
commit
a55c03b23e
|
@ -11,6 +11,8 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-3629 Update our thrift to 0.6 (Moaz Reyad)
|
||||
HBASE-1502 Remove need for heartbeats in HBase
|
||||
HBASE-451 Remove HTableDescriptor from HRegionInfo (Subbu M Iyer)
|
||||
HBASE-451 Remove HTableDescriptor from HRegionInfo
|
||||
addendum that fixes TestTableMapReduce
|
||||
|
||||
BUG FIXES
|
||||
HBASE-3280 YouAreDeadException being swallowed in HRS getMaster
|
||||
|
|
|
@ -21,8 +21,11 @@ package org.apache.hadoop.hbase;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.hadoop.fs.FileSystem;
|
||||
import org.apache.hadoop.fs.Path;
|
||||
import org.apache.hadoop.hbase.regionserver.HRegion;
|
||||
import org.apache.hadoop.hbase.util.Bytes;
|
||||
import org.apache.hadoop.hbase.util.FSUtils;
|
||||
|
||||
/**
|
||||
* Utility class to build a table of multiple regions.
|
||||
|
@ -82,6 +85,12 @@ public class MultiRegionTable extends HBaseClusterTestCase {
|
|||
protected void preHBaseClusterSetup() throws Exception {
|
||||
try {
|
||||
// Create a bunch of regions
|
||||
FileSystem filesystem = FileSystem.get(conf);
|
||||
Path rootdir = filesystem.makeQualified(
|
||||
new Path(conf.get(HConstants.HBASE_DIR)));
|
||||
filesystem.mkdirs(rootdir);
|
||||
FSUtils.createTableDescriptor(fs, rootdir, desc);
|
||||
|
||||
HRegion[] regions = new HRegion[KEYS.length];
|
||||
for (int i = 0; i < regions.length; i++) {
|
||||
int j = (i + 1) % regions.length;
|
||||
|
@ -115,4 +124,4 @@ public class MultiRegionTable extends HBaseClusterTestCase {
|
|||
region.close();
|
||||
region.getLog().closeAndDelete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue