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/06/13 20:26:29 UTC
[spark] branch master updated: [SPARK-39458][CORE][TESTS] Fix `UISuite` for IPv6
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 2182be81a32 [SPARK-39458][CORE][TESTS] Fix `UISuite` for IPv6
2182be81a32 is described below
commit 2182be81a32cdda691a3051a1591c232e8bd9f65
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Mon Jun 13 13:25:57 2022 -0700
[SPARK-39458][CORE][TESTS] Fix `UISuite` for IPv6
### What changes were proposed in this pull request?
This PR aims to fix `UISuite` to work in IPv6 environment.
### Why are the changes needed?
IPv6 address contains `:`.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual tests in Pure IPv6 environment.
Closes #36858 from dongjoon-hyun/SPARK-39458.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
core/src/test/scala/org/apache/spark/ui/UISuite.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/test/scala/org/apache/spark/ui/UISuite.scala b/core/src/test/scala/org/apache/spark/ui/UISuite.scala
index 90136dd0623..b30c6fc462b 100644
--- a/core/src/test/scala/org/apache/spark/ui/UISuite.scala
+++ b/core/src/test/scala/org/apache/spark/ui/UISuite.scala
@@ -195,7 +195,7 @@ class UISuite extends SparkFunSuite {
val ui = sc.ui.get
val splitUIAddress = ui.webUrl.split(':')
val boundPort = ui.boundPort
- assert(splitUIAddress(2).toInt == boundPort)
+ assert(splitUIAddress(splitUIAddress.length - 1).toInt == boundPort)
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org