Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24029

Set "reuse address" flag on listen sockets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • Spark Core
    • None

    Description

      Setting the "reuse address" option allows a server socket to be bound to a port that may still have connections in the "close wait" state. Without it, for example, re-starting the history server could result in a BindException.

      This is more important for things that have explicit ports, but doesn't hurt also in other places, especially since Spark allows most servers to bind to a port range by setting the root port + the retry count.

      Attachments

        Activity

          People

            vanzin Marcelo Masiero Vanzin
            vanzin Marcelo Masiero Vanzin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: