Skip to content

Commit dbfc7bf

Browse files
committed
style
1 parent b86bcb0 commit dbfc7bf

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,5 @@ private[spark] abstract class WebUITab(parent: WebUI, val prefix: String) {
163163
*/
164164
private[spark] abstract class WebUIPage(var prefix: String) {
165165
def render(request: HttpServletRequest): Seq[Node]
166-
//TODO delete this once I implement the remaining pages at other endpoints for the json
167166
def renderJson(request: HttpServletRequest): JValue = JNothing
168167
}

core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
7272
"job list json" -> "applications/local-1422981780767/jobs",
7373
"one job json" -> "applications/local-1422981780767/jobs/0",
7474
"succeeded job list json" -> "applications/local-1422981780767/jobs?status=succeeded",
75-
"succeeded&failed job list json" -> "applications/local-1422981780767/jobs?status=succeeded&status=failed",
75+
"succeeded&failed job list json" ->
76+
"applications/local-1422981780767/jobs?status=succeeded&status=failed",
7677
"executor list json" -> "applications/local-1422981780767/executors",
7778
"stage list json" -> "applications/local-1422981780767/stages",
7879
"complete stage list json" -> "applications/local-1422981780767/stages?status=complete",
@@ -83,11 +84,11 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
8384
"stage with accumulable json" -> "applications/local-1426533911241/stages/0/0",
8485
"rdd list storage json" -> "applications/local-1422981780767/storage/rdd",
8586
"one rdd storage json" -> "applications/local-1422981780767/storage/rdd/0"
86-
//TODO multi-attempt stages
87+
// TODO multi-attempt stages
8788
)
8889

89-
//run a bunch of characterization tests -- just verify the behavior is the same as what is saved in the test
90-
// resource folder
90+
//run a bunch of characterization tests -- just verify the behavior is the same as what is saved
91+
// in the test resource folder
9192
cases.foreach { case (name, path) =>
9293
test(name) {
9394
val (code, jsonOpt, errOpt) = getContentAndCode(path)
@@ -123,8 +124,7 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
123124

124125
try {
125126

126-
//TODO figure out a way to authenticate as the users in the requests
127-
// getContentAndCode("applications", securePort)._1 should be (200)
127+
// TODO figure out a way to authenticate as the users in the requests
128128
pending
129129

130130
} finally {
@@ -176,7 +176,7 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
176176
justHrefs should contain(link)
177177
}
178178

179-
def getContentAndCode(path: String): (Int, Option[String], Option[String]) = {
179+
def getContentAndCode(path: String, port: Int = port): (Int, Option[String], Option[String]) = {
180180
HistoryServerSuite.getContentAndCode(new URL(s"http://localhost:$port/json/v1/$path"))
181181
}
182182

@@ -198,9 +198,8 @@ class HistoryServerSuite extends FunSuite with BeforeAndAfter with Matchers with
198198

199199
object HistoryServerSuite {
200200
def main(args: Array[String]): Unit = {
201-
/* generate the "expected" results for the characterization tests. Just blindly assume the current behavior
202-
* is correct, and write out the returned json to the test/resource files
203-
*/
201+
// generate the "expected" results for the characterization tests. Just blindly assume the
202+
// current behavior is correct, and write out the returned json to the test/resource files
204203

205204
val suite = new HistoryServerSuite
206205
FileUtils.deleteDirectory(suite.expRoot)

0 commit comments

Comments
 (0)