KarmaGYZ commented on a change in pull request #14897: URL: https://github.com/apache/flink/pull/14897#discussion_r573748650
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/util/ResourceCounter.java ########## @@ -35,11 +37,12 @@ * associated counts. The counts are always positive (> 0). */ public final class ResourceCounter { Review comment: Thanks for the explanation. I now know the story of the `slotPool` version `ResourceCounter`. Let's keep it immutable in this PR. If we meet any performance issue or regression in the future, we might go back to it. As the Chinese New Year is coming, I'll update this PR next week :) ---------------------------------------------------------------- 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: us...@infra.apache.org