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

Set "reuse address" flag on listen sockets

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: Spark Core
    • Labels:
      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

            • Assignee:
              vanzin Marcelo Vanzin
              Reporter:
              vanzin Marcelo Vanzin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: