[
https://issues.apache.org/jira/browse/HIVE-26065?focusedWorklogId=837448&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-837448
]
ASF GitHub Bot logged work on HIVE-26065:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 06/Jan/23 10:19
Start Date: 06/Jan/23 10:19
Worklog Time Spent: 10m
Work Description: ayushtkn commented on PR #3919:
URL: https://github.com/apache/hive/pull/3919#issuecomment-1373437839
@Tuan8888 I will merge it by EOD, if nobody else has objections, need to
give time to folks in other time zones to have a look as well, if they are
interested.
Issue Time Tracking
-------------------
Worklog Id: (was: 837448)
Time Spent: 2.5h (was: 2h 20m)
> 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: Hive
> Reporter: DongWei
> Assignee: DongWei
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-26065.1.patch
>
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> 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.10#820010)