wchevreuil commented on a change in pull request #3932:
URL: https://github.com/apache/hbase/pull/3932#discussion_r768770062
##########
File path:
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/SlowDeterministicMonkeyFactory.java
##########
@@ -72,53 +72,65 @@
private long rollingBatchSuspendRSSleepTime;
private float rollingBatchSuspendtRSRatio;
+ protected Action[] getLightWeigthedActions(){
Review comment:
Ack.
##########
File path:
hbase-it/src/test/java/org/apache/hadoop/hbase/chaos/factories/SlowDeterministicMonkeyFactory.java
##########
@@ -72,53 +72,65 @@
private long rollingBatchSuspendRSSleepTime;
private float rollingBatchSuspendtRSRatio;
+ protected Action[] getLightWeigthedActions(){
+ return new Action[] {
+ new CompactTableAction(tableName, compactTableRatio),
+ new CompactRandomRegionOfTableAction(tableName,
compactRandomRegionRatio),
+ new FlushTableAction(tableName),
+ new FlushRandomRegionOfTableAction(tableName),
+ new MoveRandomRegionOfTableAction(tableName)
+ };
+ }
+
+ protected Action[] getMidWeightedActions(){
+ return new Action[] {
+ new SplitRandomRegionOfTableAction(tableName),
+ new MergeRandomAdjacentRegionsOfTableAction(tableName),
+ new SnapshotTableAction(tableName),
+ new AddColumnAction(tableName),
+ new RemoveColumnAction(tableName, columnFamilies),
+ new ChangeEncodingAction(tableName),
+ new ChangeCompressionAction(tableName),
+ new ChangeBloomFilterAction(tableName),
+ new ChangeVersionsAction(tableName),
+ new ChangeSplitPolicyAction(tableName),
+ };
+ }
+
+ protected Action[] getHeavyWeightedActions() {
+ return new Action[] {
+ new MoveRegionsOfTableAction(moveRegionsSleepTime, moveRegionsMaxTime,
+ tableName),
+ new MoveRandomRegionOfTableAction(moveRandomRegionSleepTime, tableName),
+ new RestartRandomRsAction(restartRandomRSSleepTime),
+ new BatchRestartRsAction(batchRestartRSSleepTime, batchRestartRSRatio),
+ new RestartActiveMasterAction(restartActiveMasterSleepTime),
+ new RollingBatchRestartRsAction(rollingBatchRestartRSSleepTime,
+ rollingBatchRestartRSRatio),
+ new RestartRsHoldingMetaAction(restartRsHoldingMetaSleepTime),
+ new DecreaseMaxHFileSizeAction(decreaseHFileSizeSleepTime, tableName),
+ new SplitAllRegionOfTableAction(tableName),
+ new GracefulRollingRestartRsAction(gracefulRollingRestartTSSLeepTime),
+ new RollingBatchSuspendResumeRsAction(rollingBatchSuspendRSSleepTime,
+ rollingBatchSuspendtRSRatio)
+ };
+ }
+
@Override
public ChaosMonkey build() {
loadProperties();
// Actions such as compact/flush a table/region,
// move one region around. They are not so destructive,
// can be executed more frequently.
- Action[] actions1 = new Action[] {
- new CompactTableAction(tableName, compactTableRatio),
- new CompactRandomRegionOfTableAction(tableName,
compactRandomRegionRatio),
- new FlushTableAction(tableName),
- new FlushRandomRegionOfTableAction(tableName),
- new MoveRandomRegionOfTableAction(tableName)
- };
+ Action[] actions1 = getLightWeigthedActions();
Review comment:
Ack.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]