You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/11/07 09:40:00 UTC
[jira] [Updated] (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 ]
ASF GitHub Bot updated FLINK-29916:
-----------------------------------
Labels: pull-request-available (was: )
> 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)