[
https://issues.apache.org/jira/browse/HIVE-25777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Denys Kuzmenko resolved HIVE-25777.
-----------------------------------
Resolution: Fixed
> ACID: Pick the compactor transaction over insert dir
> ----------------------------------------------------
>
> Key: HIVE-25777
> URL: https://issues.apache.org/jira/browse/HIVE-25777
> Project: Hive
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 3.1.2, 4.0.0
> Reporter: Gopal Vijayaraghavan
> Assignee: Denys Kuzmenko
> Priority: Major
> Labels: Compaction, pull-request-available
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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
> {code}
> base_000011/
> base_000011_v192/
> {code}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)