Commit ccb47ff5 authored by Daniel Seybold's avatar Daniel Seybold

redirect stderr also to output file

parent 3a0b1d0d
Pipeline #81018 passed with stage
in 20 minutes and 32 seconds
......@@ -45,7 +45,7 @@ public class WorkloadApiServiceImpl extends WorkloadApiService {
//TPC-C constants
private final String TPCC_RESULT_FOLDER = "TPCC/";
private static final String TPCC_BINARY = "./cockroach";
@Override
public Response workloadResultGet(@NotNull String taskId, @NotNull String workloadType,
......
......@@ -127,7 +127,7 @@ public class Runner implements Runnable {
String loadCommand = "";
loadCommand = TSBSCommandBuilder.generateLoadCommand(TSBS_BINARY, properties.getProperty(WorkloadApiProperties.WORKLOAD_DATA_FOLDER), workload.getDbms(), workload.getTsbsLoadExecution(),workload.getDbEndpoints());
loadCommand += " > " + properties.getProperty(WorkloadApiProperties.WORKLOAD_RESULTS_FOLDER) + TSBS_RESULT_FOLDER + taskId.trim() + "_load.txt";
loadCommand += " &> " + properties.getProperty(WorkloadApiProperties.WORKLOAD_RESULTS_FOLDER) + TSBS_RESULT_FOLDER + taskId.trim() + "_load.txt";
LOGGER.debug(loadCommand);
workloadProcess
......@@ -153,7 +153,7 @@ public class Runner implements Runnable {
//Phase 4: executing query phase
//Execute Queries
String executeQueriesCommand = TSBSCommandBuilder.executeQueriesCommand(TSBS_BINARY, properties.getProperty(WorkloadApiProperties.WORKLOAD_DATA_FOLDER), workload.getDbms(), workload.getTsbsQueryExecution(), workload.getDbEndpoints() );
executeQueriesCommand += " > " + properties.getProperty(WorkloadApiProperties.WORKLOAD_RESULTS_FOLDER) + TSBS_RESULT_FOLDER + taskId.trim() + ".txt";
executeQueriesCommand += " &> " + properties.getProperty(WorkloadApiProperties.WORKLOAD_RESULTS_FOLDER) + TSBS_RESULT_FOLDER + taskId.trim() + ".txt";
LOGGER.debug(loadCommand);
workloadProcess = WorkloadProcess.getInstance();
......
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