You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/12/09 22:09:12 UTC

[GitHub] [hadoop] goiri commented on a change in pull request #1745: HDFS-15040. RBF: Secured Router should not run when SecretManager is not running.

goiri commented on a change in pull request #1745: HDFS-15040. RBF: Secured Router should not run when SecretManager is not running.
URL: https://github.com/apache/hadoop/pull/1745#discussion_r355712355
 
 

 ##########
 File path: hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/security/RouterSecurityManager.java
 ##########
 @@ -58,7 +58,8 @@ public RouterSecurityManager(Configuration conf) throws IOException {
         AuthenticationMethod.KERBEROS;
     if (authMethodConfigured.equals(authMethodToInit)) {
       this.dtSecretManager = FederationUtil.newSecretManager(conf);
-      if (this.dtSecretManager == null) {
+      if (this.dtSecretManager == null
+          || this.dtSecretManager.isRunning() == false) {
 
 Review comment:
   I guess we should do !this.dtSecretManager.isRunning().
   This may also fit in a single line.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org