hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-21403) Incorrect error code returned when retry bootstrap with different dump.
Date Fri, 08 Mar 2019 04:29:00 GMT

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

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

                Author: ASF GitHub Bot
            Created on: 08/Mar/19 04:28
            Start Date: 08/Mar/19 04:28
    Worklog Time Spent: 10m 
      Work Description: sankarh commented on pull request #559: HIVE-21403: Incorrect error
code returned when retry bootstrap with different dump.
URL: https://github.com/apache/hive/pull/559#discussion_r263662149
 
 

 ##########
 File path: itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosExternalTables.java
 ##########
 @@ -548,6 +549,37 @@ public void bootstrapExternalTablesDuringIncrementalPhase() throws Throwable
{
     );
   }
 
+  @Test
+  public void retryIncBootstrapExternalTablesFromDifferentDumpWithoutCleanTablesConfig()
throws Throwable {
+    List<String> dumpWithClause = Collections.singletonList(
+            "'" + HiveConf.ConfVars.REPL_INCLUDE_EXTERNAL_TABLES.varname + "'='false'"
+    );
+    List<String> loadWithClause = externalTableBasePathWithClause();
+
+    WarehouseInstance.Tuple tupleBootstrapWithoutExternal = primary
+            .run("use " + primaryDbName)
+            .run("create external table t1 (id int)")
+            .run("insert into table t1 values (1)")
+            .run("create table t2 as select * from t1")
+            .dump(primaryDbName, null, dumpWithClause);
+
+    replica.load(replicatedDbName, tupleBootstrapWithoutExternal.dumpLocation, loadWithClause);
 
 Review comment:
   Done
 
----------------------------------------------------------------
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:
users@infra.apache.org


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

    Worklog Id:     (was: 209958)
    Time Spent: 0.5h  (was: 20m)

> Incorrect error code returned when retry bootstrap with different dump.
> -----------------------------------------------------------------------
>
>                 Key: HIVE-21403
>                 URL: https://issues.apache.org/jira/browse/HIVE-21403
>             Project: Hive
>          Issue Type: Bug
>          Components: repl
>    Affects Versions: 4.0.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>            Priority: Minor
>              Labels: DR, pull-request-available, replication
>         Attachments: HIVE-21403.01.patch, HIVE-21403.02.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When retry incremental bootstrap on a table with different bootstrap dump throws 40000
as error code instead of 20017.
> {code}
> Error while processing statement: FAILED: Execution Error, return code 40000 from org.apache.hadoop.hive.ql.exec.repl.ReplLoadTask.
InvalidOperationException(message:Load path hdfs://ctr-e139-1542663976389-61669-01-000003.hwx.site:8020/apps/hive/repl/3d704b34-bf1a-40c9-b70c-57319e6462f6
not valid as target database is bootstrapped from some other path : hdfs://ctr-e139-1542663976389-61669-01-000003.hwx.site:8020/apps/hive/repl/c3e5ec9e-d951-48aa-b3f4-9aeaf5e010ea.)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message