Skip to content

Commit e8d1fbc

Browse files
committed
Eliminate delay between binding and checking for logs
1 parent 7863ecc commit e8d1fbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ class HistoryServer(
9898
def initialize() {
9999
attachPage(new HistoryPage(this))
100100
attachHandler(createStaticHandler(STATIC_RESOURCE_DIR, "/static"))
101+
}
102+
103+
/** Bind to the HTTP server behind this web interface. */
104+
override def bind() {
105+
super.bind()
101106
logCheckingThread.start()
102107
}
103108

0 commit comments

Comments
 (0)