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

[jira] [Closed] (FLINK-29916) Levels in Table Store may mistakenly ignore level 0 files when two files have the same sequence number

     [ https://issues.apache.org/jira/browse/FLINK-29916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Caizhi Weng closed FLINK-29916.
-------------------------------
    Resolution: Fixed

master: 95dd0c32da31b6528e96988b21e01126f3c24b7d
release-0.2: 1c66dbf7aa05e18acc8724eed3a48f005326311d

> Levels in Table Store may mistakenly ignore level 0 files when two files have the same sequence number
> ------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-29916
>                 URL: https://issues.apache.org/jira/browse/FLINK-29916
>             Project: Flink
>          Issue Type: Bug
>          Components: Table Store
>    Affects Versions: table-store-0.3.0, table-store-0.2.2
>            Reporter: Caizhi Weng
>            Assignee: Caizhi Weng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: table-store-0.3.0, table-store-0.2.2
>
>
> Current constructor of {{Levels}} class contains the following code:
> {code:java}
> this.level0 = new TreeSet<>(Comparator.comparing(DataFileMeta::maxSequenceNumber).reversed());
> {code}
> However when two or more jobs writing the same bucket, they may produce files containing the same sequence number. If two files have the same {{maxSequenceNumber}}, one of them will be mistakenly ignored by {{TreeSet}}.



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