You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/02/08 11:28:42 UTC

[GitHub] [beam] scwhittle commented on a change in pull request #13861: [BEAM-11727] Optimize ExecutionStateSampler by removing unnecessary o…

scwhittle commented on a change in pull request #13861:
URL: https://github.com/apache/beam/pull/13861#discussion_r571973144



##########
File path: runners/core-java/src/main/java/org/apache/beam/runners/core/metrics/ExecutionStateSampler.java
##########
@@ -36,8 +36,7 @@
 /** Monitors the execution of one or more execution threads. */
 public class ExecutionStateSampler {
 
-  private final ConcurrentSkipListSet<ExecutionStateTracker> activeTrackers =
-      new ConcurrentSkipListSet<>();
+  private final HashSet<ExecutionStateTracker> activeTrackers = new HashSet<>();

Review comment:
       Thanks! I forgot about the Java annotations.




----------------------------------------------------------------
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.

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