[ https://issues.apache.org/jira/browse/FLINK-10567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16651971#comment-16651971 ]
ASF GitHub Bot commented on FLINK-10567: ---------------------------------------- Aitozi opened a new pull request #6860: [FLINK-10567]Fix TtlStateSerializer lost field during duplicate() URL: https://github.com/apache/flink/pull/6860 ## What is the purpose of the change This PR is to fix the exception caused by the `TtlStateSerializer` lost the fieldSerializer during duplicate. Which can be reproduced by the testCase in this PR. ## Brief change log - Add the filed in TtlStateSerializer ## Verifying this change This change added tests and can be verified as follows: `StateBackendTestBase#testValueStateWorkWithTtl` ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (yes) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) - The S3 file system connector: (no) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Lost serialize fields when ttl state store with the mutable serializer > ---------------------------------------------------------------------- > > Key: FLINK-10567 > URL: https://issues.apache.org/jira/browse/FLINK-10567 > Project: Flink > Issue Type: Bug > Components: State Backends, Checkpointing > Affects Versions: 1.7.0 > Reporter: aitozi > Assignee: aitozi > Priority: Major > Labels: pull-request-available > Fix For: 1.7.0 > > > In TtlStateSerializer, when it is duplicate, it will lost the long field > serializer which will lead to exception when createInstance, which can easily > be reproduced by the test case -- This message was sent by Atlassian JIRA (v7.6.3#76005)