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

NPE in net.OutputTcpConnection when tracing is enabled

    XMLWordPrintableJSON

Details

    • Normal

    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_insert.cql
          1 kB
          Ryan McGuire
        2. 5668_npe_ddl.cql
          0.1 kB
          Ryan McGuire
        3. 5668-logs.tar.gz
          8 kB
          Ryan McGuire
        4. 5668-assert.txt
          0.9 kB
          Jonathan Ellis
        5. 5668-assert-2.txt
          1 kB
          Jonathan Ellis
        6. system.log
          41 kB
          Ryan McGuire
        7. 5668.txt
          22 kB
          Jonathan Ellis
        8. 5668-followup.txt
          3 kB
          Jonathan Ellis

        Issue Links

          Activity

            People

              jbellis Jonathan Ellis
              enigmacurry Ryan McGuire
              Jonathan Ellis
              Sylvain Lebresne
              Ryan McGuire Ryan McGuire
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m