[ https://issues.apache.org/jira/browse/HIVE-23474?focusedWorklogId=460100&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-460100 ]
ASF GitHub Bot logged work on HIVE-23474: ----------------------------------------- Author: ASF GitHub Bot Created on: 17/Jul/20 06:23 Start Date: 17/Jul/20 06:23 Worklog Time Spent: 10m Work Description: pkumarsinha commented on a change in pull request #1247: URL: https://github.com/apache/hive/pull/1247#discussion_r456242103 ########## File path: itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosAcrossInstances.java ########## @@ -944,96 +944,6 @@ public void testIncrementalDumpMultiIteration() throws Throwable { Assert.assertEquals(IncrementalLoadTasksBuilder.getNumIteration(), numEvents); } - @Test - public void testIfCkptAndSourceOfReplPropsIgnoredByReplDump() throws Throwable { Review comment: This was testing that source of replication properties are ignored by replication while the custom ones are not. Can we retain that part? ########## File path: ql/src/java/org/apache/hadoop/hive/ql/parse/ReplicationSemanticAnalyzer.java ########## @@ -219,6 +219,11 @@ private void initReplDump(ASTNode ast) throws HiveException { " as it is not a source of replication (repl.source.for)"); throw new SemanticException(ErrorMsg.REPL_DATABASE_IS_NOT_SOURCE_OF_REPLICATION.getMsg()); } + if (ReplUtils.isTargetOfReplication(database)) { + LOG.error("Cannot dump database " + dbNameOrPattern + + " as it is a target of replication (repl.target.for)"); Review comment: nit: Can accommodate in one line ---------------------------------------------------------------- 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: 460100) Time Spent: 20m (was: 10m) > Deny Repl Dump if the database is a target of replication > --------------------------------------------------------- > > Key: HIVE-23474 > URL: https://issues.apache.org/jira/browse/HIVE-23474 > Project: Hive > Issue Type: Task > Reporter: Aasha Medhi > Assignee: Aasha Medhi > Priority: Major > Labels: pull-request-available > Attachments: HIVE-23474.01.patch, HIVE-23474.02.patch > > Time Spent: 20m > Remaining Estimate: 0h > -- This message was sent by Atlassian Jira (v8.3.4#803005)