You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/01 15:21:04 UTC

[jira] [Commented] (SAMZA-1249) Fix equality for WindowKey for Non-keyed tumbling windows

    [ https://issues.apache.org/jira/browse/SAMZA-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990947#comment-15990947 ] 

ASF GitHub Bot commented on SAMZA-1249:
---------------------------------------

GitHub user vjagadish1989 opened a pull request:

    https://github.com/apache/samza/pull/149

    SAMZA-1249: Fix equality for WindowKey for Non-keyed tumbling windows

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vjagadish1989/samza samza-1249

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/samza/pull/149.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #149
    
----
commit a48709edb4e4da4ce362b174e84cf6df9b581585
Author: vjagadish1989 <jv...@linkedin.com>
Date:   2017-05-01T15:09:45Z

    SAMZA-1249: Fix equality for WindowKey for Non-keyed tumbling windows

----


> Fix equality for WindowKey for Non-keyed tumbling windows
> ---------------------------------------------------------
>
>                 Key: SAMZA-1249
>                 URL: https://issues.apache.org/jira/browse/SAMZA-1249
>             Project: Samza
>          Issue Type: Bug
>            Reporter: Jagadish
>            Assignee: Jagadish
>
> The following exception results when we check equality between the `WindowKey` in the message and the `WindowKey` in the store.
> {code}
> java.lang.NullPointerException
>     at org.apache.samza.operators.windows.WindowKey.hashCode(WindowKey.java:80)
>     at java.util.HashMap.hash(HashMap.java:338)
>     at java.util.LinkedHashMap.get(LinkedHashMap.java:440)
>     at org.apache.samza.operators.util.InternalInMemoryStore.get(InternalInMemoryStore.java:49)
>     at org.apache.samza.operators.impl.WindowOperatorImpl.onNext(WindowOperatorImpl.java:96)
>     at org.apache.samza.operators.impl.OperatorImpl.lambda$propagateResult$43(OperatorImpl.java:86)
>     at java.lang.Iterable.forEach(Iterable.java:75)
>     at org.apache.samza.operators.impl.OperatorImpl.propagateResult(OperatorImpl.java:86)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)