HBASE-4790 Occasional TestDistributedLogSplitting failure (Jinchao)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1202312 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed36c7cbda
commit
48c16d1d66
@ -438,6 +438,7 @@ Release 0.92.0 - Unreleased
|
|||||||
HBASE-4651 ConcurrentModificationException might be thrown in
|
HBASE-4651 ConcurrentModificationException might be thrown in
|
||||||
TestHCM.testConnectionUniqueness (Jinchao)
|
TestHCM.testConnectionUniqueness (Jinchao)
|
||||||
HBASE-4518 TestServerCustomProtocol fails intermittently
|
HBASE-4518 TestServerCustomProtocol fails intermittently
|
||||||
|
HBASE-4790 Occasional TestDistributedLogSplitting failure (Jinchao)
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||||
|
@ -199,15 +199,22 @@ public class TestDistributedLogSplitting {
|
|||||||
FileSystem fs = master.getMasterFileSystem().getFileSystem();
|
FileSystem fs = master.getMasterFileSystem().getFileSystem();
|
||||||
|
|
||||||
List<RegionServerThread> rsts = cluster.getLiveRegionServerThreads();
|
List<RegionServerThread> rsts = cluster.getLiveRegionServerThreads();
|
||||||
HRegionServer hrs = rsts.get(0).getRegionServer();
|
|
||||||
Path rootdir = FSUtils.getRootDir(conf);
|
Path rootdir = FSUtils.getRootDir(conf);
|
||||||
final Path logDir = new Path(rootdir,
|
|
||||||
HLog.getHLogDirectoryName(hrs.getServerName().toString()));
|
|
||||||
|
|
||||||
installTable(new ZooKeeperWatcher(conf, "table-creation", null),
|
installTable(new ZooKeeperWatcher(conf, "table-creation", null),
|
||||||
"table", "family", 40);
|
"table", "family", 40);
|
||||||
byte[] table = Bytes.toBytes("table");
|
byte[] table = Bytes.toBytes("table");
|
||||||
List<HRegionInfo> regions = hrs.getOnlineRegions();
|
List<HRegionInfo> regions = null;
|
||||||
|
HRegionServer hrs = null;
|
||||||
|
for (int i = 0; i < NUM_RS; i++) {
|
||||||
|
hrs = rsts.get(i).getRegionServer();
|
||||||
|
regions = hrs.getOnlineRegions();
|
||||||
|
if (regions.size() != 0) break;
|
||||||
|
}
|
||||||
|
final Path logDir = new Path(rootdir, HLog.getHLogDirectoryName(hrs
|
||||||
|
.getServerName().toString()));
|
||||||
|
|
||||||
LOG.info("#regions = " + regions.size());
|
LOG.info("#regions = " + regions.size());
|
||||||
Iterator<HRegionInfo> it = regions.iterator();
|
Iterator<HRegionInfo> it = regions.iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user