Yuan Luo created YARN-12058:
-------------------------------

             Summary: Avoid WARN logs for expected node capacity mismatches
                 Key: YARN-12058
                 URL: https://issues.apache.org/jira/browse/YARN-12058
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: capacityscheduler
            Reporter: Yuan Luo
            Assignee: Yuan Luo


h2. Problem
* {{RegularContainerAllocator.assignContainer}} logs a WARN when a request 
exceeds the candidate node's total resource capacity.
* In heterogeneous clusters, a valid request may fit larger nodes but not 
smaller ones. Repeated attempts on smaller nodes can therefore generate WARN 
noise during normal scheduling.

h2. Solution
* Change this message from WARN to parameterized DEBUG logging.
* Preserve {{LOCALITY_SKIPPED}} and existing scheduling activity diagnostics.
* Leave resource checks, allocation decisions, and other warning messages 
unchanged.
* Add a regression test covering INFO/DEBUG logging, skipping an undersized 
node without reserving, and allocation on a larger node.

h2. Validation
* Local JDK 17 and Maven Wrapper 3.9.15: ResourceManager compilation passed 
using locally installed dependencies. No native profile was enabled.
* {{TestContainerAllocation}}: 18 tests, 0 failures, 0 errors, 0 skipped.
* With the original production code, the new regression test failed at the 
INFO-level log assertion: 1 failure, 0 errors, 0 skipped.
* Fresh Surefire XML and {{git diff --check}} verified. Community CI has not 
run. No benchmark result is claimed.

h2. Related PR




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to