Skip to content

Commit

Permalink
Key not found exception: if receiver is slow to start, it is possible…
Browse files Browse the repository at this point in the history
… that getReceivedBlockInfo will be called before compute has been called
  • Loading branch information
vchekan committed Jun 3, 2014
1 parent d967941 commit 4609563
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ abstract class ReceiverInputDStream[T: ClassTag](@transient ssc_ : StreamingCont

/** Get information on received blocks. */
private[streaming] def getReceivedBlockInfo(time: Time) = {
receivedBlockInfo(time)
receivedBlockInfo.get(time).getOrElse(Array.empty[ReceivedBlockInfo])
}

/**
Expand Down

0 comments on commit 4609563

Please sign in to comment.