Skip to content

Commit

Permalink
adds KMEANS execution error check on server side
Browse files Browse the repository at this point in the history
If the KMEANS benchmark execution fails, an error message will appear in stdout of the
executed program. The server checks for an error message before sending the execution
results back to the client.
  • Loading branch information
vsee committed Mar 2, 2017
1 parent 6a9b0c7 commit e1d1f1f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ private ResponseMessage executeKmeans(String execPrefix, DataSetSize dsetSize) {
String stdout = ShellCmdExecutor.executeCmd(cmdBld.toString(), true);
System.out.println(stdout);

if(stdout.contains("ERROR"))
return new ErrorResponseMessage("Benchmark execution failed.\n" + stdout);

return new BenchStatsResponseMessage(stdout);
}

Expand Down

0 comments on commit e1d1f1f

Please sign in to comment.