-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
HADOOP-18077. ProfileOutputServlet unable to proceed due to NPE #3875
Conversation
@aajisaka @jojochuang Could you please take a look? |
💔 -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.
looks good. Would it be easy to add a test? I understand this servlet doesn't work unless we have async profiler installed but not being able to test doesn't feel that great to me.
(fwiw now that the precommit environment is dockerized, we can consider adding real integration tests) |
I agree with adding integration test, however we will need to get async profiler installed (on linux OS) and not just clone the git repo of async profiler. This is where we have the issue i.e. get the profiler installed, setup classpath in hadoop-env and then run the test. The installation part seems tricky. |
But yes, with dockerized containers, we can actually get it installed and run tests. |
Will file a follow-up Jira for adding the integration 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.
+1
Description of PR
ProfileOutputServlet context doesn't have Hadoop configs available and hence async profiler redirection to output servlet is failing to identify if admin access is allowed:
How was this patch tested?
Locally.
Few screenshots:
For code changes: