You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2019/08/02 17:02:00 UTC

[jira] [Resolved] (FLINK-13541) State Processor Api sets the wrong key selector when writing savepoints

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

Stephan Ewen resolved FLINK-13541.
----------------------------------
    Resolution: Fixed

Fixed in
  - 1.9.0 via 92eb0b80ed3e761f51825f4e56329085436f39e3
  - 1.10.0 via 61352fb69b24ea8c2de5e2c8840cabb3acc2202e

> State Processor Api sets the wrong key selector when writing savepoints
> -----------------------------------------------------------------------
>
>                 Key: FLINK-13541
>                 URL: https://issues.apache.org/jira/browse/FLINK-13541
>             Project: Flink
>          Issue Type: Bug
>          Components: API / DataStream, Runtime / State Backends
>            Reporter: Seth Wiesman
>            Assignee: Seth Wiesman
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.9.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The state processor api is setting the wrong key selector for its StreamConfig when writing savepoints. It uses two key selectors internally that happen to output the same value for integer keys but not in general. 
> {noformat}
> Caused by: java.lang.RuntimeException: Exception occurred while setting the current key context.
> 	at org.apache.flink.streaming.api.operators.AbstractStreamOperator.setCurrentKey(AbstractStreamOperator.java:641)
> 	at org.apache.flink.streaming.api.operators.AbstractStreamOperator.setKeyContextElement(AbstractStreamOperator.java:627)
> 	at org.apache.flink.streaming.api.operators.AbstractStreamOperator.setKeyContextElement1(AbstractStreamOperator.java:615)
> 	at org.apache.flink.state.api.output.BoundedStreamTask.performDefaultAction(BoundedStreamTask.java:83)
> 	at org.apache.flink.streaming.runtime.tasks.mailbox.execution.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:140)
> 	at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:378)
> 	at org.apache.flink.state.api.output.BoundedOneInputStreamTaskRunner.mapPartition(BoundedOneInputStreamTaskRunner.java:76)
> 	at org.apache.flink.runtime.operators.MapPartitionDriver.run(MapPartitionDriver.java:103)
> 	at org.apache.flink.runtime.operators.BatchTask.run(BatchTask.java:504)
> 	at org.apache.flink.runtime.operators.BatchTask.invoke(BatchTask.java:369)
> 	at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:688)
> 	at org.apache.flink.runtime.taskmanager.Task.run(Task.java:518)
> 	at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
> 	at org.apache.flink.api.common.typeutils.base.StringSerializer.serialize(StringSerializer.java:33)
> 	at org.apache.flink.contrib.streaming.state.RocksDBSerializedCompositeKeyBuilder.serializeKeyGroupAndKey(RocksDBSerializedCompositeKeyBuilder.java:159)
> 	at org.apache.flink.contrib.streaming.state.RocksDBSerializedCompositeKeyBuilder.setKeyAndKeyGroup(RocksDBSerializedCompositeKeyBuilder.java:96)
> 	at org.apache.flink.contrib.streaming.state.RocksDBKeyedStateBackend.setCurrentKey(RocksDBKeyedStateBackend.java:303)
> 	at org.apache.flink.streaming.api.operators.AbstractStreamOperator.setCurrentKey(AbstractStreamOperator.java:639)
> 	... 12 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)