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

NPE in CqlRecordWriter when sinking null values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Not A Problem
    • 1.2.8
    • None
    • None
    • c*-1.2.8 server, c*-1.2.8 client, cascading-cassandra, cascading, cascalog

    • Low

    Description

      null values cause a Thrift NPE when sinking to CqlRecordWriter (replacing the null values with an appropriate non-null sentinel works) :

      at java.lang.Thread.run(Thread.java:680) ~[na:1.6.0_51]
      java.io.IOException: java.lang.NullPointerException
      at org.apache.cassandra.hadoop.cql3.CqlRecordWriter$RangeClient.run(CqlRecordWriter.java:245) ~[cassandra-all-1.2.8.jar:1.2.8]
      java.lang.NullPointerException: null
      at org.apache.thrift.protocol.TBinaryProtocol.writeBinary(TBinaryProtocol.java:194) ~[libthrift-0.7.0.jar:0.7.0]
      at org.apache.cassandra.thrift.Cassandra$execute_prepared_cql3_query_args.write(Cassandra.java:41253) ~[cassandra-thrift-1.2.8.jar:1.2.8]
      at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:63) ~[libthrift-0.7.0.jar:0.7.0]
      at org.apache.cassandra.thrift.Cassandra$Client.send_execute_prepared_cql3_query(Cassandra.java:1683) ~[cassandra-thrift-1.2.8.jar:1.2.8]
      at org.apache.cassandra.thrift.Cassandra$Client.execute_prepared_cql3_query(Cassandra.java:1673) ~[cassandra-thrift-1.2.8.jar:1.2.8]
      at org.apache.cassandra.hadoop.cql3.CqlRecordWriter$RangeClient.run(CqlRecordWriter.java:229) ~[cassandra-all-1.2.8.jar:1.2.8]

      Attachments

        Activity

          People

            Unassigned Unassigned
            mccraigmccraig craig mcmillan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: