You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by do...@apache.org on 2020/11/09 17:15:37 UTC
[reef] branch master updated: [REEF-2066] Bugfix: unit tests that
depend on client-side timeout hung indefinitely (#1506)
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/reef.git
The following commit(s) were added to refs/heads/master by this push:
new 38bb194 [REEF-2066] Bugfix: unit tests that depend on client-side timeout hung indefinitely (#1506)
38bb194 is described below
commit 38bb194256023de5e5b6a8e63991e21d691ec1c8
Author: Sergiy Matusevych <mo...@apache.org>
AuthorDate: Mon Nov 9 09:15:26 2020 -0800
[REEF-2066] Bugfix: unit tests that depend on client-side timeout hung indefinitely (#1506)
Some unit tests depend on client-side `DriverLauncher` killing the Driver process by timeout. That behavior was broken in PR #1499, and we have to revert that change.
This commit is a roll back of PR #1499
JIRA: [REEF-2066](https://issues.apache.org/jira/projects/REEF/issues/REEF-2066)
---
.../runtime/local/client/PreparedDriverFolderLauncher.java | 12 ++----------
.../apache/reef/runtime/local/process/RunnableProcess.java | 1 -
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/client/PreparedDriverFolderLauncher.java b/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/client/PreparedDriverFolderLauncher.java
index dac49dc..141e3aa 100644
--- a/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/client/PreparedDriverFolderLauncher.java
+++ b/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/client/PreparedDriverFolderLauncher.java
@@ -30,7 +30,6 @@ import javax.inject.Inject;
import java.io.File;
import java.util.Collections;
import java.util.List;
-import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -90,15 +89,8 @@ public class PreparedDriverFolderLauncher {
new LoggingRunnableProcessObserver(),
stdoutFilePath,
stderrFilePath);
-
- try {
- this.executor.submit(process).get();
- } catch (InterruptedException | ExecutionException e) {
- LOG.log(Level.SEVERE, "Driver process failed");
- throw new RuntimeException("Driver process failed", e);
- } finally {
- this.executor.shutdown();
- }
+ this.executor.submit(process);
+ this.executor.shutdown();
}
private List<String> makeLaunchCommand() {
diff --git a/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/process/RunnableProcess.java b/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/process/RunnableProcess.java
index 290cb0f..0f88a29 100644
--- a/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/process/RunnableProcess.java
+++ b/lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/process/RunnableProcess.java
@@ -200,7 +200,6 @@ public final class RunnableProcess implements Runnable {
} catch (final IOException ex) {
LOG.log(Level.SEVERE, "Unable to spawn process " + this.id + " with command " + this.command, ex);
- throw new RuntimeException("Unable to spawn process " + this.id + " with command " + this.command, ex);
}
} finally {