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

DB purge fails removing topology requests

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

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.5
    • None
    • ambari-server

    Description

      If DB purge removes topology requests it will be failed with the next exception:

      2020-07-23 16:53:55,265 ERROR [main] CleanupServiceImpl:85 - Running the purge process for DAO: [org.apache.ambari.server.orm.dao.RequestDAO$$EnhancerByGuice$$f11e85aa@1e734eee] failed with: {}
      java.lang.IllegalArgumentException: Object: null is not a known Entity type.
      	at org.eclipse.persistence.internal.jpa.EntityManagerImpl.remove(EntityManagerImpl.java:571)
      	at org.apache.ambari.server.orm.dao.TopologyRequestDAO.remove(TopologyRequestDAO.java:78)
      	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:118)
      	at org.apache.ambari.server.orm.dao.TopologyRequestDAO.removeByPK(TopologyRequestDAO.java:83)
      	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:118)
      	at org.apache.ambari.server.orm.dao.RequestDAO.cleanup(RequestDAO.java:420)
      	at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:128)
      	at org.apache.ambari.server.cleanup.CleanupServiceImpl.cleanup(CleanupServiceImpl.java:82)
      	at org.apache.ambari.server.cleanup.CleanupDriver.main(CleanupDriver.java:90)
      

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            dvitiiuk Dmytro Vitiuk

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m

                Slack

                  Issue deployment