You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Caizhi Weng (Jira)" <ji...@apache.org> on 2022/11/02 03:23:00 UTC

[jira] [Created] (FLINK-29842) Change commitIdentifier in Table Store snapshot to long value

Caizhi Weng created FLINK-29842:
-----------------------------------

             Summary: Change commitIdentifier in Table Store snapshot to long value
                 Key: FLINK-29842
                 URL: https://issues.apache.org/jira/browse/FLINK-29842
             Project: Flink
          Issue Type: Improvement
          Components: Table Store
    Affects Versions: table-store-0.3.0, table-store-0.2.2
            Reporter: Caizhi Weng
            Assignee: Caizhi Weng
             Fix For: table-store-0.3.0, table-store-0.2.2


Currently {{commitIdentifier}} in {{Snapshot}} is a {{String}} value. However there are many scenarios where we need to compare two identifiers to find out which one is newer. For example
* In FLINK-29840, we need to store the latest modified commit for each writer. Only when the latest snapshot is newer than this commit can we safely close the writer.
* In FLINK-29805, we can read the commit identifier of the latest snapshot. All identifiers older than that should be filtered out.
* In FLINK-29752, we need to trigger full compaction once in a few commits. We can read the latest commit identifier and compare it with the full compaction identifier to check if full compaction is successfully committed.
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)