Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-29916

Levels in Table Store may mistakenly ignore level 0 files when two files have the same sequence number

    XMLWordPrintableJSON

Details

    Description

      Current constructor of Levels class contains the following code:

      this.level0 = new TreeSet<>(Comparator.comparing(DataFileMeta::maxSequenceNumber).reversed());
      

      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.

      Attachments

        Activity

          People

            TsReaper Caizhi Weng
            TsReaper Caizhi Weng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: