You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "John Speidel (JIRA)" <ji...@apache.org> on 2014/05/10 23:59:05 UTC

[jira] [Commented] (AMBARI-5723) IllegalStateException when provisioning cluster via blueprint during password validation

    [ https://issues.apache.org/jira/browse/AMBARI-5723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13993945#comment-13993945 ] 

John Speidel commented on AMBARI-5723:
--------------------------------------

This is a result of remove being called multiple times for the same iterator entry if there were multiple required passwords in the same host group for the same configuration type.

> IllegalStateException when provisioning cluster via blueprint during password validation
> ----------------------------------------------------------------------------------------
>
>                 Key: AMBARI-5723
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5723
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: John Speidel
>            Assignee: John Speidel
>              Labels: blueprints
>             Fix For: 1.6.0
>
>
> After submitting cluster create with a default password as well as some passwords specified in BP, a 500 response is returned to the user as a result of an IllegalStateException during password validation.
> 13:55:48,112 ERROR qtp752317744-20 BaseManagementHandler:62 - Caught a runtime exception while attempting to create a resource
> java.lang.IllegalStateException
> at java.util.HashMap$HashIterator.remove(HashMap.java:942)
> at org.apache.ambari.server.controller.internal.ClusterResourceProvider.validatePasswordProperties(ClusterResourceProvider.java:379)
> at org.apache.ambari.server.controller.internal.ClusterResourceProvider.processBlueprintCreate(ClusterResourceProvider.java:333)
> at org.apache.ambari.server.controller.internal.ClusterResourceProvider.createResources(ClusterResourceProvider.java:148)
> at org.apache.ambari.server.controller.internal.ClusterControllerImpl.createResources(ClusterControllerImpl.java:218)
> at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.create(PersistenceManagerImpl.java:75)
> at org.apache.ambari.server.api.handlers.CreateHandler.persist(CreateHandler.java:36)
> at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:72)
> at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:126)
> at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:80)
> at org.apache.ambari.server.api.services.ClusterService.createCluster(ClusterService.java:82)



--
This message was sent by Atlassian JIRA
(v6.2#6252)