tomicooler commented on code in PR #6732: URL: https://github.com/apache/hadoop/pull/6732#discussion_r1567660577
########## hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/AbstractParentQueue.java: ########## @@ -1347,6 +1348,18 @@ public List<CSQueue> getChildQueues() { } + @Override + public List<CSQueue> getChildQueuesByTryLock() { + try { + while (!readLock.tryLock()){ + LockSupport.parkNanos(10000); Review Comment: I don't know how useful is to configure this value, the only reason to increase it if the loop is too busy with the 10 thousand nanos (=10 microseconds). https://hazelcast.com/blog/locksupport-parknanos-under-the-hood-and-the-curious-case-of-parking/ Based on this, the granularity should be around 50 microseconds anyway. -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org