kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | c891a2504bbcfb1db37d18fa420588832330de64112aa77f96695c5d1ee4deb7 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-04-17 23:09 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-04-17 23:11 +02:00 |
| Parents | d148d19e0bb5 |
2 files changed
modified driver-core/CHANGELOG.rst +2 −0
| @@ -41,6 +41,8 @@ | ||
| 41 | 41 | - [improvement] Make connection and pool creation fully async (JAVA-692) |
| 42 | 42 | - [improvement] Optimize connection use after reconnection (JAVA-505) |
| 43 | 43 | - [improvement] Remove "suspected" mechanism (JAVA-617) |
| 44 | +- [improvement] Don't mark connection defunct on client timeout (reverts | |
| 45 | + JAVA-425) | |
| 44 | 46 | |
| 45 | 47 | Merged from 2.0.9_fixes branch: |
| 46 | 48 |
modified driver-core/src/main/java/com/datastax/driver/core/RequestHandler.java +2 −6
| @@ -571,7 +571,7 @@ | ||
| 571 | 571 | } |
| 572 | 572 | setFinalException(connection, exception); |
| 573 | 573 | } catch (Exception e) { |
| 574 | - // This shouldn't happen, but if it does, we want to signal the callback, not let him hang indefinitively | |
| 574 | + // This shouldn't happen, but if it does, we want to signal the callback, not let it hang indefinitely | |
| 575 | 575 | setFinalException(null, new DriverInternalError("An unexpected error happened while handling exception " + exception, e)); |
| 576 | 576 | } finally { |
| 577 | 577 | if (queriedHost != null && statement != Statement.DEFAULT) |
| @@ -590,16 +590,12 @@ | ||
| 590 | 590 | } |
| 591 | 591 | |
| 592 | 592 | Host queriedHost = current; |
| 593 | - // If a query times out, we consider that the host is unstable, so we defunct | |
| 594 | - // the connection to mark it down. | |
| 595 | 593 | OperationTimedOutException timeoutException = new OperationTimedOutException(connection.address); |
| 596 | 594 | try { |
| 597 | - connection.defunct(timeoutException); | |
| 598 | - | |
| 599 | 595 | logError(connection.address, timeoutException); |
| 600 | 596 | retry(false, null); |
| 601 | 597 | } catch (Exception e) { |
| 602 | - // This shouldn't happen, but if it does, we want to signal the callback, not let him hang indefinitively | |
| 598 | + // This shouldn't happen, but if it does, we want to signal the callback, not let it hang indefinitely | |
| 603 | 599 | setFinalException(null, new DriverInternalError("An unexpected error happened while handling timeout", e)); |
| 604 | 600 | } finally { |
| 605 | 601 | if (queriedHost != null && statement != Statement.DEFAULT) |