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:39:05 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 b8d658059 -> de2ebdff9


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/de2ebdff
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/de2ebdff
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/de2ebdff

Branch: refs/heads/branch-2.4
Commit: de2ebdff96561b17c6c5a812c4f5cb83cccae050
Parents: b8d6580
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:38:39 2016 -0800

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/de2ebdff/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 a21d330..624369b 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