Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/365#discussion_r11714946
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
@@ -725,6 +725,9 @@ abstract class DStream[T: ClassTag] (
* Return all the RDDs between 'fromTime' to 'toTime' (both included)
*/
def slice(fromTime: Time, toTime: Time): Seq[RDD[T]] = {
+ if (!isInitialized) {
+ throw new Exception(this + " has not been initialized")
--- End diff --
Can you make this a SparkExcepation? All expected exceptions thrown by
Spark should be SparkException.
---
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.
---