Host marked as down on TTransportException (thrift frame size exceeded) #124

Closed
rschildmeijer opened this Issue Oct 9, 2012 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

rschildmeijer commented Oct 9, 2012

Astyanax marks the entire (Cassandra) host as down when a TTransportException (Thrift exception) is thrown because max Thrift message size (thrift_max_message_length_in_mb, Cassandra knob) is exceeded.

The host is marked as down because Astyanax wraps TTransportException (Thrift exception) in a TransportException. (That exception implements IsDeadConnectionException).

A better approach would be to close that single tcp connection (the connection we received the thrift frame size error from)

Member

elandau commented Nov 15, 2012

This behavior was implemented in version 1.56.12 and up.

elandau closed this Nov 15, 2012

boliza commented Dec 2, 2014

I review the code ThriftSyncConnectionFactoryImpl.java it seems no config to set this

transport = new TFramedTransport(socket);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment