You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2019/11/08 10:01:00 UTC

[jira] [Resolved] (FLINK-14646) Check non-null for key in KeyGroupStreamPartitioner

     [ https://issues.apache.org/jira/browse/FLINK-14646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Till Rohrmann resolved FLINK-14646.
-----------------------------------
    Resolution: Fixed

Fixed via

1.10.0: 3a096659297b4b61260d1799b5fe3f7151089e19
1.9.2: b3def1879370a24900db31eeef6266fa1031851b
1.8.3: 15031fc7b6ead9dcb15b4a6fa10f541a06d5245c

> Check non-null for key in KeyGroupStreamPartitioner
> ---------------------------------------------------
>
>                 Key: FLINK-14646
>                 URL: https://issues.apache.org/jira/browse/FLINK-14646
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / State Backends
>    Affects Versions: 1.8.2, 1.10.0, 1.9.1
>            Reporter: Jiayi Liao
>            Assignee: Jiayi Liao
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.10.0, 1.8.3, 1.9.2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> We should check non-null for {{key}} in {{selectChannel}} function in {{KeyGroupStreamPartitioner}} because {{KeyGroupRangeAssignment}} does not allow null key for assignment. And if we produce a null key in {{KeyGroupStreamPartitioner}}, the exception is not clear enough.
> {code:java}
> Caused by: java.lang.NullPointerException
> 	at org.apache.flink.runtime.state.KeyGroupRangeAssignment.assignToKeyGroup(KeyGroupRangeAssignment.java:60)
> 	at org.apache.flink.runtime.state.KeyGroupRangeAssignment.assignKeyToParallelOperator(KeyGroupRangeAssignment.java:49)
> 	at org.apache.flink.streaming.runtime.partitioner.KeyGroupStreamPartitioner.selectChannel(KeyGroupStreamPartitioner.java:58)
> 	at org.apache.flink.streaming.runtime.partitioner.KeyGroupStreamPartitioner.selectChannel(KeyGroupStreamPartitioner.java:32)
> 	at org.apache.flink.runtime.io.network.api.writer.RecordWriter.emit(RecordWriter.java:120)
> 	at org.apache.flink.streaming.runtime.io.RecordWriterOutput.pushToRecordWriter(RecordWriterOutput.java:110)
> 	... 9 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)