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

make code consistent with document

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Spark Core
    • None

    Description

      The configuration item represent "Default number of retries in binding to a port" in code is "spark.ports.maxRetries" while "spark.port.maxRetries" in document configuration.md. We need to make them consistent.

      In org.apache.spark.util.Utils.scala:
      /**

      • Default number of retries in binding to a port.
        */
        val portMaxRetries: Int =
        Unknown macro: { if (sys.props.contains("spark.testing")) { // Set a higher number of retries for tests... sys.props.get("spark.port.maxRetries").map(_.toInt).getOrElse(100) } else { Option(SparkEnv.get) .flatMap(_.conf.getOption("spark.port.maxRetries")) .map(_.toInt) .getOrElse(16) } }

      In configuration.md:
      <tr>
      <td><code>spark.port.maxRetries</code></td>
      <td>16</td>
      <td>
      Maximum number of retries when binding to a port before giving up.
      </td>
      </tr>

      Attachments

        Activity

          People

            WangTaoTheTonic Tao Wang (Inactive)
            WangTaoTheTonic Tao Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: