Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/365#discussion_r11717029
--- 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 --
If you can do it in this pr that would be great!
On Wednesday, April 16, 2014, Shixiong Zhu <[email protected]> wrote:
> In
> 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")
>
> Sure. One more question: There are many new Exception in DStream.scala.
> It's necessary to change them to SparkExcepation?
>
> --
> Reply to this email directly or view it on
GitHub<https://github.com/apache/spark/pull/365/files#r11716967>
> .
>
---
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.
---