You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/11 11:42:00 UTC

[jira] [Work logged] (HIVE-24871) Initiator / Cleaner performance metrics

     [ https://issues.apache.org/jira/browse/HIVE-24871?focusedWorklogId=564535&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-564535 ]

ASF GitHub Bot logged work on HIVE-24871:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 11/Mar/21 11:41
            Start Date: 11/Mar/21 11:41
    Worklog Time Spent: 10m 
      Work Description: pvargacl commented on a change in pull request #2061:
URL: https://github.com/apache/hive/pull/2061#discussion_r592290451



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java
##########
@@ -171,9 +176,12 @@ public void run() {
               StringUtils.stringifyException(t));
         }
         finally {
-          if(handle != null) {
+          if (handle != null) {
             handle.releaseLocks();
           }
+          if (metricsEnabled) {

Review comment:
       Won't this fail, if the acquireLock times out and the perflogger was not started? The PerfLogger in ql has a method for checking this startTimeHasMethod, maybe it worth to copy that and use it here




----------------------------------------------------------------
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.

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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 564535)
    Time Spent: 20m  (was: 10m)

> Initiator / Cleaner performance metrics
> ---------------------------------------
>
>                 Key: HIVE-24871
>                 URL: https://issues.apache.org/jira/browse/HIVE-24871
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Denys Kuzmenko
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The PerformanceLogger should be used in Initiator and Cleaner service.
>  * One cycle of Initiator should be measured, with ignoring the time spent waiting on the lock for AUX table
>  * One compaction cleanup should be measured in Cleaner (using different metric for major and minor compaction cleanup)
> Important note: the PerformanceLogger implementation from metastore should be used (not the ql one) otherwise the metric won't be published in HMS.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)