xiaoyuyao commented on a change in pull request #3048:
URL: https://github.com/apache/hadoop/pull/3048#discussion_r639195826



##########
File path: 
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/crypto/key/kms/LoadBalancingKMSClientProvider.java
##########
@@ -233,6 +233,10 @@ private LoadBalancingKMSClientProvider(URI uri,
   }
 
   private int nextIdx() {
+    if (providers.length == 0) {

Review comment:
       Thanks @yiyuaner  for reporting the issue. Should we check 
providers.length in constructor  as there are many other places assumes 
providers.length is not 0. 




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

Reply via email to