HBASE-9338 Test Big Linked List fails on Hadoop 2.1.0

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1522713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
eclark 2013-09-12 20:20:10 +00:00
parent a7d7c86955
commit 5e339d3250
3 changed files with 16 additions and 8 deletions

View File

@ -46,6 +46,10 @@ public class MoveRandomRegionOfTableAction extends Action {
@Override
public void perform() throws Exception {
if (sleepTime > 0) {
Thread.sleep(sleepTime);
}
HBaseTestingUtility util = context.getHaseIntegrationTestingUtility();
HBaseAdmin admin = util.getHBaseAdmin();

View File

@ -47,6 +47,10 @@ public class MoveRegionsOfTableAction extends Action {
@Override
public void perform() throws Exception {
if (sleepTime > 0) {
Thread.sleep(sleepTime);
}
HBaseAdmin admin = this.context.getHaseIntegrationTestingUtility().getHBaseAdmin();
List<HRegionInfo> regions = admin.getTableRegions(tableNameBytes);
@ -63,9 +67,9 @@ public class MoveRegionsOfTableAction extends Action {
} catch (Exception e) {
LOG.debug("Error moving region", e);
}
}
if (sleepTime > 0) {
Thread.sleep(sleepTime);
if (sleepTime > 0) {
Thread.sleep(sleepTime);
}
}
}
}

View File

@ -54,8 +54,7 @@ public class SlowDeterministicMonkeyFactory extends MonkeyFactory {
new CompactTableAction(tableName, 0.5f),
new CompactRandomRegionOfTableAction(tableName, 0.6f),
new FlushTableAction(tableName),
new FlushRandomRegionOfTableAction(tableName),
new MoveRandomRegionOfTableAction(tableName)
new FlushRandomRegionOfTableAction(tableName)
};
// Actions such as split/merge/snapshot.
@ -73,12 +72,13 @@ public class SlowDeterministicMonkeyFactory extends MonkeyFactory {
// Destructive actions to mess things around.
Action[] actions3 = new Action[] {
new MoveRegionsOfTableAction(tableName),
new MoveRegionsOfTableAction(20000, tableName),
new MoveRandomRegionOfTableAction(20000, tableName),
new RestartRandomRsAction(60000),
new BatchRestartRsAction(5000, 0.5f),
new BatchRestartRsAction(60000, 0.5f),
new RestartActiveMasterAction(5000),
new RollingBatchRestartRsAction(5000, 1.0f),
new RestartRsHoldingMetaAction(35000)
new RestartRsHoldingMetaAction(35000),
};
return new PolicyBasedChaosMonkey(util,