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

Snapshot true size is miscalculated

    XMLWordPrintableJSON

Details

    Description

      As far as I understand, the snapshot "size on disk" is the total size of the snapshot, while the "true size" is the (size_on_disk - size_of_live_sstables).

      I created a snapshot on a 3.11 node without traffic and I expected the "true size" to be 0KB since the original sstables were still present, but this didn't seem to be the case:

      $ nodetool listsnapshots
      Snapshot Details:
      Snapshot name Keyspace name Column family name True size Size on disk
      test          ks1           tbl1               4.86 KiB  5.69 KiB
      
      Total TrueDiskSpaceUsed: 4.86 KiB
      

      Attachments

        Issue Links

          Activity

            People

              paulo Paulo Motta
              paulo Paulo Motta
              Paulo Motta
              Benjamin Lerer, Brandon Williams
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m