Github user vchekan commented on a diff in the pull request:
https://github.com/apache/spark/pull/961#discussion_r13398598
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/dstream/ReceiverInputDStream.scala
---
@@ -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])
--- End diff --
Fixed, thanks!
On Tue, Jun 3, 2014 at 9:04 PM, Patrick Wendell <[email protected]>
wrote:
> In
>
streaming/src/main/scala/org/apache/spark/streaming/dstream/ReceiverInputDStream.scala:
>
> > @@ -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])
>
> Mind using the two-space indentation like before?
>
> â
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/spark/pull/961/files#r13370405>.
>
--
From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT is
explicitly specified
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---