ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [38/50] [abbrv] ambari git commit: AMBARI-18755. Deployment failing at creating principal
Date Thu, 17 Nov 2016 17:13:54 GMT
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/ae1a9819
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ae1a9819
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ae1a9819

Branch: refs/heads/branch-feature-AMBARI-18456
Commit: ae1a98198c28ac8a3210fe21c0ce480095f21469
Parents: 5db92d8
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:32 2016 -0800

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


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