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

Warn when evicting prepared statements from cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.1
    • None

    Description

      The prepared statement cache is an LRU, with a max size of maxMemory / 256. There is currently no warning when statements are evicted, which could be problematic if the user is unaware that this is happening.

      At the very least, we should provide a JMX metric and possibly a log message indicating this is happening. At some point it may also be worthwhile to make this tunable for users with large numbers of statements.

      Attachments

        1. cassandra-2.1.txt
          2 kB
          Robbie Strickland
        2. cassandra-2.0.txt
          11 kB
          Robbie Strickland
        3. cassandra-2.0-v2.txt
          11 kB
          Robbie Strickland
        4. cassandra-2.0-v3.txt
          11 kB
          Robbie Strickland
        5. cassandra-2.0-v4.txt
          11 kB
          Robbie Strickland
        6. cassandra-2.0-v5.txt
          11 kB
          Robbie Strickland
        7. cassandra-2.0-v6.txt
          9 kB
          Robbie Strickland

        Activity

          People

            rstrickland Robbie Strickland
            rstrickland Robbie Strickland
            Robbie Strickland
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: