Commit 28ad9290 authored by Daniel Seybold's avatar Daniel Seybold

increased ssh timeout

parent e38c191d
Pipeline #55283 passed with stage
in 14 minutes and 7 seconds
......@@ -169,16 +169,10 @@ public class RemoteCommand extends EvaluationTask {
LOGGER.debug(recordCountCommand);
channel2.setCommand(recordCountCommand);
int retryCounter = 3;
String recordCountResult = null;
while ( recordCountCommand == null || recordCountCommand.isEmpty() || retryCounter > 0){
channel2.connect();
recordCountResult = CharStreams.toString(new InputStreamReader(output2));
channel2.disconnect();
retryCounter--;
LOGGER.debug("Record count command returned empty result, retrying! Retry Counter is: " + retryCounter);
}
channel2.connect(180000);
String recordCountResult = CharStreams.toString(new InputStreamReader(output2));
channel2.disconnect();
LOGGER.debug(this.loggerPrefix + "The remote recordCount command result is: " + recordCountResult);
......@@ -244,9 +238,9 @@ public class RemoteCommand extends EvaluationTask {
/**
* limited memory usage
*/
String command = "sudo timeout 180 java -Xmx512m -jar cassandra-count -host " + host + " -keyspace ycsb -table usertable -splitSize " + splitSize + " -numSplits " + numOfSplits + " 2>&1";
String command = "sudo java -Xmx512m -jar cassandra-count -host " + host + " -keyspace ycsb -table usertable -splitSize " + splitSize + " -numSplits " + numOfSplits + " 2>&1";
return command;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment