You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2020/01/18 04:17:00 UTC

[jira] [Updated] (CASSANDRA-15514) Properly clean up DefaultSessionProvider#sessionCache when closing QueryReplayer

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

Yifan Cai updated CASSANDRA-15514:
----------------------------------
     Bug Category: Parent values: Degradation(12984)Level 1 values: Resource Management(12995)
       Complexity: Low Hanging Fruit
    Discovered By: Unit Test
    Fix Version/s: 4.0-beta
         Severity: Low
           Status: Open  (was: Triage Needed)

> Properly clean up DefaultSessionProvider#sessionCache when closing QueryReplayer
> --------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-15514
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15514
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/fql
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Normal
>             Fix For: 4.0-beta
>
>
> The {{DefaultSessionProvider}} used by the {{QueryReplayer}} caches the sessions by hostname. When closing, the sessions and their associated clusters are closed but they never get removed from the cache.
> When connecting to the same host, the closed session is returned, which is unexpected. 
> Besides the unexpected behavior, the session references remaining in the cache leaks resources. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org