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

NPE in net.OutputTcpConnection when tracing is enabled

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 1.2.6
    • Component/s: None
    • Labels:

      Description

      I get multiple NullPointerException when trying to trace INSERT statements.

      To reproduce:

      $ ccm create -v git:trunk
      $ ccm populate -n 3
      $ ccm start
      $ ccm node1 cqlsh < 5668_npe_ddl.cql
      $ ccm node1 cqlsh < 5668_npe_insert.cql
      

      And see many exceptions like this in the logs of node1:

      ERROR [WRITE-/127.0.0.3] 2013-06-19 14:54:35,885 OutboundTcpConnection.java (line 197) error writing to /127.0.0.3
      java.lang.NullPointerException
              at org.apache.cassandra.net.OutboundTcpConnection.writeConnected(OutboundTcpConnection.java:182)
              at org.apache.cassandra.net.OutboundTcpConnection.run(OutboundTcpConnection.java:144)
      

      This is similar to CASSANDRA-5658 and is the reason that npe_ddl and npe_insert are separate files.

        Attachments

        1. 5668_npe_ddl.cql
          0.1 kB
          Ryan McGuire
        2. 5668_npe_insert.cql
          1 kB
          Ryan McGuire
        3. 5668.txt
          22 kB
          Jonathan Ellis
        4. 5668-assert.txt
          0.9 kB
          Jonathan Ellis
        5. 5668-assert-2.txt
          1 kB
          Jonathan Ellis
        6. 5668-followup.txt
          3 kB
          Jonathan Ellis
        7. 5668-logs.tar.gz
          8 kB
          Ryan McGuire
        8. system.log
          41 kB
          Ryan McGuire

          Issue Links

            Activity

              People

              • Assignee:
                jbellis Jonathan Ellis
                Reporter:
                enigmacurry Ryan McGuire
                Reviewer:
                Sylvain Lebresne
                Tester:
                Ryan McGuire
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: