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

nodetool can not create snapshot with snapshot name that have special character

    XMLWordPrintableJSON

    Details

    • Bug Category:
      Correctness - Unrecoverable Corruption / Loss
    • Severity:
      Normal
    • Complexity:
      Normal
    • Discovered By:
      User Report
    • Platform:
      All
    • Impacts:
      None
    • Test and Documentation Plan:
      Hide

      for this is just filter the special charter ,so we do normal test with snapshot and snapshot with special charter in snapshot name and got the result we need

      Show
      for this is just filter the special charter ,so we do normal test with snapshot and snapshot with special charter in snapshot name and got the result we need

      Description

      we make snapshot through "nodetool snapshot -t snapshotname " , when snapshotname contains special characters like "/", the make snapshot process successfully , but the result
      can be different ,when we check the data file directory or use "nodetool listsnapshots".
      here is some case :

      1. nodetool snapshot -t "p/s"
      the listsnapshot resturns snapshot p for all table but actually the snapshot name is "p/s";
      also the data directory is like the format : datapath/snapshots/p/s/snapshot-datafile-link


      2. nodetool snapshot -t "/"
      the listsnapshot resturns "there is not snapshot"; but the make snapshot process return successfully and the data directory is like the format : datapath/snapshots/snapshot-datafile-link

      the Attachements are the result under our environment.

      so for me , we suggest that the snapshot name should not contains special character. just throw exception and told the user not to use special character.

        Attachments

        1. snapshot-p-s.jpg
          610 kB
          maxwellguo
        2. snapshot-listsnapshot-.jpg
          480 kB
          maxwellguo
        3. listsnapshots-p-s.jpg
          211 kB
          maxwellguo
        4. image.png
          2.50 MB
          Chris Lohfink
        5. after-fix.jpg
          314 kB
          maxwellguo

          Issue Links

            Activity

              People

              • Assignee:
                maxwellguo maxwellguo
                Reporter:
                maxwellguo maxwellguo
                Authors:
                maxwellguo
                Reviewers:
                Chris Lohfink
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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