[ 
https://issues.apache.org/jira/browse/SENTRY-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15328263#comment-15328263
 ] 

Colin Patrick McCabe commented on SENTRY-1316:
----------------------------------------------

* Remove old MetastorePluginWithHA.java and UpdateForwarderWithHA.java code
* add curator dependency to {{sentry-provider/sentry-provider-common/pom.xml}}
* add 
{{sentry-provider/sentry-provider-common/src/test/resources/log4j.properties}} 
so that sentry-provider-common tests can use log4j and see test output
* add {{LeaderStatus}}, a class which encapsulates the logic needed to 
determine active vs. standby.  It handles both the HA and non-HA case.
* add {{LeaderStatusAdaptor.java}}, the glue code for interacting with Curator. 
 I used this rather than {{LeaderLatch}} since the latter was more complex and 
required more code to use.
* {{SentryService.java}}: create a new {{LeaderStatus}} object when starting up.
* {{TestLeaderStatus.java}}: test the HA and non-HA cases.

> Implement Sentry leadership election
> ------------------------------------
>
>                 Key: SENTRY-1316
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1316
>             Project: Sentry
>          Issue Type: Sub-task
>            Reporter: Sravya Tirukkovalur
>            Assignee: Colin Patrick McCabe
>             Fix For: 1.8.0
>
>         Attachments: SENTRY-1316.001.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to