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

"Total TrueDiskSpaceUsed" computation does not include manifest and schema files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • Local/Snapshots
    • None
    • Correctness
    • Low
    • Normal
    • Adhoc Test
    • All
    • None

    Description

      This is the output of nodetool listsnapshots:

      Snapshot Details:
      Snapshot name                  Keyspace name Column family name True size Size on disk Creation time            Expiration time
      test                           ks            indexed_table      1.1 KiB   21.22 KiB    2022-04-26T19:13:20.102Z
      test                           ks            my_table           960 bytes 10.76 KiB    2022-04-26T19:13:20.102Z
      dropped-1650997415751-my_table ks            my_table           989 bytes 989 bytes    2022-04-26T18:23:35.751Z
      
      Total TrueDiskSpaceUsed: 0 KiB
      

      Total TrueDiskSpaceUsed does not match the sum of "true size on disk" of all snapshots.

      The reason for this is because Total TrueDiskSpaceUsed computation does not include the size of snapshot schema and manifest files.

      We should fix the Total TrueDiskSpaceUsed computation to include the the size of snapshot schema and manifest files, so it will look like this:

      Snapshot Details:
      Snapshot name                  Keyspace name Column family name True size Size on disk Creation time            Expiration time
      test                           ks            indexed_table      1.1 KiB   21.22 KiB    2022-04-26T19:13:20.102Z
      test                           ks            my_table           960 bytes 10.76 KiB    2022-04-26T19:13:20.102Z
      dropped-1650997415751-my_table ks            my_table           989 bytes 989 bytes    2022-04-26T18:23:35.751Z
      
      Total TrueDiskSpaceUsed: 3 KiB
      

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              paulo Paulo Motta
              Stefan Miklosovic
              Paulo Motta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: