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

Fix shortestjobcomparator when jobs submitted have 1 task their vertices

    XMLWordPrintableJSON

Details

    Description

      In latency sensitive queries, lots of jobs can have vertices with 1 task. Currently shortestjobcomparator does not work correctly and returns tasks in random order.

      https://github.com/apache/hive/blob/master/llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/comparator/ShortestJobFirstComparator.java#L51

      This causes delay in the job runtime. I will attach a simple test case shortly.

      Attachments

        1. HIVE-23210.04.patch
          11 kB
          Panagiotis Garefalakis
        2. HIVE-23210.03.patch
          11 kB
          Panagiotis Garefalakis
        3. HIVE-23210.02.patch
          11 kB
          Panagiotis Garefalakis
        4. HIVE-23210.wip.patch
          1 kB
          Rajesh Balamohan
        5. HIVE-23210.01.patch
          15 kB
          Panagiotis Garefalakis
        6. TestShortestJobFirstComparator.java
          14 kB
          Rajesh Balamohan

        Issue Links

          Activity

            People

              pgaref Panagiotis Garefalakis
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m