-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/47248/#review132726
-----------------------------------------------------------


Ship it!




Ship It!

- Dmytro Grinenko


On May 11, 2016, 6:30 p.m., Vitalyi Brodetskyi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/47248/
> -----------------------------------------------------------
> 
> (Updated May 11, 2016, 6:30 p.m.)
> 
> 
> Review request for Ambari, Andrew Onischuk, Dmytro Sen, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-16460
>     https://issues.apache.org/jira/browse/AMBARI-16460
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> {code}
> 2016-05-11 16:51:17,485  INFO - ******************************* Check 
> database started *******************************
> 2016-05-11 16:51:25,237  INFO - Checking for configs not mapped to any cluster
> 2016-05-11 16:51:25,268  INFO - Checking for configs selected more than once
> 2016-05-11 16:51:25,271  INFO - Checking for hosts without state
> 2016-05-11 16:51:25,278  INFO - Checking host component states count equals 
> host component desired states count
> 2016-05-11 16:51:25,285  INFO - Checking services and their configs
> 2016-05-11 16:51:28,813 ERROR - Unexpected error, database check failed
> com.google.inject.ProvisionException: Guice provision errors:
> 
> 1) Error injecting method, Exception [EclipseLink-4011] (Eclipse Persistence 
> Services - 2.6.2.v20151217-774c696): 
> 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:253)
>   at 
> org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:133)
>   while locating org.apache.ambari.server.api.services.AmbariMetaInfo
> 
> 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.checks.DatabaseConsistencyCheckHelper.checkServiceConfigs(DatabaseConsistencyCheckHelper.java:401)
>         at 
> org.apache.ambari.server.checks.DatabaseConsistencyChecker.main(DatabaseConsistencyChecker.java:115)
> Caused by: Exception [EclipseLink-4011] (Eclipse Persistence Services - 
> 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException
> Exception Description: Error preallocating sequence numbers.  The sequence 
> table information is not complete.
>         at 
> org.eclipse.persistence.exceptions.DatabaseException.errorPreallocatingSequenceNumbers(DatabaseException.java:150)
>         at 
> org.eclipse.persistence.sequencing.StandardSequence.getGeneratedVector(StandardSequence.java:73)
>         at 
> org.eclipse.persistence.sequencing.Sequence.getGeneratedVector(Sequence.java:257)
>         at 
> org.eclipse.persistence.internal.sequencing.SequencingManager$Preallocation_Transaction_NoAccessor_State.getNextValue(SequencingManager.java:485)
>         at 
> org.eclipse.persistence.internal.sequencing.SequencingManager.getNextValue(SequencingManager.java:1107)
>         at 
> org.eclipse.persistence.internal.sequencing.ClientSessionSequencing.getNextValue(ClientSessionSequencing.java:70)
>         at 
> org.eclipse.persistence.internal.descriptors.ObjectBuilder.assignSequenceNumber(ObjectBuilder.java:362)
>         at 
> org.eclipse.persistence.internal.descriptors.ObjectBuilder.assignSequenceNumber(ObjectBuilder.java:321)
>         at 
> org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.assignSequenceNumber(UnitOfWorkImpl.java:486)
>         at 
> org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNotRegisteredNewObjectForPersist(UnitOfWorkImpl.java:4288)
>         at 
> org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.registerNotRegisteredNewObjectForPersist(RepeatableWriteUnitOfWork.java:521)
>         at 
> org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4233)
>         at 
> org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:507)
>         at org.apache.ambari.server.orm.dao.StackDAO.create(StackDAO.java:106)
>         at 
> org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
>         at 
> org.apache.ambari.server.stack.StackManager.<init>(StackManager.java:136)
>         at 
> org.apache.ambari.server.stack.StackManager$$FastClassByGuice$$33e4ffe0.newInstance(<generated>)
>         at 
> com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
>         at 
> com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
>         at 
> com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
>         at 
> com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>         at 
> com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
>         at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
>         at 
> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
>         at 
> com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:632)
>         at com.sun.proxy.$Proxy27.create(Unknown Source)
>         at 
> org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:257)
>         at 
> org.apache.ambari.server.api.services.AmbariMetaInfo$$FastClassByGuice$$202844bc.invoke(<generated>)
>         at 
> com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
>         at 
> com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:56)
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 22413e0 
> 
> Diff: https://reviews.apache.org/r/47248/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>

Reply via email to