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

sstabledump errors when dumping data from index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • Tool/sstable
    • None

    Description

      cqlsh> CREATE KEYSPACE ks1 WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
      cqlsh> CREATE TABLE ks1.tb1 ( id text, name text, primary key (id));
      cqlsh> CREATE INDEX IF NOT EXISTS ON ks1.tb1(name);
      cqlsh> INSERT INTO ks1.tb1 (id, name ) VALUES ( '1', 'Joe');
      cqlsh> exit
      ./bin/nodetool flush
      ./tools/bin/sstabledump data/data/ks1/tb1-1c3c5f10ee4711ecab82eda2f44200b3/.tb1_name_idx/nb-1-big-Data.db 
      [
        {
          "partition" : {
            "key" : [ "Joe" ],
            "position" : 0
          },
          "rows" : [
            {
              "type" : "row",
              "position" : 17,
              "clustering" : [ ] } ] } ]Exception in thread "main" java.lang.UnsupportedOperationException
              at org.apache.cassandra.db.marshal.PartitionerDefinedOrder.toJSONString(PartitionerDefinedOrder.java:87)
              at org.apache.cassandra.db.marshal.AbstractType.toJSONString(AbstractType.java:187)
              at org.apache.cassandra.tools.JsonTransformer.serializeClustering(JsonTransformer.java:372)
              at org.apache.cassandra.tools.JsonTransformer.serializeRow(JsonTransformer.java:269)
              at org.apache.cassandra.tools.JsonTransformer.serializePartition(JsonTransformer.java:235)
              at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
              at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
              at java.util.Iterator.forEachRemaining(Iterator.java:116)
              at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
              at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
              at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
              at org.apache.cassandra.tools.JsonTransformer.toJson(JsonTransformer.java:113)
              at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:214) 

      Attachments

        Issue Links

          Activity

            People

              maxwellguo Maxwell Guo
              smiklosovic Stefan Miklosovic
              Maxwell Guo
              Andres de la Peña, Branimir Lambov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 13h 10m
                  13h 10m