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 <dongj...@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 <dongj...@apache.org> Signed-off-by: Dongjoon Hyun <dongj...@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-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org