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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]