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

json2sstable breaks on RangeTombstone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.13, 2.0.3
    • None
    • None
    • 1.2.10

    • 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

            lyubent Lyuben Todorov
            exabytes18 Matt Jurik
            Lyuben Todorov
            Aleksey Yeschenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: