You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2022/08/25 16:39:23 UTC

[spark] branch master updated: [SPARK-39562][SQL][TESTS][FOLLOWUP] Use Utils.localCanonicalHostName instead of localHostNameForURI for IP v6 testing

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/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new fd0124443f3 [SPARK-39562][SQL][TESTS][FOLLOWUP] Use Utils.localCanonicalHostName instead of localHostNameForURI for IP v6 testing
fd0124443f3 is described below

commit fd0124443f375df299ff934d06171868462d1b95
Author: Wenchen Fan <we...@databricks.com>
AuthorDate: Thu Aug 25 09:38:56 2022 -0700

    [SPARK-39562][SQL][TESTS][FOLLOWUP] Use Utils.localCanonicalHostName instead of localHostNameForURI for IP v6 testing
    
    ### What changes were proposed in this pull request?
    
    This is a followup of https://github.com/apache/spark/pull/36961 , to use a different way to get localhost, so that we can run tests in AWS EC2. The reason is already explained in https://github.com/apache/spark/pull/37377
    
    ### Why are the changes needed?
    
    run tests on cloud
    
    ### Does this PR introduce _any_ user-facing change?
    
    no
    
    ### How was this patch tested?
    
    N/A
    
    Closes #37656 from cloud-fan/minor.
    
    Authored-by: Wenchen Fan <we...@databricks.com>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 .../apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
index debae3ad520..8fd432148bb 100644
--- a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
+++ b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
@@ -1189,7 +1189,7 @@ abstract class HiveThriftServer2TestBase extends SparkFunSuite with BeforeAndAft
   protected val startScript = "../../sbin/start-thriftserver.sh".split("/").mkString(File.separator)
   protected val stopScript = "../../sbin/stop-thriftserver.sh".split("/").mkString(File.separator)
 
-  val localhost = Utils.localHostNameForURI()
+  val localhost = Utils.localCanonicalHostName
   private var listeningPort: Int = _
   protected def serverPort: Int = listeningPort
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org