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

Alert Targets Cannot Be Updated Due To Transaction / Cache Timing Issues

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

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • ambari-server
    • None

    Description

      There is a JPA timing issue WRT to updating alert targets where lazy loaded lists outside of a transaction cause the data set on the AlertTargetEnity to be refreshed from the database.

      While maintaining the bi-directional relationship between AlertTargetEntity and AlertGroupEntity, and IndirectSet from JPA causes JPA to detect a stale entity from another transaction.

      STR:
      It's more likely to happen when there are active alerts.

      • Create a new alert target for just HDFS
      • Shut down HDFS
      • Try to edit the name of the alert target

      It will return a 200 return code, but the data will not have changed.

      Attachments

        Activity

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

          People

            jonathanhurley Jonathan Hurley
            jonathanhurley Jonathan Hurley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment