Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-15514

Properly clean up DefaultSessionProvider#sessionCache when closing QueryReplayer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 4.0-alpha3, 4.0
    • Tool/fql
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              yifanc Yifan Cai
              yifanc Yifan Cai
              Yifan Cai
              Marcus Eriksson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: