pkumarsinha commented on a change in pull request #2101:
URL: https://github.com/apache/hive/pull/2101#discussion_r621751133
##########
File path:
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestReplicationScenariosExclusiveReplica.java
##########
@@ -74,6 +75,28 @@ public void tearDown() throws Throwable {
super.tearDown();
}
+ @Test
+ public void testReplOperationsNotCapturedInNotificationLog() throws
Throwable {
+ List<String> withClauseOptions =
getStagingLocationConfig(replica.repldDir, true);
+ withClauseOptions.add("'" + HiveConf.ConfVars.HIVE_IN_TEST_REPL.varname +
"'='" + false + "'");
+ //Perform empty bootstrap dump and load
+ primary.dump(primaryDbName, withClauseOptions);
+ replica.load(replicatedDbName, primaryDbName, withClauseOptions);
+ //Perform empty incremental dump and load so that all db level properties
are altered.
+ primary.dump(primaryDbName, withClauseOptions);
+ replica.load(replicatedDbName, primaryDbName, withClauseOptions);
+
+ long lastEventId = primary.getCurrentNotificationEventId().getEventId();
+ primary.dump(primaryDbName, withClauseOptions);
+ long currentEventId = primary.getCurrentNotificationEventId().getEventId();
Review comment:
Probe that there is no event dir created?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]