Repository: spark
Updated Branches:
  refs/heads/master b38dec2ff -> e60ad2f4c


SPARK-6045 RecordWriter should be checked against null in PairRDDFunctio...

...ns#saveAsNewAPIHadoopDataset

Author: tedyu <[email protected]>

Closes #4794 from tedyu/master and squashes the following commits:

2632a57 [tedyu] SPARK-6045 RecordWriter should be checked against null in 
PairRDDFunctions#saveAsNewAPIHadoopDataset
2d8d4b1 [tedyu] SPARK-6045 RecordWriter should be checked against null in 
PairRDDFunctions#saveAsNewAPIHadoopDataset


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e60ad2f4
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e60ad2f4
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e60ad2f4

Branch: refs/heads/master
Commit: e60ad2f4c47b011be7a3198689ac2b82ee317d96
Parents: b38dec2
Author: tedyu <[email protected]>
Authored: Thu Feb 26 23:26:07 2015 +0000
Committer: Sean Owen <[email protected]>
Committed: Thu Feb 26 23:27:09 2015 +0000

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e60ad2f4/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala 
b/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
index 955b42c..6b4f097 100644
--- a/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
+++ b/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
@@ -993,6 +993,7 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
       val (outputMetrics, bytesWrittenCallback) = 
initHadoopOutputMetrics(context)
 
       val writer = 
format.getRecordWriter(hadoopContext).asInstanceOf[NewRecordWriter[K,V]]
+      require(writer != null, "Unable to obtain RecordWriter")
       var recordsWritten = 0L
       try {
         while (iter.hasNext) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to