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

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

                Author: ASF GitHub Bot
            Created on: 08/Jun/22 16:19
            Start Date: 08/Jun/22 16:19
    Worklog Time Spent: 10m 
      Work Description: deniskuzZ commented on code in PR #3346:
URL: https://github.com/apache/hive/pull/3346#discussion_r892589001


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadTask.java:
##########
@@ -825,4 +844,16 @@ private int executeIncrementalLoad(long loadStartTime) 
throws Exception {
     LOG.info("REPL_INCREMENTAL_LOAD stage duration : {} ms", currentTimestamp 
- loadStartTime);
     return 0;
   }
+
+  private Database getSourceDbMetadata() throws IOException, SemanticException 
{
+    Path dbMetadata = new Path(work.dumpDirectory, 
EximUtil.METADATA_PATH_NAME);
+    BootstrapEventsIterator itr = new 
BootstrapEventsIterator(dbMetadata.toString(), work.dbNameToLoadIn,
+            true, conf, work.getMetricCollector());
+    BootstrapEvent next = itr.next();

Review Comment:
   should we check for NULL?





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

    Worklog Id:     (was: 779565)
    Time Spent: 1h 20m  (was: 1h 10m)

> Overwrite database metadata on original source in optimised failover.
> ---------------------------------------------------------------------
>
>                 Key: HIVE-26285
>                 URL: https://issues.apache.org/jira/browse/HIVE-26285
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Haymant Mangla
>            Assignee: Haymant Mangla
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to