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

Ambari Get Hosts API returning empty json

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 2.7.6
    • None
    • None

    Description

      Issue description:
      When API calls in Ambari fail due to DB exceptions. Ambari re-populates caches from the DB. This causes situation that threads have different instances of ClusterImpl, so we need an equals and hashCode implemented. So that look-up in Sets/Maps/comparison worked.

      How this was tested:
      We were able to find a stable way to reproduce the issue by feeding an API request that produces DB exception. Once we applied the patch this was no longer reproducible.

      Attachments

        1. AMBARI-25590.patch
          0.8 kB
          Andrew Onischuk

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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