slfan1989 opened a new pull request, #8262:
URL: https://github.com/apache/hadoop/pull/8262
### Description of PR
JIRA: YARN-11932. Fix TestYarnFederationWithFairScheduler timeout caused by
shared NodeLabel storage.
TestYarnFederationWithFairScheduler#testMetricsInfo intermittently times out
because multiple test subclusters share the same NodeLabel storage directory
(/tmp/hadoop-yarn-$USER/node-labels) by default. Residual editlog entries
containing "delete default label" operations from previous tests cause RM
startup to fail with "Node label=default to be removed doesn't existed in
cluster node labels collection".
This pr sets an isolated NodeLabel storage directory for each subcluster
using GenericTestUtils.getTestDir() with a unique name pattern
(node-labels-{subClusterId}-{timestamp}) to avoid reusing old editlog files.
### How was this patch tested?
Exists Junit Test.
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
### AI Tooling
If an AI tool was used:
- [ ] The PR includes the phrase "Contains content generated by <tool>"
where <tool> is the name of the AI tool used.
- [ ] My use of AI contributions follows the ASF legal policy
https://www.apache.org/legal/generative-tooling.html
--
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]