This is an automated email from the ASF dual-hosted git repository.

amagyar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 464ce88  AMBARI-23480. Error encountered while disabling Kerberos on 
HDF 3.2 using Ambari 2.7.0.0
464ce88 is described below

commit 464ce88e85f4374e3f369d179b1a5505b3e48327
Author: Attila Magyar <amag...@hortonworks.com>
AuthorDate: Thu Apr 5 18:16:21 2018 +0200

    AMBARI-23480. Error encountered while disabling Kerberos on HDF 3.2 using 
Ambari 2.7.0.0
---
 .../server/serveraction/kerberos/DestroyPrincipalsServerAction.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/DestroyPrincipalsServerAction.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/DestroyPrincipalsServerAction.java
index 7c28494..e02ca5a 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/DestroyPrincipalsServerAction.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/DestroyPrincipalsServerAction.java
@@ -139,6 +139,7 @@ public class DestroyPrincipalsServerAction extends 
KerberosServerAction {
           if (principalEntity != null) {
             String cachedKeytabPath = principalEntity.getCachedKeytabPath();
             KerberosKeytabEntity kke = 
kerberosKeytabDAO.find(resolvedPrincipal.getResolvedKerberosKeytab().getFile());
+            
kerberosKeytabPrincipalDAO.remove(kerberosKeytabPrincipalDAO.findByPrincipal(principalEntity.getPrincipalName()));
             kerberosKeytabDAO.remove(kke);
             kerberosPrincipalDAO.remove(principalEntity);
 

-- 
To stop receiving notification emails like this one, please contact
amag...@apache.org.

Reply via email to