YARN-11726: Add logging statements for successful and unsuccessful password retrieval operation #7148
+5
−0
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
This pull request enhances the
getPassword
method in the WebAppUtils class within Hadoop YARN by adding logging for password retrieval operations. Previously, if the password retrieval failed due to a misconfiguration or other issues, it failed silently, providing no indication of the error. This update adds:These changes improve transparency and traceability, making it easier for administrators to identify misconfigurations or other issues in YARN's password management.
How was this patch tested?
The changes were tested using the existing unit tests for the
getPassword
method, and the method performed successfully with the added logging functionality. No additional integration tests were required since this change only affects logging behavior.For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?