Paulo Motta created CASSANDRA-10774: ---------------------------------------
Summary: Fail stream session if receiver cannot process data Key: CASSANDRA-10774 URL: https://issues.apache.org/jira/browse/CASSANDRA-10774 Project: Cassandra Issue Type: Bug Components: Streaming and Messaging Reporter: Paulo Motta Assignee: Paulo Motta Priority: Critical [~tjake] on CASSANDRA-10674: {quote} I think the underlying issue here is streaming failures only account for problems during the file send. Not any subsequent errors. We should probably add an acknowledgement to the streaming operation that it was processed by the receiver correctly. {quote} It seems the stream receive task (and thus the stream sesssion) is only completed on [2.1|https://github.com/apache/cassandra/blob/cassandra-2.1/src/java/org/apache/cassandra/streaming/StreamReceiveTask.java#L175] and [2.2|https://github.com/apache/cassandra/blob/cassandra-2.2/src/java/org/apache/cassandra/streaming/StreamReceiveTask.java#L171] after the files are processed (otherwise it just hangs), but on [3.0|https://github.com/apache/cassandra/blob/cassandra-3.0/src/java/org/apache/cassandra/streaming/StreamReceiveTask.java#L231] it's always completed even if there was a failure, what seems more critical. In any case, we should probably fail the stream session if there is a problem while processing the received data. -- This message was sent by Atlassian JIRA (v6.3.4#6332)