Skip to content

Commit 3e8dde2

Browse files
committed
Fix comments for apache#204
1 parent 79820fe commit 3e8dde2

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,11 +1182,7 @@ class SparkContext(config: SparkConf) extends Logging {
11821182
listenerBus.post(SparkListenerApplicationStart(appName, startTime, sparkUser))
11831183
}
11841184

1185-
/**
1186-
* Post the application end event to all listeners immediately, rather than adding it
1187-
* to the event queue for it to be asynchronously processed eventually. Otherwise, a race
1188-
* condition exists in which the listeners may stop before this event has been propagated.
1189-
*/
1185+
/** Post the application end event */
11901186
private def postApplicationEnd() {
11911187
listenerBus.post(SparkListenerApplicationEnd(System.currentTimeMillis))
11921188
}

core/src/main/scala/org/apache/spark/scheduler/ReplayListenerBus.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import org.apache.spark.util.JsonProtocol
3232
/**
3333
* A SparkListenerBus that replays logged events from persisted storage.
3434
*
35-
* This class expects files to be appropriately prefixed as specified in EventLoggingListener.
36-
* There exists a one-to-one mapping between ReplayListenerBus and event logging applications.
35+
* This assumes the given paths are valid log files, where each line can be deserialized into
36+
* exactly one SparkListenerEvent.
3737
*/
3838
private[spark] class ReplayListenerBus(
3939
logPaths: Seq[Path],

0 commit comments

Comments
 (0)