[ https://issues.apache.org/jira/browse/HIVE-21766?focusedWorklogId=249089&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-249089 ]
ASF GitHub Bot logged work on HIVE-21766: ----------------------------------------- Author: ASF GitHub Bot Created on: 28/May/19 03:10 Start Date: 28/May/19 03:10 Worklog Time Spent: 10m Work Description: maheshk114 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_r287916501 ########## 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: This is required for migration case also. I feel its better to keep it for all as cost of creating txn manager is not much and this way the same flow will be there for all kind. Easy to maintain. ---------------------------------------------------------------- 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: 249089) Time Spent: 1h 20m (was: 1h 10m) > 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: 1h 20m > 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)