[
https://issues.apache.org/jira/browse/SENTRY-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049584#comment-16049584
]
Brian Towles commented on SENTRY-1798:
--------------------------------------
HAContext as well when setting up the shutdown thread
{code:java}
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
LOGGER.info("ShutdownHook closing curator framework");
try {
serverHAContext.close();
} catch (Throwable t) {
LOGGER.error("Error stopping curator framework", t);
}
}
});
{code}
Not a long running thread . but couldn't hurt to have it named
> Provide names for HMSFollower and cleaner threads
> -------------------------------------------------
>
> Key: SENTRY-1798
> URL: https://issues.apache.org/jira/browse/SENTRY-1798
> Project: Sentry
> Issue Type: Sub-task
> Components: Sentry
> Affects Versions: sentry-ha-redesign
> Reporter: Alexander Kolbasov
> Assignee: Brian Towles
> Labels: bite-sized, newbie
> Fix For: sentry-ha-redesign
>
> Attachments: SENTRY-1798.001-sentry-ha-redesign.patch
>
>
> We have several important thread executors which use default names - we
> should use custom names instead.
> At least we should do it for HMSFollower, cleaner thread and main service
> thread.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)