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

Allow sstable2json to dump SecondaryIndex SSTables

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.6
    • Component/s: Legacy/Tools
    • Labels:
      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-v1.txt
          3 kB
          Michał Michalski
        2. sstable2json-for-2i-v2.txt
          3 kB
          Michał Michalski

          Activity

            People

            • Assignee:
              michalm Michał Michalski
              Reporter:
              michalm Michał Michalski
              Authors:
              Michał Michalski
              Reviewers:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: