[
https://issues.apache.org/jira/browse/CASSANDRA-5668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13689015#comment-13689015
]
Sylvain Lebresne commented on CASSANDRA-5668:
---------------------------------------------
For what it's worth, I think that for the 2nd problem, another option might be
to make Tracing.initializeMessage behave slightly differently depending on the
message type. So if the state doesn't exist but the message type is a
REQUEST_RESPONSE, we could create the state and set it in the threadLocal, but
not save it in the global state map.
It's a bit of a hack though, but it slightly bother me to leave this to
expiration either so ....
> NPE in net.OutputTcpConnection when tracing is enabled
> ------------------------------------------------------
>
> Key: CASSANDRA-5668
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5668
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.2.6, 2.0 beta 1
> Reporter: Ryan McGuire
> Attachments: 5668-assert-2.txt, 5668-assert.txt, 5668-logs.tar.gz,
> 5668_npe_ddl.cql, 5668_npe_insert.cql, system.log
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira