cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McGuire (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5668) NPE in net.OutputTcpConnection when tracing is enabled
Date Wed, 19 Jun 2013 19:33:19 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-5668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13688353#comment-13688353
] 

Ryan McGuire commented on CASSANDRA-5668:
-----------------------------------------

This is what one the traces looks like that failed:

{code}
127.0.0.1	78	Parsing statement	Thrift:1
127.0.0.1	606	Peparing statement	Thrift:1
127.0.0.1	949	Determining replicas for mutation	Thrift:1
127.0.0.1	3577	Acquiring switchLock read lock	MutationStage:1
127.0.0.1	3622	Appending to commitlog	MutationStage:1
127.0.0.1	3754	Adding to test memtable	MutationStage:1
127.0.0.1	4936	Sending message to /127.0.0.2	WRITE-/127.0.0.2
127.0.0.2	37	Message received from /127.0.0.1	Thread-4
127.0.0.2	562	Acquiring switchLock read lock	MutationStage:1
127.0.0.2	583	Appending to commitlog	MutationStage:1
127.0.0.1	32	Message received from /127.0.0.2	Thread-7
127.0.0.2	634	Adding to test memtable	MutationStage:1
127.0.0.2	1033	Enqueuing response to /127.0.0.1	MutationStage:1
127.0.0.2	1217	Sending message to /127.0.0.1	WRITE-/127.0.0.1
127.0.0.1	132	Processing response from /127.0.0.2	RequestResponseStage:3
{code}

With a replication factor of 3 it should be writing to all three nodes (127.0.0.1, 127.0.0.2,
and 127.0.0.3) - 127.0.0.3 is conspicuously missing from that trace.
                
> 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-logs.tar.gz, 5668_npe_ddl.cql, 5668_npe_insert.cql
>
>
> 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

Mime
View raw message