[ https://issues.apache.org/jira/browse/SENTRY-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963811#comment-15963811 ]
Alexander Kolbasov commented on SENTRY-1649: -------------------------------------------- Looking at the way HMSFollower is implemented I don't see why do you need to actually destroy one instance and create a new one when you want to start/stop it. The service is managed using the executor so the only thing you need to do is to stop or start *executing* the service. > Initialize HMSFollower when sentry server actually starts > --------------------------------------------------------- > > Key: SENTRY-1649 > URL: https://issues.apache.org/jira/browse/SENTRY-1649 > Project: Sentry > Issue Type: Sub-task > Components: Hdfs Plugin > Affects Versions: sentry-ha-redesign > Reporter: Hao Hao > Assignee: Na Li > Priority: Critical > Fix For: sentry-ha-redesign > > Attachments: SENTRY-1649.001-sentry-ha-redesign.patch, > SENTRY-1649.002-sentry-ha-redesign.patch, > SENTRY-1649.003-sentry-ha-redesign.patch > > > Now HMSFollower has been initialized at the constructor of SentryService. It > would be better to initialize it when the service starts, e.g runServer(). -- This message was sent by Atlassian JIRA (v6.3.15#6346)