-
Notifications
You must be signed in to change notification settings - Fork 9.1k
YARN-10991. Fix to ignore the grouping "[]" for resourcesStr in parse… #3592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ResourcesString method
This comment has been minimized.
This comment has been minimized.
@ashutoshcipher Thank you for your fix. The fix looks good to me. Would you add a regression test for this issue? I think you can create a new test class (such as TestClient.java) for this. |
@aajisaka Thanks for the review. I will work on adding the regression test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Better to add a unit test.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
...utedshell/src/test/java/org/apache/hadoop/yarn/applications/distributedshell/TestClient.java
Outdated
Show resolved
Hide resolved
...utedshell/src/test/java/org/apache/hadoop/yarn/applications/distributedshell/TestClient.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ashutoshcipher for adding the test. I have 2 comments.
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thank you.
Merged. Thank you @ashutoshcipher and @tomscut |
…ResourcesString method (apache#3592) Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
…ResourcesString method (apache#3592) Signed-off-by: Akira Ajisaka <aajisaka@apache.org> (cherry picked from commit 08f3df3)
Jira: https://issues.apache.org/jira/browse/YARN-10991
Fix to ignore the grouping "[]" for resourcesStr in parseResourcesString method. Currently, if "]" is present at the end of resourcesStr, it is not ignored.