Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-25777

ACID: Pick the compactor transaction over insert dir

    XMLWordPrintableJSON

Details

    Description

      If there are two competing versions of a particular write-id, one from the compactor and another from the original insert, always pick the compactor one once it is committed.

      If the directory structure looks like

      base_000011/
      base_000011_v192/
      

      Then always pick the v192 transaction if txnid=192 is committed.

      This is required to ensure that the raw base_ dir can be deleted safely on non-atomic directory deletions (like s3), without a race condition between getSplits and the actual file-reader.

      Attachments

        Issue Links

          Activity

            People

              dkuzmenko Denys Kuzmenko
              gopalv Gopal Vijayaraghavan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m