Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/21523#discussion_r194488465
--- 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 =>
+ sInfo.addHandler(handler)
+ // If the UI has already been bound, we need to add the filters to
the newly attached
+ // handlers. Otherwise, they will be attached when binding.
+ addFilters(Seq(handler), conf)
--- End diff --
Nevermind you already removed it.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]