private boolean updateInfraKerberosDescriptor(KerberosDescriptor kerberosDescriptor) {
    boolean updated = false;

    Map<String, KerberosServiceDescriptor> services = kerberosDescriptor.getServices();
    KerberosServiceDescriptor ambariInfraService = services.get(AMBARI_INFRA_OLD_NAME);
    if (ambariInfraService != null) {
      ambariInfraService.setName(AMBARI_INFRA_NEW_NAME);
      services.remove(AMBARI_INFRA_OLD_NAME);
      services.put(AMBARI_INFRA_NEW_NAME, ambariInfraService);
      kerberosDescriptor.setServices(services);

      for (KerberosServiceDescriptor serviceDescriptor : kerberosDescriptor.getServices().values()) {
        updateKerberosIdentities(serviceDescriptor);
        if (MapUtils.isNotEmpty(serviceDescriptor.getComponents())) {
          for (KerberosComponentDescriptor componentDescriptor : serviceDescriptor.getComponents().values()) {
            updateKerberosIdentities(componentDescriptor);
          }
        }
      }

      updated = true;
    }

    return updated;
  }
Updates the Infra Kerberos descriptor stored in the user-supplied Kerberos Descriptor.
<p>
Any updates will be performed on the supplied Kerberos Descriptor.
<p>
The following changes may be made:
<ul>
<li>Rename the AMBARI_INFRA service to AMBARI_INFRA_SOLR</li>
</ul>

@param kerberosDescriptor the user-supplied Kerberos descriptor used to perform the in-place update
@return <code>true</code> if changes were made; otherwise <code>false</code>
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java