Commit 2b89662a authored by Daniel Seybold's avatar Daniel Seybold

added connection timeout for record counting command of 5 minutes

parent 4af9f2a6
Pipeline #54341 passed with stage
in 13 minutes and 37 seconds
......@@ -144,13 +144,14 @@ public class RemoteCommand extends EvaluationTask {
LOGGER.debug("session created.");
session.connect();
channel = (ChannelExec) session.openChannel("exec");
channel.setInputStream(null);
output = channel.getInputStream();
channel.setErrStream(System.err);
channel.setCommand(recordCountCommand);
channel.connect();
channel.connect(300000);
String recordCountResult = CharStreams.toString(new InputStreamReader(output));
//printOutput(channel);
channel.disconnect();
......
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