[
https://issues.apache.org/jira/browse/HIVE-26285?focusedWorklogId=779449&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-779449
]
ASF GitHub Bot logged work on HIVE-26285:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 08/Jun/22 12:17
Start Date: 08/Jun/22 12:17
Worklog Time Spent: 10m
Work Description: hmangla98 commented on code in PR #3346:
URL: https://github.com/apache/hive/pull/3346#discussion_r892285469
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadTask.java:
##########
@@ -825,4 +836,15 @@ 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());
+ assert itr.hasNext();
Review Comment:
Added semantic exception to fail replication in that case.
Issue Time Tracking
-------------------
Worklog Id: (was: 779449)
Time Spent: 50m (was: 40m)
> 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: 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)