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

HS2 open_operations metrics not decremented when an operation gets timed out

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.1, 2.2.0
    • HiveServer2
    • None
    • 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.2.patch
          2 kB
          Naveen Gangam
        2. HIVE-14267.patch
          2 kB
          Naveen Gangam

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: