ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-20906) Sometimes: Command [ambari-server restart] failed after upgrade Smartsense (Upgrade from 2.4.1.0 to 2.5.0.1)
Date Tue, 02 May 2017 09:28:04 GMT

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

Hudson commented on AMBARI-20906:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #1488 (See [https://builds.apache.org/job/Ambari-branch-2.5/1488/])
AMBARI-20906 : made view directory watcher service optional by (nitiraj.rathore: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5b347cc8ce410025a9626efe89661278546f822b])
* (edit) ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java
* (edit) ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java


> Sometimes: Command [ambari-server restart] failed after upgrade Smartsense (Upgrade from
2.4.1.0 to 2.5.0.1)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-20906
>                 URL: https://issues.apache.org/jira/browse/AMBARI-20906
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.5.0
>            Reporter: Nitiraj Singh Rathore
>            Assignee: Nitiraj Singh Rathore
>             Fix For: 2.5.1
>
>         Attachments: AMBARI-20906_branch-2.5.patch
>
>
> 30 Mar 2017 04:05:25,717 ERROR [pool-5-thread-1] AmbariJpaLocalTxnInterceptor:180 - [DETAILED
ERROR] Rollback reason: 
> Local Exception Stack: 
> Exception [EclipseLink-7251] (Eclipse Persistence Services - 2.6.2.v20151217-774c696):
org.eclipse.persistence.exceptions.ValidationException
> Exception Description: The attribute [viewInstance] of class [org.apache.ambari.server.orm.entities.ViewInstancePropertyEntity]
is mapped to a primary key column in the database. Updates are not allowed.
> 	at org.eclipse.persistence.exceptions.ValidationException.primaryKeyUpdateDisallowed(ValidationException.java:2551)
> 	at org.eclipse.persistence.mappings.OneToOneMapping.writeFromObjectIntoRowWithChangeRecord(OneToOneMapping.java:2035)
> 	at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildRowForUpdateWithChangeSet(ObjectBuilder.java:1769)
> 	at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.updateObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:1030)
> 	at org.eclipse.persistence.queries.UpdateObjectQuery.executeCommitWithChangeSet(UpdateObjectQuery.java:84)
> 	at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:301)
> 	at org.eclipse.persistence.queries.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:58)
> 	at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:904)
> 	at org.eclipse.persistence.queries.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:803)
> 	at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:108)
> 	at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:85)
> 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2896)
> 	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1857)
> 	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1839)
> 	at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1790)
> 	at org.eclipse.persistence.internal.sessions.CommitManager.commitChangedObjectsForClassWithChangeSet(CommitManager.java:273)
> 	at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObjectsForClassWithChangeSet(CommitManager.java:193)
> 	at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:139)
> 	at org.eclipse.persistence.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:4263)
> 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1441)
> 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1531)
> 	at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:278)
> 	at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:1169)
> 	at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:134)
> 	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:153)
> 	at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
> 	at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
> 	at org.apache.ambari.server.view.ViewRegistry$$EnhancerByGuice$$7c0d3646.mergeViewInstance(<generated>)
> 	at org.apache.ambari.server.view.ViewRegistry.installViewInstance(ViewRegistry.java:582)
> 	at org.apache.ambari.server.view.ViewRegistry.installAutoInstance(ViewRegistry.java:1008)
> 	at org.apache.ambari.server.view.ViewRegistry.addAutoInstanceDefinition(ViewRegistry.java:1979)
> 	at org.apache.ambari.server.view.ViewRegistry.readViewArchive(ViewRegistry.java:1852)
> 	at org.apache.ambari.server.view.ViewRegistry.readViewArchive(ViewRegistry.java:1656)
> 	at org.apache.ambari.server.view.ViewDirectoryWatcher$2.run(ViewDirectoryWatcher.java:129)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:745)
> 30 Mar 2017 04:05:25,718 ERROR [pool-5-thread-1] ViewRegistry:1982 - Can't auto create
instance of view SMARTSENSE for cluster cl1.  Caught exception :Exception [EclipseLink-7251]
(Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.ValidationException



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message