accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1455315 - /accumulo/branches/1.5/test/system/continuous/agitator.pl
Date Mon, 11 Mar 2013 20:30:58 GMT
Author: kturner
Date: Mon Mar 11 20:30:57 2013
New Revision: 1455315

URL: http://svn.apache.org/r1455315
Log:
ACCUMULO-1171 revert accidental checkin

Modified:
    accumulo/branches/1.5/test/system/continuous/agitator.pl

Modified: accumulo/branches/1.5/test/system/continuous/agitator.pl
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/test/system/continuous/agitator.pl?rev=1455315&r1=1455314&r2=1455315&view=diff
==============================================================================
--- accumulo/branches/1.5/test/system/continuous/agitator.pl (original)
+++ accumulo/branches/1.5/test/system/continuous/agitator.pl Mon Mar 11 20:30:57 2013
@@ -18,8 +18,8 @@
 
 use POSIX qw(strftime);
 
-if(scalar(@ARGV) != 4 && scalar(@ARGV) != 2 && scalar(@ARGV) != 5){
-	print "Usage : agitator.pl <min sleep before kill in minutes>[:max sleep before kill
in minutes] <min sleep before tup in minutes>[:max sleep before tup in minutes] [<min
kill> <max kill> [rand|exp]]\n";
+if(scalar(@ARGV) != 4 && scalar(@ARGV) != 2){
+	print "Usage : agitator.pl <min sleep before kill in minutes>[:max sleep before kill
in minutes] <min sleep before tup in minutes>[:max sleep before tup in minutes] [<min
kill> <max kill>]\n";
 	exit(1);
 }
 
@@ -52,14 +52,9 @@ if($sleep2 > $sleep2max){
 	die("sleep2 > sleep2max $sleep2 > $sleep2max");
 }
 
-$mode = "rand";
-
-if(scalar(@ARGV) == 4 || scalar(@ARGV) == 5){
+if(scalar(@ARGV) == 4){
 	$minKill = $ARGV[2];
 	$maxKill = $ARGV[3];
-	if(scalar(@ARGV) == 5){
-		$mode = $ARGV[4];
-	}
 }else{
 	$minKill = 1;
 	$maxKill = 1;
@@ -69,10 +64,6 @@ if($minKill > $maxKill){
 	die("minKill > maxKill $minKill > $maxKill");
 }
 
-if($mode ne "rand" && $mode ne "exp"){
-	die("Mode was $mode, must be 'rand' or 'exp'");
-}
-
 @slavesRaw = `cat $ACCUMULO_HOME/conf/slaves`;
 chomp(@slavesRaw);
 
@@ -95,32 +86,12 @@ if ($minKill > $maxKill){
     $minKill = $maxKill;
 }
 
-$exp = 0;
-
 while(1){
 
-	if($mode eq "exp"){
-		$numToKill = 2**$exp;
-		$exp++;
-		if($numToKill > $maxKill){
-			$exp = 0;
-			$numToKill = 2**$exp;
-		}
-
-		while($numToKill < $minKill){
-			$numToKill = 2**$exp;
-			$exp++;
-		}
 
-	}else{
-		$numToKill = int(rand($maxKill - $minKill + 1)) + $minKill;
-	}
+	$numToKill = int(rand($maxKill - $minKill + 1)) + $minKill;
 	%killed = {};
 
-	print("Num to kill : $numToKill\n");
-	sleep(1);
-	next;
-
 	for($i = 0; $i < $numToKill; $i++){
 		$server = "";	
 		while($server eq "" || $killed{$server} != undef){



Mime
View raw message