You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Na Li (JIRA)" <ji...@apache.org> on 2018/05/08 22:43:00 UTC

[jira] [Created] (SENTRY-2221) Speedup DDL operation when it is blocked by fetching HMS Notification

Na Li created SENTRY-2221:
-----------------------------

             Summary: Speedup DDL operation when it is blocked by fetching HMS Notification
                 Key: SENTRY-2221
                 URL: https://issues.apache.org/jira/browse/SENTRY-2221
             Project: Sentry
          Issue Type: Improvement
            Reporter: Na Li


Right now, after HMS completes a DDL operation, it calls Sentry SentrySyncHMSNotificationsPostEventListener to make sure that sentry fetches the notification before HMS returns. 

The HMS threads blocks until HMSFollower threads fetches the notification and wakes up the waiter, which happens once every half a second (by default). 

When there is a single Sentry server, the delay could be around 0.5 second.

With Sentry HA, the delay could be up to one second because Sentry leader takes 0.5 second to get the notification and save into sentry DB, and another Sentry server takes 0.5 second to reads from sentry DB.

To speedup the HMS DDL and reduce the delay, Sentry can try to wake up the waiter in HMS thread, and then wait on it in SentryPolicyStoreProcessor.sentry_sync_notifications. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)