You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2018/03/10 01:11:00 UTC
[jira] [Resolved] (HIVE-18662) hive.acid.key.index is missing
entries
[ https://issues.apache.org/jira/browse/HIVE-18662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eugene Koifman resolved HIVE-18662.
-----------------------------------
Resolution: Fixed
Assignee: Eugene Koifman
Fix Version/s: 3.0.0
fixed in HIVE-18817
> hive.acid.key.index is missing entries
> --------------------------------------
>
> Key: HIVE-18662
> URL: https://issues.apache.org/jira/browse/HIVE-18662
> Project: Hive
> Issue Type: Bug
> Components: Transactions
> Reporter: Eugene Koifman
> Assignee: Eugene Koifman
> Priority: Major
> Fix For: 3.0.0
>
>
> OrcRecordUpdater.KeyIndexBuilder stores an index in ORC footer where each entry is the last ROW__ID of each stripe. In acid1 this is used to filter the events from delta file when merging with part of the base.
>
> as can be seen in {{TestTxnCommands.testVersioning()}} (added in HIVE-18659) the {{hive.acid.key.index}} is empty.
>
> This is because very little data is written and WriterImpl.flushStripe() is not called except when {
> {WriterImpl.close()}
> is called. In the later, {{WriterCallback.preFooterWrite()}} is called before {{preStripeWrite}} and so KeyIndexBuilder.preFooterWriter() records nothing in \{{hive.acid.key.index}}
>
> need to investigate if this is an issue, in particular acid 2
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)