Retry important messages for any IOException
patch by Ashley Winters; reveiewed by yukim for CASSANDRA-5804
diff --git a/CHANGES.txt b/CHANGES.txt
index 858bbf8..077a986 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,6 @@
1.2.8
* cqlsh: add collections support to COPY (CASSANDRA-5698)
+ * retry important messages for any IOException (CASSANDRA-5804)
1.2.7
diff --git a/src/java/org/apache/cassandra/net/OutboundTcpConnection.java b/src/java/org/apache/cassandra/net/OutboundTcpConnection.java
index 648123b..4edac5d 100644
--- a/src/java/org/apache/cassandra/net/OutboundTcpConnection.java
+++ b/src/java/org/apache/cassandra/net/OutboundTcpConnection.java
@@ -215,7 +215,7 @@
// if the message was important, such as a repair acknowledgement, put it back on the queue
// to retry after re-connecting. See CASSANDRA-5393
- if (e instanceof SocketException && qm.shouldRetry())
+ if (qm.shouldRetry())
{
try
{