Fixed condition in InputDStream isTimeValid.

This commit is contained in:
Tathagata Das 2013-02-21 15:22:26 -08:00
parent 972fe7714f
commit 208edaac1b

View file

@ -29,7 +29,7 @@ abstract class InputDStream[T: ClassManifest] (@transient ssc_ : StreamingContex
false // Time not valid
} else {
// Time is valid, but check it it is more than lastValidTime
if (lastValidTime == null || lastValidTime <= time) {
if (lastValidTime != null && time < lastValidTime) {
logWarning("isTimeValid called with " + time + " where as last valid time is " + lastValidTime)
}
lastValidTime = time