hmangla98 commented on a change in pull request #2092:
URL: https://github.com/apache/hive/pull/2092#discussion_r606925689
##########
File path:
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/WarehouseInstance.java
##########
@@ -458,10 +458,10 @@ private void verifyReplTargetProperty(Map<String, String>
props) {
assertTrue(props.containsKey(ReplConst.REPL_TARGET_TABLE_PROPERTY));
}
- public void verifyTargetOfReplProperty(String dbName) throws Exception {
+ public boolean isSetTargetOfReplProperty(String dbName) throws Exception {
Database db = getDatabase(dbName);
-
assertTrue(db.getParameters().containsKey(ReplUtils.TARGET_OF_REPLICATION));
-
assertTrue(Boolean.getBoolean(db.getParameters().get(ReplUtils.TARGET_OF_REPLICATION)));
+ return db.getParameters().containsKey(ReplUtils.TARGET_OF_REPLICATION)
+ &&
!db.getParameters().get(ReplUtils.TARGET_OF_REPLICATION).isEmpty();
Review comment:
This property is set if its value is non empty.
--
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]