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

Add --hex-format option to nodetool getsstables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 3.6
    • Tool/nodetool

    Description

      Sometimes it's useful to retrieve an sstable from the hex string representation of its key, for instance, when you get an exception like this and you want to find out which sstable owns the faulty key:

      java.lang.AssertionError: row DecoratedKey(2769066505137675224, 00040000002e00000800000153441a3ef000) received out of order wrt DecoratedKey(2774747040849866654, 00040000019b0000080000015348847eb200)
      

      In this case,

      nodetool getsstables ks cf 00040000002e00000800000153441a3ef000

      will only work if ks.cf has a blob primary key.

      It's straightforward to retrieve a DecoratedKey from the hexstr representation of the key, so we should add a --hex-key option to allow for that.

      nodetool getsstables ks cf --hex-key 00040000002e00000800000153441a3ef000

      Attachments

        Issue Links

          Activity

            People

              pauloricardomg Paulo Motta
              pauloricardomg Paulo Motta
              Paulo Motta
              Yuki Morishita
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: