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

alter_partitions codahale mertric does not close properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • All Versions
    • None
    • Metastore

    Description

      Hello,

       

      We were noticing in a rise in the number of alter partition calls in our metric dashboard. Upon further investigation, it seems like we do not close the call properly. Here is the error. 

       

      org.apache.hadoop.hive.common.metrics.metrics2.CodahaleMetrics Scope named api_alter_partitions is not closed, cannot be opened.
      

      The piece of line that looks incorrect is here: 

      https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java#L5542

      Attachments

        1. HIVE-23300.1.patch
          0.8 kB
          Akash Katipally

        Issue Links

          Activity

            People

              kash159 Akash Katipally
              kash159 Akash Katipally
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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