-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
[SPARK-4595][Core] Fix MetricsServlet not work issue #3444
Conversation
Test build #23822 has started for PR 3444 at commit
|
Test build #23822 has finished for PR 3444 at commit
|
Test PASSed. |
I'm finally getting around to reviewing this now. Is there a good way to test this? What's the error message / symptom thatI should look for in the buggy version of this code? |
Ah, this was actually a pretty nasty bug since it seems to silently fail! I'm fine merging this patch to fix this issue, but I wonder whether there are other changes that we could make to I'd be happy to do this cleanup here, but maybe we should just merge this as-is then do the cleanup in a subsequent PR. Actually, let's try this: I'll submit a PR to your PR which does the cleanup in |
I've opened a PR against this PR in order to add defensive checks to MetricsSystem, which would have prevented the issue fixed by this PR: jerryshao#10 @jerryshao would be great if you could take a look at that and merge it into this PR branch if it looks fine to you (I've opened it against this branch). |
Thanks a lot Josh, I will merge into this PR and update the code :) |
Add defensive checks to MetricsSystem methods; make more methods private
Test build #24520 has started for PR 3444 at commit
|
Test build #24520 has finished for PR 3444 at commit
|
Test PASSed. |
I tested this out and it looks good to me, so I'm going to merge this into |
`MetricsServlet` handler should be added to the web UI after initialized by `MetricsSystem`, otherwise servlet handler cannot be attached. Author: Saisai Shao <saisai.shao@intel.com> Author: Josh Rosen <joshrosen@databricks.com> Author: jerryshao <saisai.shao@intel.com> Closes #3444 from jerryshao/SPARK-4595 and squashes the following commits: 434d17e [Saisai Shao] Merge pull request #10 from JoshRosen/metrics-system-cleanup 87a2292 [Josh Rosen] Guard against misuse of MetricsSystem methods. f779fe0 [jerryshao] Fix MetricsServlet not work issue (cherry picked from commit cf50631) Signed-off-by: Josh Rosen <joshrosen@databricks.com>
Actually, it looks like this issue doesn't affect 1.1.1, since I'm able to browse to |
MetricsServlet
handler should be added to the web UI after initialized byMetricsSystem
, otherwise servlet handler cannot be attached.