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

Remove Refresh Query Hint From Upgrade DAO

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.0
    • 2.5.1
    • ambari-server
    • None

    Description

      Repeated requests to the org.apache.ambari.server.orm.dao.UpgradeDAO methods during upgrades can cause large delays retrieving active upgrades. This is because the QueryHint.REFRESH is being used in almost every method. This causes a re-read on every UpgradeEntity -> UpgradeGroupEntity -> UpgradeItemEntity in the entire database for every query.

      These query hints should be removed.

      Attachments

        1. AMBARI-20847.patch
          4 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: