You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/06/08 11:56:43 UTC
[GitHub] [hive] pvary commented on a diff in pull request #3346: HIVE-26285: Overwrite database metadata on original source in optimised failover.
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?
--
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.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org