-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-11891. Yarn logs command hangs for running applications #8057
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
Merged
Conversation
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
|
💔 -1 overall
This message was automatically generated. |
Contributor
Author
|
@slfan1989 Could you please review the changes? |
slfan1989
approved these changes
Nov 7, 2025
Contributor
|
@dmmkr Thank you for your contribution! LGTM. |
Contributor
|
@dmmkr Thanks for the contribution! Merged into trunk. |
susheelgupta7
pushed a commit
to susheel-gupta/hadoop
that referenced
this pull request
Dec 22, 2025
…ions (apache#8057) Contributed by D M Murali Krishna Reddy. (apache#686) * YARN-11891. Yarn logs command hangs for running applications. (cherry picked from commit a750766) Change-Id: I13289d86aa149031e85142829881c03972f7f0cf Signed-off-by: Shilun Fan <[email protected]> Co-authored-by: Murali Krishna <[email protected]>
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-11891. Yarn logs command hangs for running applications.
filter() method inside the ClientJerseyRetryFilter class, calls checkUrlConnectivity() in a while loop, If there is any issue with connectivity, it decrements the leftRetries till it becomes 0 and throws an Exception, but if it succeeds it keeps on spinning inside the infinite while loop, so added a return after checkUrlConnectivity().
After fixing the above issue, the yarn logs command was throwing below error.
Can not find any log file matching the pattern: [ALL] for the container: container_id within the application: app_id
The XML response of /ws/v1/node/containers/<container_id>/logs is
So in getContainerLogFiles(), an additional getJSONObject("containerLogsInfoes") has been added to ensure the XML response is parsed properly
How was this patch tested?
Validated yarn logs -applicationId for running and completed applications.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?