[ https://issues.apache.org/jira/browse/HIVE-21403?focusedWorklogId=209511&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-209511 ]
ASF GitHub Bot logged work on HIVE-21403: ----------------------------------------- Author: ASF GitHub Bot Created on: 07/Mar/19 11:27 Start Date: 07/Mar/19 11:27 Worklog Time Spent: 10m Work Description: maheshk114 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_r263339205 ########## 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: if dump is with out external then for load no need of external ---------------------------------------------------------------- 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: 209511) Time Spent: 20m (was: 10m) > 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 > > Time Spent: 20m > 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)