[ 
https://issues.apache.org/jira/browse/IMPALA-12851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sai Hemanth Gantasala resolved IMPALA-12851.
--------------------------------------------
    Fix Version/s: Impala 4.4.0
       Resolution: Fixed

> Process AllocWriteIdEvent do not add txnId to tableWriteIds mapping in Catalog
> ------------------------------------------------------------------------------
>
>                 Key: IMPALA-12851
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12851
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Catalog
>            Reporter: Venugopal Reddy K
>            Assignee: Venugopal Reddy K
>            Priority: Major
>             Fix For: Impala 4.4.0
>
>
> *Description:*
> txnId to tableWriteIds mapping in Catalog(i.e., 
> org.apache.impala.catalog.Catalog#txnToWriteIds_) is not added in the 
> following cases:
>  # When CREATE_TABLE event is followed by ALLOC_WRITE_ID_EVENT for a table in 
> the same batch of MetastoreEventsProcessor.processEvents(), process 
> AllocWriteIdEvent do not add txnId to tableWriteIds mapping in catalog. It 
> happens, because we get table from catalog in the AllocWriteIdEvent 
> constructor. And catalog_.getTable() returns null as the CREATE_TABLE is not 
> processed by the time of AllocWriteIdEvent construction.Following events get 
> the catalog table in the constructors:-
>  ## AllocWriteIdEvent,
>  ## ReloadEvent,
>  ## CommitCompactionEvent.
>  # When the table is not loaded, msTbl_ is null. process AllocWriteIdEvent 
> returns without updating txnId to tableWriteIds map in catalog. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to