[
https://issues.apache.org/jira/browse/CASSANDRA-5427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625852#comment-13625852
]
J.B. Langston commented on CASSANDRA-5427:
------------------------------------------
This bug is specific to DSE 3.0 and is not present in Apache Cassandra. The
DSE bug number is DSP-1662. This error is known to occur when using Hector.
The error is benign and will be fixed in 3.0.1. Until then, you can silence the
error by adding the following line to your log4j-server.properties:
log4j.logger.org.apache.cassandra.thrift.CustomTThreadPoolServer=FATAL
Here is the developer's explanation:
The root cause is a bug in TPreviewableTransport causing the "previewing" of
the stream to be not fully transparent to the transports higher in the
transport stack. The negotiating transport needs to preview a first few bytes
of the content that the client sends to the server, in order to detect the
transport negotiation header. In case the client does not want to do any
protocol negotiation, like Hector, or some monitoring tools, the negotiating
layer should be invisible and pass data to/from the higher levels
transparently. Actually it almost does so. The only problem happens when while
previewing it reaches the end of the stream. If EOF is reached, it throws an
exception instead of just silently ignoring and letting the higher level to
decide. This is harmless, because the stream is closed by the client, and the
higher level transport would close the server-end of the stream anyway, just
without logging any exceptions.
> CustomTThreadPoolServer.java (line 210) Error occurred during processing of
> message.
> ------------------------------------------------------------------------------------
>
> Key: CASSANDRA-5427
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5427
> Project: Cassandra
> Issue Type: Bug
> Components: Config, Core
> Affects Versions: 1.1.9
> Environment: DSE 3.0, Hector Client 1.1-2, Cassandra 1.1.9, Linux 64
> bit, Heap 4 GB, Total RAM 8 GB, 2 Core (its a test environment).
> Reporter: Tushar Agrawal
>
> We are getting lot of following errors. We tried to change the
> thrift_framed_transport_size_in_mb and thrift_max_message_length_in_mb to 30
> and 32 respectively without any success.
> Our message size is about 20 KB and we even tried to reduce it to 10 KB. We
> have 27 fixed columns and no secondary indexes.
> ERROR [Thrift:110] 2013-04-04 19:11:40,882 CustomTThreadPoolServer.java (line
> 210) Error occurred during processing of message.
> java.lang.RuntimeException: Failed to open server transport.
> at
> com.datastax.bdp.transport.server.TNegotiatingServerTransport$Factory.getTransport(TNegotiatingServerTransport.java:285)
> at
> com.datastax.bdp.transport.server.TNegotiatingServerTransport$Factory.getTransport(TNegotiatingServerTransport.java:257)
> at
> org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:184)
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.thrift.transport.TTransportException:
> java.net.SocketException: Connection reset
> at
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
> at
> com.datastax.bdp.transport.server.TPreviewableTransport.read(TPreviewableTransport.java:88)
> at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
> at
> com.datastax.bdp.transport.server.TPreviewableTransport.preview(TPreviewableTransport.java:44)
> at
> com.datastax.bdp.transport.server.TNegotiatingServerTransport.open(TNegotiatingServerTransport.java:169)
> at
> com.datastax.bdp.transport.server.TNegotiatingServerTransport$Factory.getTransport(TNegotiatingServerTransport.java:278)
> ... 5 more
> Caused by: java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(Unknown Source)
> at java.io.BufferedInputStream.fill(Unknown Source)
> at java.io.BufferedInputStream.read1(Unknown Source)
> at java.io.BufferedInputStream.read(Unknown Source)
> at
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
> ... 10 more
--
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