ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myroslav Papirkovskyy (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMBARI-5319) Investigate how we can log all exceptions rather than getting log that asks to call getNextException
Date Fri, 04 Apr 2014 15:16:16 GMT

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

Myroslav Papirkovskyy resolved AMBARI-5319.
-------------------------------------------

    Resolution: Fixed

Pushed to trunk

> Investigate how we can log all exceptions rather than getting log that asks to call getNextException
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-5319
>                 URL: https://issues.apache.org/jira/browse/AMBARI-5319
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.5.0
>            Reporter: Myroslav Papirkovskyy
>            Assignee: Myroslav Papirkovskyy
>             Fix For: 1.5.1
>
>
> At times when Ambari Server hits a db error we see the log as follows:
> {noformat}
> aused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652):
org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: java.sql.BatchUpdateException: Batch entry 0 DELETE FROM hostcomponentstate
WHERE ((((component_name = 'JOBTRACKER') AND (host_name = 'hadoop2.tsh.thomson.com')) AND
(cluster_id = '1')) AND (service_name = 'MAPREDUCE')) was aborted.  Call getNextException
to see the cause.
> Error Code: 0
> Call: DELETE FROM hostcomponentstate WHERE ((((component_name = ?) AND (host_name = ?))
AND (cluster_id = ?)) AND (service_name = ?))
> 	bind => [4 parameters bound]
> Query: DeleteObjectQuery(org.apache.ambari.server.orm.entities.HostComponentDesiredStateEntity@8963a385)
> 	at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:333)
> 	at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.processExceptionForCommError(DatabaseAccessor.java:1501)
> {noformat}
> The log states Call getNextException to see the cause.



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

Mime
View raw message