This is an automated email from the ASF dual-hosted git repository.

baunsgaard pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/master by this push:
     new c83d1ab  [MINOR] Convert Component Test spark retry
c83d1ab is described below

commit c83d1ab6a7cd29dbbb907bb869b0a59e8a3570bb
Author: baunsgaard <[email protected]>
AuthorDate: Thu Apr 15 10:09:33 2021 +0200

    [MINOR] Convert Component Test spark retry
    
    This commit tries to retry the spark creation and set random ports for
    the unstable component tests.
    
    Closes #1226
---
 .../sysds/test/component/convert/RDDConverterUtilsExtTest.java     | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/sysds/test/component/convert/RDDConverterUtilsExtTest.java
 
b/src/test/java/org/apache/sysds/test/component/convert/RDDConverterUtilsExtTest.java
index a3a3005..89f7b1a 100644
--- 
a/src/test/java/org/apache/sysds/test/component/convert/RDDConverterUtilsExtTest.java
+++ 
b/src/test/java/org/apache/sysds/test/component/convert/RDDConverterUtilsExtTest.java
@@ -59,7 +59,12 @@ public class RDDConverterUtilsExtTest extends 
AutomatedTestBase {
        public static void setUpClass() {
                if (conf == null)
                        conf = 
SparkExecutionContext.createSystemDSSparkConf().setAppName("RDDConverterUtilsExtTest")
-                                       .setMaster("local");
+                                       .set("spark.port.maxRetries", "100")
+                                       .setMaster("local")
+                                       .set("spark.driver.bindAddress", 
"127.0.0.1")
+                                       .set("SPARK_MASTER_PORT", "0")
+                                       .set("SPARK_WORKER_PORT", "0");
+
                if (sc == null)
                        sc = new JavaSparkContext(conf);
        }

Reply via email to