bjornarjatten commented on code in PR #26257:
URL: https://github.com/apache/flink/pull/26257#discussion_r2006460391
##########
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/util/SystemResourcesCounter.java:
##########
@@ -53,8 +53,8 @@ public class SystemResourcesCounter extends Thread {
private volatile boolean running = true;
- private long[] previousCpuTicks;
- private long[][] previousProcCpuTicks;
+ private volatile long[] previousCpuTicks;
Review Comment:
It seems to me that it is also the only place it can be initialized.
I agree with AtomicRefrence, I was thinking about the same thing. Should I
add an commit with that? :)
--
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]