[
https://issues.apache.org/jira/browse/AMBARI-25590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Onischuk updated AMBARI-25590:
-------------------------------------
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.
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.
> Ambari Get Hosts API returning empty json
> -----------------------------------------
>
> Key: AMBARI-25590
> URL: https://issues.apache.org/jira/browse/AMBARI-25590
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Priority: Major
> Fix For: 2.7.6
>
> Attachments: AMBARI-25590.patch
>
>
> 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.
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)