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

json2sstable breaks on RangeTombstone

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.13, 2.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      1.2.10

    • Severity:
      Low

      Description

      It seems that sstable2json writes out json which json2sstable has trouble reading.

      java.lang.NumberFormatException: An hex string representing bytes must have an even length
      	at org.apache.cassandra.utils.Hex.hexToBytes(Hex.java:52)
      	at org.apache.cassandra.utils.ByteBufferUtil.hexToBytes(ByteBufferUtil.java:503)
      	at org.apache.cassandra.tools.SSTableImport.stringAsType(SSTableImport.java:572)
      	at org.apache.cassandra.tools.SSTableImport.access$000(SSTableImport.java:66)
      	at org.apache.cassandra.tools.SSTableImport$JsonColumn.<init>(SSTableImport.java:158)
      	at org.apache.cassandra.tools.SSTableImport.addColumnsToCF(SSTableImport.java:229)
      	at org.apache.cassandra.tools.SSTableImport.addToStandardCF(SSTableImport.java:212)
      	at org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:361)
      	at org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:318)
      	at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:537)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      ERROR: An hex string representing bytes must have an even length
      12345:2:!
      

        Attachments

        1. 6316_cassandra-2.0.diff
          2 kB
          Lyuben Todorov
        2. 6316.diff
          2 kB
          Lyuben Todorov

          Activity

            People

            • Assignee:
              lyubent Lyuben Todorov
              Reporter:
              exabytes18 Matt Jurik
              Authors:
              Lyuben Todorov
              Reviewers:
              Aleksey Yeschenko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: