Github user pwendell commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1019#discussion_r13955863
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/JettyUtils.scala ---
    @@ -194,11 +194,16 @@ private[spark] object JettyUtils extends Logging {
             case s: Success[_] =>
               (server, server.getConnectors.head.getLocalPort)
             case f: Failure[_] =>
    +          val nextPort = (currentPort + 1) % 65536
               server.stop()
               pool.stop()
    -          logInfo("Failed to create UI at port, %s. Trying 
again.".format(currentPort))
    -          logInfo("Error was: " + f.toString)
    -          connect((currentPort + 1) % 65536)
    +          val msg = s"Failed to create UI on port :$currentPort. Trying 
again on port :$nextPort"
    +          if(f.toString.contains("Address already in use")) {
    --- End diff --
    
    This might fail our style checks, should be `if (f.toString...`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to