Github user sarutak commented on a diff in the pull request:
https://github.com/apache/spark/pull/16582#discussion_r97700450
--- Diff: core/src/main/scala/org/apache/spark/ui/JettyUtils.scala ---
@@ -274,25 +277,28 @@ private[spark] object JettyUtils extends Logging {
conf: SparkConf,
serverName: String = ""): ServerInfo = {
- val collection = new ContextHandlerCollection
addFilters(handlers, conf)
val gzipHandlers = handlers.map { h =>
+ h.setVirtualHosts(Array("@" + SPARK_CONNECTOR_NAME))
--- End diff --
`addHandler` here means `ServerInfo#addHandler`, sorry for confusing.
And I noticed `serverInfo` in `WebUI` can be `None` and
`serverInfo.foreach(_.addHandler(handler))` is not called within
`WebUI#attachHandler` in that case. So I understand it's reasonable change.
Can you add a test case for justification of this change?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]