Cassandra
  1. Cassandra
  2. CASSANDRA-5668

NPE in net.OutputTcpConnection when tracing is enabled

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

      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

          Ryan McGuire created issue -
          Ryan McGuire made changes -
          Field Original Value New Value
          Affects Version/s 1.2.6 [ 12324449 ]
          Affects Version/s 2.0 [ 12324629 ]
          Ryan McGuire made changes -
          Link This issue is related to CASSANDRA-5658 [ CASSANDRA-5658 ]
          Ryan McGuire made changes -
          Attachment 5668_npe_insert.cql [ 12588664 ]
          Attachment 5668_npe_ddl.cql [ 12588665 ]
          Ryan McGuire made changes -
          Attachment 5668-logs.tar.gz [ 12588666 ]
          Ryan McGuire made changes -
          Description I get multiple NullPointerException when trying to trace INSERT statements.

          To reproduce:
          {code}
          $ ccm create -v git:trunk
          $ ccm populate -n 3
          $ ccm start
          $ ccm node1 cqlsh < npe_ddl.cql
          $ ccm node1 cqlsh < npe_insert.cql
          {code}

          And see many exceptions like this in the logs of node1:
          {code}
          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)
          {code}


          This is similar to CASSANDRA-5658
          I get multiple NullPointerException when trying to trace INSERT statements.

          To reproduce:
          {code}
          $ 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
          {code}

          And see many exceptions like this in the logs of node1:
          {code}
          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)
          {code}


          This is similar to CASSANDRA-5658 and is the reason that npe_ddl and npe_insert are separate files.
          Ryan McGuire made changes -
          Affects Version/s 2.0 beta 1 [ 12322954 ]
          Affects Version/s 2.0 [ 12324629 ]
          Ryan McGuire made changes -
          Reviewer enigmacurry
          Ryan McGuire made changes -
          Reviewer enigmacurry
          Ryan McGuire made changes -
          Tester enigmacurry
          Jonathan Ellis made changes -
          Attachment 5668-assert.txt [ 12588684 ]
          Jonathan Ellis made changes -
          Attachment 5668-assert-2.txt [ 12588704 ]
          Ryan McGuire made changes -
          Attachment system.log [ 12588710 ]
          Jonathan Ellis made changes -
          Attachment 5668.txt [ 12588856 ]
          Jonathan Ellis made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 2.0 beta 1 [ 12322954 ]
          Assignee Jonathan Ellis [ jbellis ]
          Reviewer slebresne
          Fix Version/s 1.2.6 [ 12324449 ]
          Jonathan Ellis made changes -
          Status Patch Available [ 10002 ] Testing [ 10012 ]
          Jonathan Ellis made changes -
          Attachment 5668-followup.txt [ 12589085 ]
          Ryan McGuire made changes -
          Status Testing [ 10012 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ryan McGuire made changes -
          Labels qa-resolved

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development