Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15662

check startTime in SparkTask to make sure startTime is not less than submitTime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None

    Description

      Check startTime in SparkTask to make sure startTime is not less than submitTime. We saw a corner case when the sparkTask is finished in less than 1 second, the startTime may not be set because RemoteSparkJobMonitor will sleep for 1 second then check the state, in this case, right after sleep for one second, the spark job is already completed. one example query with 3 spark tasks, the second one finished quickly for around 1 second:

      SparkTask1:
      "finishTime":1484638391978
      "submitTime":1484638385933
      "startTime": 1484638386973
      SparkTask2:
      "finishTime":1484638393019
      "submitTime":1484638391979
      "startTime": 1484638386973
      SparkTask3:
      "finishTime":1484638432123
      "submitTime":1484638393020
      "startTime": 1484638394057
      

      Attachments

        1. HIVE-15662.000.patch
          0.7 kB
          Zhihai Xu
        2. HIVE-15662.001.patch
          1.0 kB
          Zhihai Xu

        Activity

          People

            zxu Zhihai Xu
            zxu Zhihai Xu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: