Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.12.7, 1.13.6, 1.16.0, 1.17.0, 1.15.2, 1.14.6
Description
org.apache.flink.streaming.api.operators.sorted.state.BatchExecutionKeyedStateBackend#getOrCreateKeyedState is using freshly constructed ExecutionConfig, instead of the one configured by the user from the environment.
public <N, S extends State, T> S getOrCreateKeyedState( TypeSerializer<N> namespaceSerializer, StateDescriptor<S, T> stateDescriptor) throws Exception { checkNotNull(namespaceSerializer, "Namespace serializer"); checkNotNull( keySerializer, "State key serializer has not been configured in the config. " + "This operation cannot use partitioned state."); if (!stateDescriptor.isSerializerInitialized()) { stateDescriptor.initializeSerializerUnlessSet(new ExecutionConfig()); }
The correct one could be obtained from env.getExecutionConfig() in org.apache.flink.streaming.api.operators.sorted.state.BatchExecutionStateBackend#createKeyedStateBackend
Attachments
Issue Links
- links to