Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-torres committed Jan 11, 2018
1 parent b5d621b commit cea2ddc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class ContinuousDataSourceRDD(
}

override def compute(split: Partition, context: TaskContext): Iterator[UnsafeRow] = {
// If attempt number isn't 0, this is a task retry, which we don't support.
if (context.attemptNumber() != 0) {
throw new ContinuousTaskRetryException()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ package org.apache.spark.sql.execution.streaming.continuous

import org.apache.spark.SparkException

/**
* An exception thrown when a continuous processing task runs with a nonzero attempt ID.
*/
class ContinuousTaskRetryException
extends SparkException("Continuous execution does not support task retry", null)

0 comments on commit cea2ddc

Please sign in to comment.