Repository: spark
Updated Branches:
  refs/heads/master 26afb4ce4 -> e4fa58c43


[SPARK-16299][SPARKR] Capture errors from R workers in daemon.R to avoid 
deletion of R session temporary directory.

## What changes were proposed in this pull request?
Capture errors from R workers in daemon.R to avoid deletion of R session 
temporary directory. See detailed description at 
https://issues.apache.org/jira/browse/SPARK-16299

## How was this patch tested?
SparkR unit tests.

Author: Sun Rui <[email protected]>

Closes #13975 from sun-rui/SPARK-16299.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e4fa58c4
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e4fa58c4
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e4fa58c4

Branch: refs/heads/master
Commit: e4fa58c43ce2bf8d76bffb0d9dc1132f8d0eae6a
Parents: 26afb4c
Author: Sun Rui <[email protected]>
Authored: Fri Jul 1 14:37:03 2016 -0700
Committer: Shivaram Venkataraman <[email protected]>
Committed: Fri Jul 1 14:37:03 2016 -0700

----------------------------------------------------------------------
 R/pkg/inst/worker/daemon.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e4fa58c4/R/pkg/inst/worker/daemon.R
----------------------------------------------------------------------
diff --git a/R/pkg/inst/worker/daemon.R b/R/pkg/inst/worker/daemon.R
index f55beac..b92e6be 100644
--- a/R/pkg/inst/worker/daemon.R
+++ b/R/pkg/inst/worker/daemon.R
@@ -44,7 +44,7 @@ while (TRUE) {
     if (inherits(p, "masterProcess")) {
       close(inputCon)
       Sys.setenv(SPARKR_WORKER_PORT = port)
-      source(script)
+      try(source(script))
       # Set SIGUSR1 so that child can exit
       tools::pskill(Sys.getpid(), tools::SIGUSR1)
       parallel:::mcexit(0L)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to