You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/05/08 00:26:52 UTC
[GitHub] [pulsar] sijie commented on a change in pull request #10357: [Issue 10242] add authentication data for remote cluster
sijie commented on a change in pull request #10357:
URL: https://github.com/apache/pulsar/pull/10357#discussion_r628634587
##########
File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
##########
@@ -1058,7 +1058,9 @@ public PulsarClient getReplicationClient(String cluster) {
.enableTcpNoDelay(false)
.connectionsPerBroker(pulsar.getConfiguration().getReplicationConnectionsPerBroker())
.statsInterval(0, TimeUnit.SECONDS);
- if (pulsar.getConfiguration().isAuthenticationEnabled()) {
+ if (data.getAuthenticationPlugin() != null && data.getAuthenticationParameters() != null) {
Review comment:
If you don't set authPlugin and authParameters, it will be the existing behavior, no?
--
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:
users@infra.apache.org