mohammadjkhan commented on a change in pull request #6972: Support LDAP 
authentication/authorization
URL: https://github.com/apache/incubator-druid/pull/6972#discussion_r332077728
 
 

 ##########
 File path: 
extensions-core/druid-basic-security/src/main/java/org/apache/druid/security/basic/CommonCacheNotifier.java
 ##########
 @@ -106,23 +126,26 @@ public void start()
               Pair<String, byte[]> update = updateQueue.take();
               String authorizer = update.lhs;
               byte[] serializedMap = update.rhs;
-              BasicAuthDBConfig authorizerConfig = 
itemConfigMap.get(update.lhs);
-              if (!authorizerConfig.isEnableCacheNotifications()) {
+
+              BasicAuthDBConfig dbConfig = itemConfigMap == null ? itemConfig 
: itemConfigMap.get(update.lhs);
+              if (!dbConfig.isEnableCacheNotifications()) {
                 continue;
               }
 
               LOG.debug(callerName + ":Sending cache update notifications");
               // Best effort, if a notification fails, the remote node will 
eventually poll to update its state
               // We wait for responses however, to avoid flooding remote nodes 
with notifications.
-              List<ListenableFuture<StatusResponseHolder>> futures = 
sendUpdate(
-                  authorizer,
-                  serializedMap
-              );
+              List<ListenableFuture<StatusResponseHolder>> futures;
+              if (authorizer != null) {
 
 Review comment:
   Done, updated

----------------------------------------------------------------
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]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to