[
https://issues.apache.org/jira/browse/HADOOP-18870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760820#comment-17760820
]
ASF GitHub Bot commented on HADOOP-18870:
-----------------------------------------
ferdelyi commented on code in PR #6007:
URL: https://github.com/apache/hadoop/pull/6007#discussion_r1311356577
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/curator/TestZKCuratorManager.java:
##########
@@ -205,4 +210,35 @@ private void validateJaasConfiguration(String
clientConfig, String principal, St
assertEquals("Validate that expected keytab is set in Jaas config", keytab,
entries[0].getOptions().get("keyTab"));
}
+
+ @Test
+ public void testNewZooKeeperOverride() throws Exception{
Review Comment:
Thank you for the valuable feedback! Amended my commit accordingly.
> CURATOR-599 change broke functionality introduced in HADOOP-18139 and
> HADOOP-18709
> ----------------------------------------------------------------------------------
>
> Key: HADOOP-18870
> URL: https://issues.apache.org/jira/browse/HADOOP-18870
> Project: Hadoop Common
> Issue Type: Bug
> Components: common
> Affects Versions: 3.4.0, 3.3.5
> Reporter: Ferenc Erdelyi
> Assignee: Ferenc Erdelyi
> Priority: Major
> Labels: pull-request-available
>
> [Curator PR#391
> |https://github.com/apache/curator/pull/391/files#diff-687a4ed1252bfb4f56b3aeeb28bee4413b7df9bec4b969b72215587158ac875dR59]
> introduced a default method in the ZooKeeperFactory interface, hence the
> override of the 4-parameter NewZookeeper method in the HadoopZookeeperFactory
> class is not taking effect due to this.
> Proposing routing the 4-parameter method to a 5-parameter method, which
> instantiates the ZKConfiguration as the 5th parameter. This is a non-breaking
> change, as the ZKConfiguration is currently instantiated within the method.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]