gengliangwang commented on code in PR #46980:
URL: https://github.com/apache/spark/pull/46980#discussion_r1640741956
##########
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala:
##########
@@ -314,8 +317,10 @@ abstract class DStream[T: ClassTag] (
if (!isInitialized) {
throw new SparkException (this.toString + " has not been initialized")
} else if (time <= zeroTime || ! (time -
zeroTime).isMultipleOf(slideDuration)) {
- logInfo(s"Time $time is invalid as zeroTime is $zeroTime" +
- s" , slideDuration is $slideDuration and difference is ${time -
zeroTime}")
+ logInfo(log"Time ${MDC(LogKeys.TIME, time)} is invalid as zeroTime is " +
+ log"${MDC(LogKeys.ZERO_TIME, zeroTime)}, slideDuration is " +
+ log"${MDC(LogKeys.SLIDE_DURATION, slideDuration)} and difference is " +
+ log"${MDC(LogKeys.TIME, time - zeroTime)}")
Review Comment:
Time is used twice
--
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]