cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paulo Motta <>
Subject Streaming never completes during nodetool rebuild
Date Mon, 09 Sep 2013 19:28:15 GMT

I've been trying to add a new data center to our Cassandra 1.1.10 cluster
for the last few days, but I've been unable to successfully rebuild the
nodes on the new DC due to streaming problems.

I have followed the procedure described in (section
"Adding a Data Center to a Cluster"), but some of the new nodes hang
forever during the "nodetool rebuild" operation. A "nodetool netstats |
grep -v 0%" on the node with a frozen rebuild ( will show:

Not sending any streams.
*Streaming from: /*
Pool Name                    Active   Pending      Completed
Commands                        n/a         0         686479
Responses                       n/a         0        7533195

But if I connect to the source node and issue a "nodetool
netstats", it will show:

Not sending any streams.
Not receiving any streams.
Pool Name                    Active   Pending      Completed
Commands                        n/a         0      879835258
Responses                       n/a         0      611936734

If I check the C* logs of this machine (, I will find:

2013 Sep  9 17:50:40 ip-10-177-14-80 ERROR [Streaming to /]
2013-09-09 17:50:40,689 (line 135) Exception
in thread Thread[Streaming to /,5,main]
2013 Sep  9 17:50:40 ip-10-177-14-80 java.lang.RuntimeException:
Read timed out*

So, it seems the streaming source ( waits for a response
from the streaming destination (, but the *
streaming_socket_timeout_in_ms* is reached (*60s* in our case) and the
source stops streaming. However, *the tricky part is that the destination
node never times out*, so it never retries re-streaming the problematic
file and hangs there forever, never completing the rebuild operation.

I'd appreciate if anyone could give me a hand on this. Could it be a bug or
is there some configuration tuning that could help this? I will try
increasing the *streaming_socket_timeout_in_ms* property, but if the
problem is on the destination this won't help (since the socket only times
out at the source).

I've investigated the source code of IncomingStreamReader
and StreamInSession, but didn't notice any blocking operation apart from
the, which should timeout on *
streaming_socket_timeout_in_ms*, but it doesn't.

Any help would be very much appreciated,



View raw message