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

Truncation snapshots unnecessarily created on node startup

    XMLWordPrintableJSON

Details

    Description

      When testing cassandra 4.0 on ccm I noticed that everytime I restart a node, truncation snapshots are created for the tables system.table_estimates and system.size_estimates:

      $ ccm create -n 1 test -s
      $ ccm node1 stop
      $ ccm node1 start
      $ ccm node1 stop
      $ ccm node1 start
      $ ccm node1 nodetool listsnapshots
      
      Snapshot Details:
      Snapshot name                           Keyspace name Column family name True size Size on disk
      truncated-1628599001857-table_estimates system        table_estimates    0 bytes   13 bytes
      truncated-1628599099560-table_estimates system        table_estimates    0 bytes   13 bytes
      truncated-1628599001736-size_estimates  system        size_estimates     0 bytes   13 bytes
      truncated-1628599057438-table_estimates system        table_estimates    6.16 KiB  6.19 KiB
      truncated-1628599099458-size_estimates  system        size_estimates     0 bytes   13 bytes
      truncated-1628599057340-size_estimates  system        size_estimates     5.73 KiB  5.76 KiB
      
      Total TrueDiskSpaceUsed: 0 bytes
      

      Not sure if this is expected behavior, but feels like a bug to me.

      Reproduced on 4.0, not sure if it reproduces on lower versions.

      Attachments

        Activity

          People

            brandon.williams Brandon Williams
            paulo Paulo Motta
            Brandon Williams
            Andres de la Peña, Benjamin Lerer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: