You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2018/01/02 15:57:00 UTC

[jira] [Commented] (AMBARI-22690) Registering existing hdp version failed with sql exception

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

Hudson commented on AMBARI-22690:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #559 (See [https://builds.apache.org/job/Ambari-branch-2.6/559/])
AMBARI-22690 Registering existing hdp version failed with sql exception (hapylestat: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4d3d57b64a6f703d05d92afbc27b69e3c1affad8])
* (edit) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/VersionDefinitionResourceProviderTest.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java


> Registering existing hdp version failed with sql exception
> ----------------------------------------------------------
>
>                 Key: AMBARI-22690
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22690
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.6.2
>            Reporter: Dmytro Grinenko
>            Assignee: Dmytro Grinenko
>            Priority: Critical
>             Fix For: 2.6.2
>
>         Attachments: AMBARI-22690.branch-2.6.patch
>
>
> While trying to register existing HDP version below sql exception were noticed. 
> STR:
> - Register HDP version 2.6.4 via manage versions screen of Ambari.
> - Try re-registering the same version again. Below exception is thrown.
> {code}
> ERROR [ambari-client-thread-3696] AmbariJpaLocalTxnInterceptor:180 - [DETAILED ERROR] Rollback reason:
> Local Exception Stack:
> Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "uq_repo_version_stack_id"
> Error Code: 0
> Call: INSERT INTO repo_version (repo_version_id, display_name, hidden, legacy, repositories, resolved, repo_type, version, version_url, version_xml, version_xsd, parent_id, stack_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
>         bind => [13 parameters bound]
>         at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:340)
>         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.processExceptionForCommError(DatabaseAccessor.java:1620)
>         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:900)
>         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:964)
>         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:633)
>         at org.eclipse.persistence.internal.databaseaccess.ParameterizedSQLBatchWritingMechanism.executeBatch(ParameterizedSQLBatchWritingMechanism.java:149)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)