asinkovits commented on a change in pull request #2460:
URL: https://github.com/apache/hive/pull/2460#discussion_r666822952
##########
File path:
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/metrics/AcidMetricService.java
##########
@@ -148,6 +150,8 @@ public static void
updateMetricsFromShowCompact(ShowCompactResponse showCompactR
}
long initiatorsCount = lastElements.values().stream()
+ //manually initiated compactions don't count
+ .filter(e -> !"manual".equals(getThreadIdFromId(e.getInitiatorId())))
Review comment:
nit: might be nicer to define a constant.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]