You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Arvid Heise (JIRA)" <ji...@apache.org> on 2018/02/20 12:18:00 UTC
[jira] [Updated] (FLINK-8715) RocksDB does not propagate
reconfiguration of serializer to the states
[ https://issues.apache.org/jira/browse/FLINK-8715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arvid Heise updated FLINK-8715:
-------------------------------
Summary: RocksDB does not propagate reconfiguration of serializer to the states (was: RocksDB does propagate reconfiguration of serializer to the states)
> RocksDB does not propagate reconfiguration of serializer to the states
> ----------------------------------------------------------------------
>
> Key: FLINK-8715
> URL: https://issues.apache.org/jira/browse/FLINK-8715
> Project: Flink
> Issue Type: Bug
> Affects Versions: 1.3.2
> Reporter: Arvid Heise
> Priority: Major
>
> Any changes to the serializer done in #ensureCompability are lost during the state creation.
> In particular, [https://github.com/apache/flink/blob/2f7392d77d85823d3db1f1e5a8d4f6c94358d773/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBValueState.java#L68] always uses a fresh copy of the StateDescriptor.
> An easy fix is to pass the reconfigured serializer as an additional parameter in [https://github.com/apache/flink/blob/2f7392d77d85823d3db1f1e5a8d4f6c94358d773/flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBKeyedStateBackend.java#L1681] , which can be retrieved through the side-output of getColumnFamily
> ```
> kvStateInformation.get(stateDesc.getName()).f1.getStateSerializer()
> ```
> I encountered it in 1.3.2 but the code in the master seems unchanged (hence the pointer into master).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)