Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5319

Investigate how we can log all exceptions rather than getting log that asks to call getNextException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1
    • ambari-server
    • None

    Description

      At times when Ambari Server hits a db error we see the log as follows:

      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)
      

      The log states Call getNextException to see the cause.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mpapirkovskyy Papirkovskyy Myroslav
            mpapirkovskyy Papirkovskyy Myroslav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment