Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/365#discussion_r11716967
--- 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 --
Sure. One more question: There are many `new Exception` in DStream.scala.
It's necessary to change them to `SparkExcepation`?
---
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.
---