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

Allow sstable2json to dump SecondaryIndex SSTables

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.6
    • Legacy/Tools
    • None

    Description

      When investigating some 2I problems I had, I was pretty disappointed that sstable2json does not allow me to dump SecondaryIndex, saying that "The provided column family is not part of this cassandra database: keyspace = testks, column family = testcf.testcf_col_idx".

      I'm attaching patch that fixes given problem by changing a bit the way that sst2j "validates" the input file. My only concern is that this solution uses StorageService for "validation", so it's a bit heavier than it should, as it has to set everything up.

      Attachments

        1. sstable2json-for-2i-v2.txt
          3 kB
          Michał Michalski
        2. sstable2json-for-2i-v1.txt
          3 kB
          Michał Michalski

        Activity

          People

            michalm Michał Michalski
            michalm Michał Michalski
            Michał Michalski
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: