Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SocketTimeoutException translated as HectorTransportException, not HT…

…imeoutException #434
  • Loading branch information...
commit fb76ae61b272e6b3e88739fa50c446d14e785418 1 parent db74f37
@sbridges sbridges authored
View
9 core/src/main/java/me/prettyprint/cassandra/service/ExceptionsTranslatorImpl.java
@@ -30,14 +30,7 @@ public HectorException translate(Throwable original) {
} else if (original instanceof TApplicationException) {
return new HCassandraInternalException(((TApplicationException)original).getType(), original.getMessage());
} else if (original instanceof TTransportException) {
- // if the underlying cause is a scoket timeout, reflect that directly
- // TODO this may be an issue on the Cassandra side which warrants ivestigation.
- // I seem to remember these coming back as TimedOutException previously
- if ( ((TTransportException)original).getCause() instanceof SocketTimeoutException ) {
- return new HTimedOutException(original);
- } else {
- return new HectorTransportException(original);
- }
+ return new HectorTransportException(original);
} else if (original instanceof org.apache.cassandra.thrift.TimedOutException) {
return new HTimedOutException(original);
} else if (original instanceof org.apache.cassandra.thrift.InvalidRequestException) {
Please sign in to comment.
Something went wrong with that request. Please try again.