You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2022/08/10 06:03:02 UTC
[GitHub] [hadoop] luoyuan3471 commented on pull request #4726: YARN-11191 Global Scheduler refreshQueue cause deadLock
luoyuan3471 commented on PR #4726:
URL: https://github.com/apache/hadoop/pull/4726#issuecomment-1210199622
@yb12138 I want to ask two question:
+ @Override
+ public List<CSQueue> getChildQueuesByTryLock() {
+ try {
+ while (!readLock.tryLock()){
+ LockSupport.parkNanos(10000);
+ }
+ return new ArrayList<CSQueue>(childQueues);
+ } finally {
+ readLock.unlock();
+ }
+ }
1.Though you use tryLock and park, so refresh queue thread switch to block state, but this thread still hold PremmptionManager lock ,so scheduler thread still can allocate new container. Is it right?
2.Does this issue related to global Scheduler or just the preemption function?
Looking forward to your reply, thanks!
--
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-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org