[ 
https://issues.apache.org/jira/browse/HIVE-21766?focusedWorklogId=248819&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-248819
 ]

ASF GitHub Bot logged work on HIVE-21766:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/May/19 13:00
            Start Date: 27/May/19 13:00
    Worklog Time Spent: 10m 
      Work Description: sankarh commented on pull request #647: HIVE-21766 : 
Select * returns no rows in hive bootstrap from a statior dynamic partitioned 
managed table with Timestamp type as partition column from on prem to WASB even 
though count ( * ) matches
URL: https://github.com/apache/hive/pull/647#discussion_r287781889
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/exec/ReplTxnTask.java
 ##########
 @@ -85,7 +85,7 @@ public int execute(DriverContext driverContext) {
     }
 
     try {
-      HiveTxnManager txnManager = driverContext.getCtx().getHiveTxnManager();
+      HiveTxnManager txnManager = driverContext.getReplTxnManager(conf);
 
 Review comment:
   Noticed in several places, SessionState.get().getTxnMgr() is used to get 
txnmgr on which performed some operations. For example, 
addWriteNotificationLog, Hive.getTable etc.
   I think, those operations would be pointing to source metastore. Might go 
wrong.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 248819)
    Time Spent: 40m  (was: 0.5h)

> Repl load command config is not passed to the txn manager
> ---------------------------------------------------------
>
>                 Key: HIVE-21766
>                 URL: https://issues.apache.org/jira/browse/HIVE-21766
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: mahesh kumar behera
>            Assignee: mahesh kumar behera
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-21766.01.patch, HIVE-21766.02.patch, 
> HIVE-21766.03.patch
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> *Cause:*
> REPL LOAD replicates Txn State (writeIds of tables) to the target HMS 
> (backend RDBMS). But, in this case, it is still connected to source HMS due 
> to configs passed in WITH clause were not stored in HiveTxnManager. 
> We pass the config object to the ReplTxnTask objects but HiveTxnManager was 
> created by Driver using session config object.
> *Fix:*
> We need to pass it to HiveTxnManager too by creating a txn manager for repl 
> txn operations with the config passed by user.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to