You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/07/06 06:33:51 UTC
[GitHub] [druid] tejaswini-imply commented on a diff in pull request #12743: Unregisters `RealtimeMetricsMonitor`, `TaskRealtimeMetricsMonitor` on Indexers after task completion
tejaswini-imply commented on code in PR #12743:
URL: https://github.com/apache/druid/pull/12743#discussion_r914462839
##########
indexing-service/src/main/java/org/apache/druid/indexing/common/stats/TaskRealtimeMetricsMonitor.java:
##########
@@ -50,6 +50,8 @@ public class TaskRealtimeMetricsMonitor extends AbstractMonitor
private FireDepartmentMetrics previousFireDepartmentMetrics;
private RowIngestionMetersTotals previousRowIngestionMetersTotals;
+ private volatile boolean lastRoundMetricsToBePushed = true;
Review Comment:
I'm thinking if this can be made `return doMonitor(emitter) && started;` removing the necessity for `lastRoundMetricsToBePushed`
--
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: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org