You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by GitBox <gi...@apache.org> on 2021/07/29 20:14:04 UTC

[GitHub] [storm] agresch opened a new pull request #3406: STORM-3786 ensure v2 metrics tick reporting occurs at specified interval

agresch opened a new pull request #3406:
URL: https://github.com/apache/storm/pull/3406


   ## What is the purpose of the change
   
   Prevent under/over reporting of v2 metrics tick.
   
   ## How was the change tested
   
   Ran storm-client unit tests.  Validated LoggingMetricsConsumer logged v2 metrics on worker.


-- 
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: dev-unsubscribe@storm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [storm] Ethanlm commented on a change in pull request #3406: STORM-3786 ensure v2 metrics tick reporting occurs at specified interval

Posted by GitBox <gi...@apache.org>.
Ethanlm commented on a change in pull request #3406:
URL: https://github.com/apache/storm/pull/3406#discussion_r679959591



##########
File path: storm-client/src/jvm/org/apache/storm/executor/Executor.java
##########
@@ -462,6 +473,30 @@ protected void setupMetrics() {
                     }
                 }
             );
+            if (interval == v2MetricsTickInterval) {
+                v2TickScheduled = true;
+            }
+        }
+
+        if (!v2TickScheduled) {
+            LOG.info("Scheduling v2 metrics tick for interval {}", v2MetricsTickInterval);
+            StormTimer timerTask = workerData.getUserTimer();

Review comment:
       This code looks similar to above. Can we de-duplicate?




-- 
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: dev-unsubscribe@storm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [storm] agresch merged pull request #3406: STORM-3786 ensure v2 metrics tick reporting occurs at specified interval

Posted by GitBox <gi...@apache.org>.
agresch merged pull request #3406:
URL: https://github.com/apache/storm/pull/3406


   


-- 
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: dev-unsubscribe@storm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [storm] agresch commented on a change in pull request #3406: STORM-3786 ensure v2 metrics tick reporting occurs at specified interval

Posted by GitBox <gi...@apache.org>.
agresch commented on a change in pull request #3406:
URL: https://github.com/apache/storm/pull/3406#discussion_r680009590



##########
File path: storm-client/src/jvm/org/apache/storm/executor/Executor.java
##########
@@ -462,6 +473,30 @@ protected void setupMetrics() {
                     }
                 }
             );
+            if (interval == v2MetricsTickInterval) {
+                v2TickScheduled = true;
+            }
+        }
+
+        if (!v2TickScheduled) {
+            LOG.info("Scheduling v2 metrics tick for interval {}", v2MetricsTickInterval);
+            StormTimer timerTask = workerData.getUserTimer();

Review comment:
       updated




-- 
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: dev-unsubscribe@storm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [storm] agresch commented on a change in pull request #3406: STORM-3786 ensure v2 metrics tick reporting occurs at specified interval

Posted by GitBox <gi...@apache.org>.
agresch commented on a change in pull request #3406:
URL: https://github.com/apache/storm/pull/3406#discussion_r679960799



##########
File path: storm-client/src/jvm/org/apache/storm/executor/Executor.java
##########
@@ -462,6 +473,30 @@ protected void setupMetrics() {
                     }
                 }
             );
+            if (interval == v2MetricsTickInterval) {
+                v2TickScheduled = true;
+            }
+        }
+
+        if (!v2TickScheduled) {
+            LOG.info("Scheduling v2 metrics tick for interval {}", v2MetricsTickInterval);
+            StormTimer timerTask = workerData.getUserTimer();

Review comment:
       sure, was debating same thing as I committed.




-- 
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: dev-unsubscribe@storm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org