[
https://issues.apache.org/jira/browse/FLINK-9799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541693#comment-16541693
]
ASF GitHub Bot commented on FLINK-9799:
---------------------------------------
Github user StefanRRichter commented on a diff in the pull request:
https://github.com/apache/flink/pull/6308#discussion_r202047403
--- Diff:
flink-runtime/src/test/java/org/apache/flink/runtime/state/SerializationProxiesTest.java
---
@@ -126,11 +131,11 @@ public void
testKeyedBackendSerializationProxyRoundtripWithSerializerSerializati
Assert.assertTrue(serializationProxy.getKeySerializer()
instanceof UnloadableDummyTypeSerializer);
Assert.assertEquals(keySerializer.snapshotConfiguration(),
serializationProxy.getKeySerializerConfigSnapshot());
- for (RegisteredKeyedBackendStateMetaInfo.Snapshot<?, ?> meta :
serializationProxy.getStateMetaInfoSnapshots()) {
- Assert.assertTrue(meta.getNamespaceSerializer()
instanceof UnloadableDummyTypeSerializer);
- Assert.assertTrue(meta.getStateSerializer() instanceof
UnloadableDummyTypeSerializer);
-
Assert.assertEquals(namespaceSerializer.snapshotConfiguration(),
meta.getNamespaceSerializerConfigSnapshot());
-
Assert.assertEquals(stateSerializer.snapshotConfiguration(),
meta.getStateSerializerConfigSnapshot());
+ for (StateMetaInfoSnapshot meta :
serializationProxy.getStateMetaInfoSnapshots()) {
--- End diff --
👍 Good point
> Generalize/unify state meta info
> --------------------------------
>
> Key: FLINK-9799
> URL: https://issues.apache.org/jira/browse/FLINK-9799
> Project: Flink
> Issue Type: Sub-task
> Components: State Backends, Checkpointing
> Affects Versions: 1.5.0
> Reporter: Stefan Richter
> Assignee: Stefan Richter
> Priority: Major
> Labels: pull-request-available
>
> Flink currently has a couple of classes that describe the meta data of state
> (e.g. for keyed state, operator state, broadcast state, ...) and they
> typically come with their own serialization proxy and backwards compatibility
> story. However, the differences between those meta data classes are very
> small, like different option flags and a different set of serializers. Before
> introducing yet another meta data for timers, we should unify them in a
> general state meta data class.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)