You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "aswinshakil (via GitHub)" <gi...@apache.org> on 2026/02/24 19:49:56 UTC
[PR] HDDS-14709. Initialize AbstractReplicationTask metrics during start up. [ozone]
aswinshakil opened a new pull request, #9819:
URL: https://github.com/apache/ozone/pull/9819
## What changes were proposed in this pull request?
Right now the metrics for all `AbstractReplicationTask` is only created only when each `Task` is added to the queue.
All the metrics should be initialized to 0 during startup rather than only being added when each Task is added.
## What is the link to the Apache JIRA
[HDDS-14709](https://issues.apache.org/jira/browse/HDDS-14709)
## How was this patch tested?
Existing Tests.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-14709. Initialize AbstractReplicationTask metrics during start up. [ozone]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #9819:
URL: https://github.com/apache/ozone/pull/9819#issuecomment-4317160291
Thank you for your contribution. This PR is being closed due to inactivity. Please contact a maintainer if you would like to reopen it.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-14709. Initialize AbstractReplicationTask metrics during start up. [ozone]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #9819:
URL: https://github.com/apache/ozone/pull/9819#issuecomment-4272103744
This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-14709. Initialize AbstractReplicationTask metrics during start up. [ozone]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #9819: HDDS-14709. Initialize AbstractReplicationTask metrics during start up.
URL: https://github.com/apache/ozone/pull/9819
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-14709. Initialize AbstractReplicationTask metrics during start up. [ozone]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #9819:
URL: https://github.com/apache/ozone/pull/9819#issuecomment-4130652999
This PR has been marked as stale due to 21 days of inactivity. Please comment or remove the stale label to keep it open. Otherwise, it will be automatically closed in 7 days.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-14709. Initialize AbstractReplicationTask metrics during start up. [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on code in PR #9819:
URL: https://github.com/apache/ozone/pull/9819#discussion_r2883904917
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ReplicationSupervisor.java:
##########
@@ -247,19 +250,36 @@ private boolean queueHasRoomFor(AbstractReplicationTask task) {
return true;
}
+ private void initAllTaskCounters() {
+ initCounters(ReplicationTask.METRIC_NAME,
+ ReplicationTask.METRIC_DESCRIPTION_SEGMENT,
+ ReplicationTask.class.getSimpleName());
+ initCounters(ECReconstructionCoordinatorTask.METRIC_NAME,
+ ECReconstructionCoordinatorTask.METRIC_DESCRIPTION_SEGMENT,
+ ECReconstructionCoordinatorTask.class.getSimpleName());
+ initCounters(ReconcileContainerTask.METRIC_NAME,
+ ReconcileContainerTask.METRIC_DESCRIPTION_SEGMENT,
+ ReconcileContainerTask.class.getSimpleName());
+ }
+
public void initCounters(AbstractReplicationTask task) {
- if (requestCounter.get(task.getMetricName()) == null) {
+ initCounters(task.getMetricName(), task.getMetricDescriptionSegment(),
+ task.getClass().getSimpleName());
+ }
+
+ public void initCounters(String metricName, String metricDescriptionSegment,
+ String taskSimpleName) {
Review Comment:
I think it would be better to pass the class itself instead of its name. This would retain previous behavior of not having to call `getSimpleName()` for each task in the common case that metrics are already initialized.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org