You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/12/23 07:20:58 UTC

[GitHub] [skywalking] wankai123 opened a new pull request, #10195: Support server status watcher for `MetricsPersistentWorker` to check the metrics whether required initialization.

wankai123 opened a new pull request, #10195:
URL: https://github.com/apache/skywalking/pull/10195

   relate to: https://github.com/apache/skywalking/pull/10085#discussion_r1039067178
   and #10076 
   
   - [ ] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #<issue number>.
   - [X] Update the [`CHANGES` log](https://github.com/apache/skywalking/blob/master/docs/en/changes/changes.md).
   


-- 
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: notifications-unsubscribe@skywalking.apache.org

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


[GitHub] [skywalking] kezhenxu94 commented on a diff in pull request #10195: Support server status watcher for `MetricsPersistentWorker` to check the metrics whether required initialization.

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on code in PR #10195:
URL: https://github.com/apache/skywalking/pull/10195#discussion_r1056125861


##########
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/worker/MetricsPersistentWorker.java:
##########
@@ -395,6 +397,18 @@ private Metrics requireInitialization(Metrics metrics) {
         return null;
     }
 
+    @Override
+    public void onServerBooted(final BootingStatus bootingStatus) {
+        timeOfLatestStabilitySts = TimeBucket.getMinuteTimeBucket(

Review Comment:
   Please make `timeOfLatestStabilitySts` `volatile`, now it's updated in multiple threads



-- 
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: notifications-unsubscribe@skywalking.apache.org

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


[GitHub] [skywalking] kezhenxu94 commented on a diff in pull request #10195: Support server status watcher for `MetricsPersistentWorker` to check the metrics whether required initialization.

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on code in PR #10195:
URL: https://github.com/apache/skywalking/pull/10195#discussion_r1056126443


##########
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/worker/MetricsPersistentWorker.java:
##########
@@ -395,6 +397,18 @@ private Metrics requireInitialization(Metrics metrics) {
         return null;
     }
 
+    @Override
+    public void onServerBooted(final BootingStatus bootingStatus) {
+        timeOfLatestStabilitySts = TimeBucket.getMinuteTimeBucket(

Review Comment:
   > Please make `timeOfLatestStabilitySts` `volatile`, now it's updated in multiple threads
   
   Or change the type to `AtomicLong` (as well as the one in class `ClusterStatus`)



-- 
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: notifications-unsubscribe@skywalking.apache.org

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


[GitHub] [skywalking] wu-sheng merged pull request #10195: Support server status watcher for `MetricsPersistentWorker` to check the metrics whether required initialization.

Posted by GitBox <gi...@apache.org>.
wu-sheng merged PR #10195:
URL: https://github.com/apache/skywalking/pull/10195


-- 
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: notifications-unsubscribe@skywalking.apache.org

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