Yifan Cai created CASSANDRA-15514:
-------------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to