Skip to content

Commit

Permalink
SPARKC-247: Protect against null SparkContexts
Browse files Browse the repository at this point in the history
CheckpointStreamSpec uses the ApacheSpark Test code base which
ocassionally nulls out the Spark Context. This forces the context to be
recreated after the Spark tests null it out.
  • Loading branch information
RussellSpitzer authored and pkolaczk committed Oct 5, 2015
1 parent db8d1b0 commit d977762
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class CheckpointStreamSpec
}

override def afterAll(): Unit ={
//Force the recreation of the template Spark Context
useSparkConf(sc.getConf, true)
}

"Spark Streaming + Checkpointing" should "work with JWCTable and RPCassandra Replica" in {
Expand Down

0 comments on commit d977762

Please sign in to comment.