Skip to content

Commit

Permalink
[Fix apache#204] Update out-dated comments
Browse files Browse the repository at this point in the history
This PR is self-explanatory.

Author: Andrew Or <[email protected]>

Closes apache#381 from andrewor14/master and squashes the following commits:

3e8dde2 [Andrew Or] Fix comments for apache#204
  • Loading branch information
andrewor14 authored and pdeyhim committed Jun 25, 2014
1 parent e106cb1 commit d49b5f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1191,11 +1191,7 @@ class SparkContext(config: SparkConf) extends Logging {
listenerBus.post(SparkListenerApplicationStart(appName, startTime, sparkUser))
}

/**
* Post the application end event to all listeners immediately, rather than adding it
* to the event queue for it to be asynchronously processed eventually. Otherwise, a race
* condition exists in which the listeners may stop before this event has been propagated.
*/
/** Post the application end event */
private def postApplicationEnd() {
listenerBus.post(SparkListenerApplicationEnd(System.currentTimeMillis))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import org.apache.spark.util.JsonProtocol
/**
* A SparkListenerBus that replays logged events from persisted storage.
*
* This class expects files to be appropriately prefixed as specified in EventLoggingListener.
* There exists a one-to-one mapping between ReplayListenerBus and event logging applications.
* This assumes the given paths are valid log files, where each line can be deserialized into
* exactly one SparkListenerEvent.
*/
private[spark] class ReplayListenerBus(
logPaths: Seq[Path],
Expand Down

0 comments on commit d49b5f3

Please sign in to comment.