pkumarsinha commented on a change in pull request #951: HIVE-22997 : Copy
external table to target during Repl Dump operation
URL: https://github.com/apache/hive/pull/951#discussion_r394308202
##########
File path:
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestScheduledReplicationScenarios.java
##########
@@ -151,6 +151,70 @@ public void testAcidTablesReplLoadBootstrapIncr() throws
Throwable {
.run("drop table t1");
+ } finally {
+ primary.run("drop scheduled query s1");
+ replica.run("drop scheduled query s2");
+ }
+ }
+
+ @Test
+ public void testExternalTablesReplLoadBootstrapIncr() throws Throwable {
+ // Bootstrap
+ primary.run("use " + primaryDbName)
+ .run("create external table t1 (id int)")
+ .run("insert into t1 values(1)")
+ .run("insert into t1 values(2)");
+ try (ScheduledQueryExecutionService schqS =
+
ScheduledQueryExecutionService.startScheduledQueryExecutorService(primary.hiveConf))
{
+ int next = 0;
+ ReplDumpWork.injectNextDumpDirForTest(String.valueOf(next));
+ primary.run("create scheduled query s1 every 10 minutes as repl dump " +
primaryDbName);
+ primary.run("alter scheduled query s1 execute");
+ Thread.sleep(20000);
Review comment:
Ok
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]