You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "DongWei (Jira)" <ji...@apache.org> on 2022/03/23 17:48:00 UTC

[jira] [Updated] (HIVE-26065) incorrect metric for active calls —— alter_partitions and alter_partition

     [ https://issues.apache.org/jira/browse/HIVE-26065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

DongWei updated HIVE-26065:
---------------------------
    Description: 
In our production environment, we found that the value of the metric "active_calls_alter_partition" was negative. This is very confusing.

After checking the HMSHandler.class, we found that the method alter_partitions_with_environment_context called()


*startTableFunction("alter_partitions", catName, db_name, tbl_name);* 
*...* 
*endFunction("alter_partition", oldParts != null, ex, tbl_name);*


So the metric "active_calls_alter_partition" will be decremented by one after the "alter_partitions" function execution ends, causing the value become a negative number

  was:
In our production environment, we found that the value of the metric "active_calls_alter_partition" was negative. This is very confusing.

After checking the HMSHandler.class, we found that the method alter_partitions_with_environment_context called()
startTableFunction("alter_partitions", catName, db_name, tbl_name); 
... 
endFunction("alter_partition", oldParts != null, ex, tbl_name);
So the metric "active_calls_alter_partition" will be decremented by one after the "alter_partitions" function execution ends, causing the value become a negative number


> incorrect metric for active calls ——  alter_partitions and  alter_partition
> ---------------------------------------------------------------------------
>
>                 Key: HIVE-26065
>                 URL: https://issues.apache.org/jira/browse/HIVE-26065
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: DongWei
>            Assignee: DongWei
>            Priority: Major
>
> In our production environment, we found that the value of the metric "active_calls_alter_partition" was negative. This is very confusing.
> After checking the HMSHandler.class, we found that the method alter_partitions_with_environment_context called()
> *startTableFunction("alter_partitions", catName, db_name, tbl_name);* 
> *...* 
> *endFunction("alter_partition", oldParts != null, ex, tbl_name);*
> So the metric "active_calls_alter_partition" will be decremented by one after the "alter_partitions" function execution ends, causing the value become a negative number



--
This message was sent by Atlassian Jira
(v8.20.1#820001)