ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject ambari git commit: AMBARI-18755. Deployment failing at creating principal
Date Thu, 17 Nov 2016 00:54:19 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 6a58b4b40 -> 7620635ee


AMBARI-18755. Deployment failing at creating principal


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7620635e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7620635e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7620635e

Branch: refs/heads/branch-2.5
Commit: 7620635ee45b1418253a96e20c2852db4eadca50
Parents: 6a58b4b
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Wed Nov 16 16:38:39 2016 -0800
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Wed Nov 16 16:54:12 2016 -0800

----------------------------------------------------------------------
 .../kerberos/MITKerberosOperationHandler.java      | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7620635e/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
b/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
index 32aa19d..2f756fb 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/MITKerberosOperationHandler.java
@@ -466,14 +466,17 @@ public class MITKerberosOperationHandler extends KerberosOperationHandler
{
         if (tries == retryCount) {
           throw exception;
         }
-      } finally {
-        if (result != null && result.isSuccessful()) {
-          break; // break on successful result
-        }
-        tries++;
-        String message = String.format("Retrying to execute kadmin:\n\tCommand: %s", command);
-        LOG.warn(message);
       }
+
+      if (result != null && result.isSuccessful()) {
+        break; // break on successful result
+      }
+      tries++;
+
+      try { Thread.sleep(3000); } catch (InterruptedException e) {}
+
+      String message = String.format("Retrying to execute kadmin after a wait of 3 seconds
:\n\tCommand: %s", command);
+      LOG.warn(message);
     }
 
 


Mime
View raw message