Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/19408#discussion_r142038519
--- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
@@ -981,7 +981,13 @@ private[spark] object Utils extends Logging {
return cached
}
- val indx: Int = hostPort.lastIndexOf(':')
+ val indx: Int =
+ // Interpret hostPort as literal IPv6 address if it contains two ore
more colons
--- End diff --
Nit: ore
You might note here that you're checking that you _don't_ have a
`[::1]:123` IPv6 address here -- the braces are key.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]