joseluisll commented on PR #8998:
URL: https://github.com/apache/hadoop/pull/8998#issuecomment-6934656530

   Thanks for the detailed analysis — the root cause and both fixes check out
   against the source (verified the unguarded `setWeights` in
   `FairScheduler#setEntitlement`, the re-read of `getWeight()` on every
   iteration of the doubling loop in `ComputeFairShares#computeSharesInternal`,
   and the `SchedulerUpdateThread`/plan-follower concurrency). Two small items
   before this goes further:
   
   1. [YARN-12063](https://issues.apache.org/jira/browse/YARN-12063) currently
      has an empty description — the root-cause analysis in the PR body (thread
      dumps, mechanism, fix rationale) should be copied to the Jira so reviewers
      landing on the issue see it.
   
   2. The new unit test exercises the `ComputeFairShares` bound only — no test
      in this PR covers the `setEntitlement` write-lock change, and the looped
      `TestFairSchedulerPlanFollower` runs are statistical (~5/558 repro). A
      deterministic regression test is possible: hold the scheduler write lock
      (exposed via a `FairScheduler` subclass), call `setEntitlement` on a
      background thread, and assert it blocks until release — verified locally
      to fail at the merge base and pass with this patch; happy to share the
      probe.
   


-- 
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]

Reply via email to