hive
hive copied to clipboard
HIVE-26065: fix incorrect metric active_calls_alter_partitions and active_calls_alter_partition
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 pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the [email protected] list if the patch is in need of reviews.
@maheshk114 Can you please help review this patch? Thanks
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the [email protected] list if the patch is in need of reviews.
@Tuan8888 Can you please rebase the patch.
@maheshk114 thanks. Already Finished
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Feel free to reach out on the [email protected] list if the patch is in need of reviews.