Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/6271#discussion_r30668275
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/DStreamGraph.scala ---
@@ -157,10 +157,10 @@ final private[streaming] class DStreamGraph extends
Serializable with Logging {
def validate() {
this.synchronized {
- assert(batchDuration != null, "Batch duration has not been set")
+ require(batchDuration != null, "Batch duration has not been set")
// assert(batchDuration >= Milliseconds(100), "Batch duration of " +
batchDuration +
// " is very low")
- assert(getOutputStreams().size > 0, "No output streams registered,
so nothing to execute")
+ require(getOutputStreams().size > 0, "No output streams registered,
so nothing to execute")
--- End diff --
Can you change the message to "No output operations registered..."
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]