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

HS2 open_operations metrics not decremented when an operation gets timed out

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.1, 2.2.0
    • Component/s: HiveServer2
    • Labels:
      None
    • Release Note:
      Committed to 2.2.0 and 2.1.1. Thanks Naveen for the patch.

      Description

      When an operation gets timed out, it is removed from handleToOperation hash map in OperationManager.removeTimedOutOperation(). However OPEN_OPERATIONS counter is not decremented.
      This can result in an inaccurate open operations metrics value being reported. Especially when submitting queries to Hive from Hue with close_queries=false option, this results in misleading HS2 metrics charts.

        Attachments

        1. HIVE-14267.patch
          2 kB
          Naveen Gangam
        2. HIVE-14267.2.patch
          2 kB
          Naveen Gangam

          Issue Links

            Activity

              People

              • Assignee:
                ngangam Naveen Gangam
                Reporter:
                DavidKaroly David Karoly
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: