panbingkun commented on code in PR #46079:
URL: https://github.com/apache/spark/pull/46079#discussion_r1570306473


##########
streaming/src/main/scala/org/apache/spark/streaming/dstream/InputDStream.scala:
##########
@@ -91,8 +93,8 @@ abstract class InputDStream[T: ClassTag](_ssc: 
StreamingContext)
     } else {
       // Time is valid, but check it is more than lastValidTime
       if (lastValidTime != null && time < lastValidTime) {
-        logWarning(s"isTimeValid called with $time whereas the last valid time 
" +
-          s"is $lastValidTime")
+        logWarning(log"isTimeValid called with ${MDC(TIME, time)} whereas the 
last valid time " +
+          log"is ${MDC(LAST_VALID_TIME, lastValidTime)}")

Review Comment:
   Their types are `Time`, so the output time units are `milliseconds`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to