[
https://issues.apache.org/jira/browse/HIVE-26285?focusedWorklogId=779436&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-779436
]
ASF GitHub Bot logged work on HIVE-26285:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 08/Jun/22 11:56
Start Date: 08/Jun/22 11:56
Worklog Time Spent: 10m
Work Description: pvary commented on code in PR #3346:
URL: https://github.com/apache/hive/pull/3346#discussion_r892267327
##########
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:
Are we ok with the fact, that the `assert` commands are not executed in
production env? Do we want checks there which would make the replication fail?
Issue Time Tracking
-------------------
Worklog Id: (was: 779436)
Time Spent: 0.5h (was: 20m)
> 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: 0.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)