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

NPE in StreamingMessage type lookup

    XMLWordPrintableJSON

Details

    Description

      Found while investigating https://issues.apache.org/jira/browse/CASSANDRA-15965

      java.lang.NullPointerException: null
      	at org.apache.cassandra.streaming.messages.StreamMessage.deserialize(StreamMessage.java:51)
      	at org.apache.cassandra.streaming.async.StreamingInboundHandler$StreamDeserializingTask.run(StreamingInboundHandler.java:172)
      	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
      	at java.lang.Thread.run(Thread.java:748)
      

      There is a null in the zero.index of the type map. We can clean this up, handle invalid ids in a uniform manner, and add a test.

      Attachments

        Issue Links

          Activity

            People

              aholmber Adam Holmberg
              aholmber Adam Holmberg
              Adam Holmberg
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: