Skip to content

Commit 19aec7d

Browse files
committed
Fixed casting bug.
1 parent f66d277 commit 19aec7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

streaming/src/main/scala/org/apache/spark/streaming/dstream/ReceiverInputDStream.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ abstract class ReceiverInputDStream[T: ClassTag](@transient ssc_ : StreamingCont
5959
val blockRDD = {
6060
if (validTime >= graph.startTime) {
6161
val blockStoreResults = getReceivedBlockInfo(validTime).map { _.blockStoreResult }
62-
val blockIds = blockStoreResults.map { _.asInstanceOf[BlockId] }.toArray
62+
val blockIds = blockStoreResults.map { _.blockId.asInstanceOf[BlockId] }.toArray
6363
val isWriteAheadLogBased = blockStoreResults.forall {
6464
_.isInstanceOf[WriteAheadLogBasedStoreResult]
6565
}

0 commit comments

Comments
 (0)