Fixed condition in InputDStream isTimeValid.
This commit is contained in:
parent
972fe7714f
commit
208edaac1b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue