YARN-11933. TestAMSimulator fails due to shared node labels store directory.#8264
Open
slfan1989 wants to merge 2 commits intoapache:trunkfrom
Open
YARN-11933. TestAMSimulator fails due to shared node labels store directory.#8264slfan1989 wants to merge 2 commits intoapache:trunkfrom
slfan1989 wants to merge 2 commits intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
Contributor
Author
|
@cnauroth The unit test issue in TestAMSimulator has been fixed. Could you review this PR when you have a moment? Thanks a lot! |
|
🎊 +1 overall
This message was automatically generated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
JIRA:YARN-11933. TestAMSimulator fails due to shared node labels store directory.
Problem
TestAMSimulatorfails intermittently when running concurrently or repeatedly due to shared Node Labels Store directory conflicts. Multiple test instances write to the same default directory, causing interference and test failures.Root Cause
The test does not specify an independent Node Labels Store directory via
YarnConfiguration.FS_NODE_LABELS_STORE_ROOT_DIR.All test instances use the default shared path, leading to conflicts when:
Solution
Create isolated temporary directories for each test instance:
Setup phase: Create a unique temporary directory for Node Labels Store and configure it via
YarnConfiguration.FS_NODE_LABELS_STORE_ROOT_DIRTeardown phase: Clean up the temporary directory to prevent resource leaks
How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?AI Tooling
If an AI tool was used:
where is the name of the AI tool used.
https://www.apache.org/legal/generative-tooling.html