[
https://issues.apache.org/jira/browse/CASSANDRA-12461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15423525#comment-15423525
]
Anthony Cozzie commented on CASSANDRA-12461:
--------------------------------------------
OK, back ported the patch to 2.2 and removed the shutdown hook, replacing it
with a direct call in StorageService(). Since there are no lambdas in 2.2, I
reworked that part and the first note no longer applies. In addition, I tried
to do this via Github rather than attached patches. Hopefully I pulled that
off. Please let me know what you think, Alex!
* 2.2: https://github.com/acoz/cassandra/tree/12461
* 3.0: https://github.com/acoz/cassandra/tree/12461-3.0
* 3.10: https://github.com/acoz/cassandra/tree/12461-trunk
> Add hooks to StorageService shutdown
> ------------------------------------
>
> Key: CASSANDRA-12461
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12461
> Project: Cassandra
> Issue Type: Bug
> Reporter: Anthony Cozzie
> Assignee: Anthony Cozzie
> Attachments:
> 0001-CASSANDRA-12461-add-C-support-for-shutdown-runnables.patch
>
>
> The JVM will usually run shutdown hooks in parallel. This can lead to
> synchronization problems between Cassandra, services that depend on it, and
> services it depends on. This patch adds some simple support for shutdown
> hooks to StorageService.
> This should nearly solve CASSANDRA-12011
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)