Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-3342

MOR Delta Block Rollbacks not applied if Lazy Block reading is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • 1.1.0
    • metadata
    • None
    • 2

    Description

      While working on HUDI-3322, i've spotted following contraption:

      When we are rolling back Delta Commits, we add corresponding ROLLBACK_PREVIOUS_BLOCK Command Block at the back of the "queue". When we restore, we issue a sequence of Rollbacks, which means that stack if such Rollback Blocks could be of size > 1.

      However, when reading that MOR table if the reader does not specify `readBlocksLazily=true`, we'd be merging Blocks eagerly (when instants increment) therefore essentially rendering such Rollback Blocks useless since they can't "unmerge" previously merged records, resurrecting the data that was supposed to be rolled back.

      Attachments

        Issue Links

          Activity

            People

              xushiyan Shiyan Xu
              alexey.kudinkin Alexey Kudinkin
              Shiyan Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: