Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/21523#discussion_r194814773
--- Diff: core/src/main/scala/org/apache/spark/ui/WebUI.scala ---
@@ -91,7 +91,12 @@ private[spark] abstract class WebUI(
/** Attach a handler to this UI. */
def attachHandler(handler: ServletContextHandler) {
handlers += handler
- serverInfo.foreach(_.addHandler(handler))
+ serverInfo.foreach { sInfo =>
--- End diff --
I'm still working on it since it touches a bunch of other things, not just
this. This is fine as is, it's better to have a more targeted fix here and
leave my PR just as refactoring.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]