[ https://issues.apache.org/jira/browse/FLINK-23035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17597913#comment-17597913 ]
Roman Khachatryan commented on FLINK-23035: ------------------------------------------- As discussed offline, I planned to have two classes instead of StateChange : one for data changes and one metadata changes. So that StateChangeFormat.writeChangeSetcan explicitly put metadata changes first, and then still group data changes by keygroup. > Add explicit method to StateChangelogWriter to write metadata > ------------------------------------------------------------- > > Key: FLINK-23035 > URL: https://issues.apache.org/jira/browse/FLINK-23035 > Project: Flink > Issue Type: Technical Debt > Components: Runtime / State Backends > Reporter: Roman Khachatryan > Priority: Minor > Fix For: 1.16.0 > > > Currently, metadata is written to the state changelog using the same > StateChangelogWriter.append() method as data. > However, it doesn't belong to a specific group, and should be read first on > recovery. Because of that, -1 is used. > An explicit append() without keygroup would be less fragile (probably still > using -1 under the hood). -- This message was sent by Atlassian Jira (v8.20.10#820010)