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

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

                Author: ASF GitHub Bot
            Created on: 18/Mar/20 12:13
            Start Date: 18/Mar/20 12:13
    Worklog Time Spent: 10m 
      Work Description: aasha commented on pull request #951: HIVE-22997 : Copy 
external table to target during Repl Dump operation
URL: https://github.com/apache/hive/pull/951#discussion_r394291913
 
 

 ##########
 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:
   You might need to increase this time. Dump is not getting completed
 
----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 405381)
    Time Spent: 5h  (was: 4h 50m)

> Copy external table to target during Repl Dump operation
> --------------------------------------------------------
>
>                 Key: HIVE-22997
>                 URL: https://issues.apache.org/jira/browse/HIVE-22997
>             Project: Hive
>          Issue Type: Task
>            Reporter: PRAVIN KUMAR SINHA
>            Assignee: PRAVIN KUMAR SINHA
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-22997.03.patch, HIVE-22997.04.patch, 
> HIVE-22997.1.patch, HIVE-22997.10.patch, HIVE-22997.11.patch, 
> HIVE-22997.2.patch, HIVE-22997.4.patch, HIVE-22997.5.patch, 
> HIVE-22997.6.patch, HIVE-22997.7.patch, HIVE-22997.8.patch, HIVE-22997.9.patch
>
>          Time Spent: 5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to