spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwendell <>
Subject [GitHub] spark pull request: [SPARK-4518][SPARK-4519][Streaming] Refactored...
Date Mon, 24 Nov 2014 05:36:32 GMT
Github user pwendell commented on a diff in the pull request:
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/FileInputDStream.scala
    @@ -193,57 +306,25 @@ class FileInputDStream[K: ClassTag, V: ClassTag, F <: NewInputFormat[K,V]
: Clas
    => (p._1, p._2.mkString(", "))).mkString("\n") + "\n]"
    +object FileInputDStream {
    -   * Custom PathFilter class to find new files that
    -   * ... have modification time more than ignore time
    -   * ... have not been seen in the last interval
    -   * ... have modification time less than maxModTime
    +   * Minimum duration of remembering the information of selected files. Files with mod
    +   * 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[streaming]
    -  class CustomPathFilter(maxModTime: Long) extends PathFilter {
    +  private val REMEMBER_DURATION = Minutes(1)
    --- End diff --
    should this be called `MINIMUM_REMEMBER_DURATION`? There is also a variable called `durationToRemember`
that might be different than this. I found it a bit confusing to have something called `durationToRemember`
and another thing called `REMEMBER_DURATION` but they can have different values.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message