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
          Robert Strickland
        2. cassandra-2.0-v6.txt
          9 kB
          Robert Strickland
        3. cassandra-2.0-v5.txt
          11 kB
          Robert Strickland
        4. cassandra-2.0-v4.txt
          11 kB
          Robert Strickland
        5. cassandra-2.0-v3.txt
          11 kB
          Robert Strickland
        6. cassandra-2.0-v2.txt
          11 kB
          Robert Strickland
        7. cassandra-2.0.txt
          11 kB
          Robert Strickland

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: