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

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

    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

        1. AMBARI-18652.patch
          11 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: