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

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

                Author: ASF GitHub Bot
            Created on: 04/Feb/22 08:29
            Start Date: 04/Feb/22 08:29
    Worklog Time Spent: 10m 
      Work Description: vcsomor commented on a change in pull request #2995:
URL: https://github.com/apache/hive/pull/2995#discussion_r799253835



##########
File path: 
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/metrics/AcidMetricData.java
##########
@@ -0,0 +1,210 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.hadoop.hive.metastore.metrics;
+
+import com.google.common.collect.ImmutableList;
+import org.apache.hadoop.hive.metastore.api.ShowCompactResponseElement;
+import org.apache.hadoop.hive.metastore.txn.TxnStore;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import java.util.Optional;
+import java.util.stream.Collectors;
+
+import static 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.MANUALLY_INITIATED_COMPACTION;
+import static org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.NO_VAL;
+import static 
org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.getHostFromId;
+import static 
org.apache.hadoop.hive.metastore.utils.MetaStoreUtils.getThreadIdFromId;
+
+final class AcidMetricData {

Review comment:
       :) This is theardest... Correctly name Classes and variables.. I'm Fine 
with your suggestion `CompactionMetricData`




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

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

> Move all logging from AcidMetricService to AcidMetricLogger
> -----------------------------------------------------------
>
>                 Key: HIVE-25926
>                 URL: https://issues.apache.org/jira/browse/HIVE-25926
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 4.0.0
>            Reporter: Viktor Csomor
>            Assignee: Viktor Csomor
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Some logging is left over in AcidMetricService (which used to both log 
> errors/warnings and emit metrics, and now just emits metrics). Logging should 
> be in the AcidMetricLogger as much as possible. Stragglers left over in 
> AcidMetricService:
>  * compaction_oldest_enqueue_age_in_sec
>  * COMPACTOR_FAILED_COMPACTION_RATIO_THRESHOLD logging
>  * Multiple Compaction Worker versions (in method: 
> detectMultipleWorkerVersions)



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

Reply via email to