Skip to content
Prev Previous commit
Next Next commit
SPARK-3276 Started to use ssc.conf rather than ssc.sparkContext.getCo…
…nf, and also getLong method directly.
  • Loading branch information
emres committed Apr 13, 2015
commit 1c53ba9ed84b2e2a5129f4cedd0574060704c9d7
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ class FileInputDStream[K, V, F <: NewInputFormat[K,V]](
* Files with mod times older than this "window" of remembering will be ignored. So if new
* files are visible within this window, then the file will get selected in the next batch.
*/
private val minRememberDurationMin = Minutes(ssc.sparkContext.getConf
.get("spark.streaming.minRememberDurationMin", "1")
.toLong)
private val minRememberDurationMin = Minutes(ssc.conf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The continuation indent looks a bit off here. Maybe just start the next line with Minutes(....
I think we might want to put this change on hold until SPARK-5931 is resolved, since it will give some proper syntax for time-based properties that you can use here.

.getLong("spark.streaming.minRememberDurationMin", 1L))

// This is a def so that it works during checkpoint recovery:
private def clock = ssc.scheduler.clock
Expand Down