File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
core/src/main/scala/org/apache/spark/ui
streaming/src/test/scala/org/apache/spark/streaming Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -236,4 +236,8 @@ private[spark] class DelegatingServletContextHandler(handler: ServletContextHand
236236 def filterCount (): Int = {
237237 handler.getServletHandler.getFilters.length
238238 }
239+
240+ def getContextPath (): String = {
241+ handler.getContextPath
242+ }
239243}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class UISeleniumSuite
9797
9898 val sparkUI = ssc.sparkContext.ui.get
9999
100- sparkUI.getHandlers .count(_.getContextPath.contains(" /streaming" )) should be (5 )
100+ sparkUI.getDelegatingHandlers .count(_.getContextPath.contains(" /streaming" )) should be (5 )
101101
102102 eventually(timeout(10 .seconds), interval(50 .milliseconds)) {
103103 go to (sparkUI.webUrl.stripSuffix(" /" ))
@@ -198,7 +198,7 @@ class UISeleniumSuite
198198
199199 ssc.stop(false )
200200
201- sparkUI.getHandlers .count(_.getContextPath.contains(" /streaming" )) should be (0 )
201+ sparkUI.getDelegatingHandlers .count(_.getContextPath.contains(" /streaming" )) should be (0 )
202202
203203 eventually(timeout(10 .seconds), interval(50 .milliseconds)) {
204204 go to (sparkUI.webUrl.stripSuffix(" /" ))
You can’t perform that action at this time.
0 commit comments