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

Clear RecordWriter slower to avoid causing frequent compaction conflicts

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      In AbstractTableWrite, the Writer is cleaned up as soon as no new files are generated, which may lead to the changes generated after the compaction have not been committed, but the new data from the next checkpoint comes to create a new writer, which conflicts with the changes generated in the next round of checkpoint and the previous round, resulting in an exception:

      Caused by: java.lang.IllegalStateException: Trying to delete file {org.apache.flink.table.data.binary.BinaryRowData@5759f99e, 0, 0, data-7bf2498e-d0a1-42a5-97b7-b3860f10b076-0.orc} which is not previously added. Manifest might be corrupted.
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lzljs3620320 Jingsong Lee
            lzljs3620320 Jingsong Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment