You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/03/23 18:19:37 UTC

[GitHub] [hive] Tuan8888 opened a new pull request #3133: HIVE-26065: fix incorrect metric, active_calls_alter_partitions and active_calls_alter_partition

Tuan8888 opened a new pull request #3133:
URL: https://github.com/apache/hive/pull/3133


   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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org