You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Robert Stupp (JIRA)" <ji...@apache.org> on 2016/12/12 14:53:58 UTC

[jira] [Updated] (CASSANDRA-13033) Thread local pools never cleaned up

     [ https://issues.apache.org/jira/browse/CASSANDRA-13033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Stupp updated CASSANDRA-13033:
-------------------------------------
    Status: Patch Available  (was: Open)

||cassandra-3.0|[branch|https://github.com/apache/cassandra/compare/cassandra-3.0...snazy:13033-thread-local-cleanup-3.0]|[testall|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13033-thread-local-cleanup-3.0-testall/lastSuccessfulBuild/]|[dtest|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13033-thread-local-cleanup-3.0-dtest/lastSuccessfulBuild/]
||cassandra-3.11|[branch|https://github.com/apache/cassandra/compare/cassandra-3.11...snazy:13033-thread-local-cleanup-3.11]|[testall|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13033-thread-local-cleanup-3.11-testall/lastSuccessfulBuild/]|[dtest|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13033-thread-local-cleanup-3.11-dtest/lastSuccessfulBuild/]
||cassandra-3.X|[branch|https://github.com/apache/cassandra/compare/cassandra-3.X...snazy:13034-fast-thread-local-thread-3.X]|[testall|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13034-fast-thread-local-thread-3.X-testall/lastSuccessfulBuild/]|[dtest|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13034-fast-thread-local-thread-3.X-dtest/lastSuccessfulBuild/]
||trunk|[branch|https://github.com/apache/cassandra/compare/trunk...snazy:13033-thread-local-cleanup-trunk]|[testall|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13033-thread-local-cleanup-trunk-testall/lastSuccessfulBuild/]|[dtest|http://cassci.datastax.com/view/Dev/view/snazy/job/snazy-13033-thread-local-cleanup-trunk-dtest/lastSuccessfulBuild/]

Note: CASSANDRA-13034 makes this patch obsolete for 3.X & trunk.

> Thread local pools never cleaned up
> -----------------------------------
>
>                 Key: CASSANDRA-13033
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13033
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>             Fix For: 3.0.x
>
>
> Netty 4.x uses {{(Fast)ThreadLocal}} instances to provide a pool of (direct) buffers per thread ({{io.netty.buffer.PooledByteBufAllocator.PoolThreadLocalCache}}. However, these per-thread pools need to be cleaned up when a thread terminates ({{FastThreadLocal.removeAll()}}) - which is missing.
> Although the possibility that such per-thread pools ever _need_ to be cleaned up, since we rarely terminate threads, it still may actually happen and manifest in a late and hard to detect out-of-memory situation. One possibility to raise such a scenario is to regularly stop and restart the native protocol service.



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