[
https://issues.apache.org/jira/browse/HIVE-26471?focusedWorklogId=809504&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-809504
]
ASF GitHub Bot logged work on HIVE-26471:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Sep/22 11:56
Start Date: 16/Sep/22 11:56
Worklog Time Spent: 10m
Work Description: veghlaci05 commented on code in PR #3521:
URL: https://github.com/apache/hive/pull/3521#discussion_r972945999
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/metrics/CompactionMetricData.java:
##########
@@ -148,6 +152,10 @@ Map<String, Long> getStateCount() {
return new HashMap<>(stateCount);
}
+ public Map<String, Integer> getPoolCount() {
+ return new HashMap<>(poolCount);
Review Comment:
AS far as I can see `CompactionMetricData` is designed to be immutable,
stateCount returned the same way
`return new HashMap<>(stateCount);`
I did not want to break immutability.
Issue Time Tracking
-------------------
Worklog Id: (was: 809504)
Time Spent: 1.5h (was: 1h 20m)
> New metric for Compaction pooling
> ---------------------------------
>
> Key: HIVE-26471
> URL: https://issues.apache.org/jira/browse/HIVE-26471
> Project: Hive
> Issue Type: Improvement
> Components: Hive
> Reporter: László Végh
> Assignee: László Végh
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> To be able to properly supervise the pool based compaction, a new metric is
> required:
> Number of 'Initiated' compaction requests per compaction pool.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)