gengliangwang commented on code in PR #46980:
URL: https://github.com/apache/spark/pull/46980#discussion_r1643394022
##########
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala:
##########
@@ -201,7 +201,8 @@ abstract class DStream[T: ClassTag] (
// Set the checkpoint interval to be slideDuration or 10 seconds, which
ever is larger
if (mustCheckpoint && checkpointDuration == null) {
checkpointDuration = slideDuration * math.ceil(Seconds(10) /
slideDuration).toInt
- logInfo(s"Checkpoint interval automatically set to $checkpointDuration")
+ logInfo(log"Checkpoint interval automatically set to " +
+ log"${MDC(LogKeys.CHECKPOINT_INTERVAL, checkpointDuration)}")
Review Comment:
INTERVAL
##########
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala:
##########
@@ -277,19 +278,19 @@ abstract class DStream[T: ClassTag] (
dependencies.foreach(_.validateAtStart())
- logInfo(s"Slide time = $slideDuration")
- logInfo(s"Storage level = ${storageLevel.description}")
- logInfo(s"Checkpoint interval = $checkpointDuration")
- logInfo(s"Remember interval = $rememberDuration")
- logInfo(s"Initialized and validated $this")
+ logInfo(log"Slide time = ${MDC(LogKeys.SLIDE_DURATION, slideDuration)}")
+ logInfo(log"Storage level = ${MDC(LogKeys.STORAGE_LEVEL,
storageLevel.description)}")
+ logInfo(log"Checkpoint interval = ${MDC(LogKeys.CHECKPOINT_INTERVAL,
checkpointDuration)}")
Review Comment:
INTERVAL
--
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]