Skip to content

Commit e1c1d7e

Browse files
committed
add missing $ to appUIAddress
1 parent e982ddb commit e1c1d7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/ui/SparkUI.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private[spark] class SparkUI(
117117
*/
118118
private[spark] def appUIHostPort = publicHost + ":" + boundPort
119119

120-
private[spark] def appUIAddress = s"http://appUIHostPort"
120+
private[spark] def appUIAddress = s"http://$appUIHostPort"
121121

122122
}
123123

core/src/test/scala/org/apache/spark/SparkUISuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ class SparkUISuite extends FunSuite with SharedSparkContext {
3030

3131
test("verify appUIAddress contains the scheme") {
3232
val appUIUri = new URI(sc.ui.appUIAddress)
33-
assert(appUIUri.getScheme().startsWith("http"))
33+
assert(appUIUri.toString().equals("http://" + sc.ui.appUIHostPort))
3434
}
3535
}

0 commit comments

Comments
 (0)