msamirkhan commented on a change in pull request #2198:
URL: https://github.com/apache/hadoop/pull/2198#discussion_r466692384
##########
File path:
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/UsersManager.java
##########
@@ -72,7 +72,7 @@
// To detect whether there is a change in user count for every user-limit
// calculation.
- private AtomicLong latestVersionOfUsersState = new AtomicLong(0);
+ private long latestVersionOfUsersState = 0;
Review comment:
The only place where latestVersionOfUsersState was being called without
a lock was in isRecomputeNeeded. Please also see the comment in
isRecomputeNeeded().
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]