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

Fix concurrency issue for ThriftCLIService to getPortNumber

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 3.1.0
    • 3.0.1, 3.1.0
    • SQL
    • None

    Description

      When org.apache.spark.sql.hive.thriftserver.HiveThriftServer2#startWithContext called,
      it starts ThriftCLIService in the background with a new Thread, at the same time we call ThriftCLIService.getPortNumber, we might not get the bound port if it's configured with 0.

      Attachments

        Activity

          People

            Qin Yao Kent Yao 2
            Qin Yao Kent Yao 2
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: