[
https://issues.apache.org/jira/browse/SENTRY-1647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15957038#comment-15957038
]
Sergio Peña commented on SENTRY-1647:
-------------------------------------
[~akolb] I took a look at SENTRY-1601 patch. Can we use a singleton CounterWait
variable inside the HMSFollower class? It makes sense to keep this here due to
the relation of HMSFollower and SentryPolicyStoreProcessor. HMSFollower is
running in one thread by SentryService, so Thrift can access the singleton
without issues.
Perhaps something like this would work:
{noformat}
HMSFollower.getCounterWait().waitFor(request.getId());
{noformat}
If the above idea works, can I work on this JIRA if you're not working on this?
> Move thrift waiters gauge away from SentryStore
> -----------------------------------------------
>
> Key: SENTRY-1647
> URL: https://issues.apache.org/jira/browse/SENTRY-1647
> Project: Sentry
> Issue Type: Sub-task
> Components: Sentry
> Affects Versions: sentry-ha-redesign
> Reporter: Alexander Kolbasov
> Assignee: Alexander Kolbasov
> Priority: Minor
>
> During code review for SENTRY-1601 [~kkalyan] suggested that SentryStore is
> the wrong place for the gauge measuring number of thrift waiters. We should
> move it to a more appropriate place.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)