You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmytro Sen (JIRA)" <ji...@apache.org> on 2015/12/29 14:06:49 UTC

[jira] [Updated] (AMBARI-14517) Database version check doesn't work in case of existing database from older Ambari version

     [ https://issues.apache.org/jira/browse/AMBARI-14517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmytro Sen updated AMBARI-14517:
--------------------------------
    Attachment: AMBARI-14517.patch

> Database version check doesn't work in case of existing database from older Ambari version
> ------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-14517
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14517
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.0
>            Reporter: Dmytro Sen
>            Assignee: Dmytro Sen
>            Priority: Critical
>             Fix For: 2.2.1
>
>         Attachments: AMBARI-14517.patch
>
>
> Issue created on base of Apache user group conversation.
> STR: 
> # install Ambari 2.0
> # deploy cluster
> # remove ambari rpm and install Ambari 2.2 (do NOT do upgrade)
> Expected result:
> - Database version check should throw exception about incompatible db version.
> Actual result:
> - Guice provision exception is thrown:
> {noformat}
> 26 Dec 2015 10:57:46,911 ERROR [main] AmbariServer:819 - Failed to run the Ambari Server
> com.google.inject.ProvisionException: Guice provision errors:
> 1) Error injecting method, Exception [EclipseLink-4011] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
> Exception Description: Error preallocating sequence numbers.  The sequence table information is not complete.
>   at org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:243)
>   at org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:125)
>   while locating org.apache.ambari.server.api.services.AmbariMetaInfo
>     for field at org.apache.ambari.server.controller.AmbariServer.ambariMetaInfo(AmbariServer.java:145)
>   at org.apache.ambari.server.controller.AmbariServer.class(AmbariServer.java:145)
>   while locating org.apache.ambari.server.controller.AmbariServer
> 1 error
>         at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
>         at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
>         at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:812)
> Caused by: Exception [EclipseLink-4011] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseException
> Exception Description: Error preallocating sequence numbers.  The sequence table information is not complete.
> {noformat}
> Analisys:
> According to exception it seems like Eclipselink initialize some data prior to database version check.
> We should ensure db version check is first DB interaction of Ambari.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)