beliefer commented on a change in pull request #27744: [SPARK-30992][DSTREAMS]
Arrange scattered config of streaming module
URL: https://github.com/apache/spark/pull/27744#discussion_r387731113
##########
File path:
streaming/src/main/scala/org/apache/spark/streaming/receiver/BlockGenerator.scala
##########
@@ -100,7 +101,7 @@ private[streaming] class BlockGenerator(
}
import GeneratorState._
- private val blockIntervalMs =
conf.getTimeAsMs("spark.streaming.blockInterval", "200ms")
+ private val blockIntervalMs = conf.get(BLOCK_INTERVAL)
require(blockIntervalMs > 0, s"'spark.streaming.blockInterval' should be a
positive value")
Review comment:
OK
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]