kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | c41d2ad63311244614e5494445e47c4c5a0d49a1beb16e1ecd92449b2faa4e1f |
|---|---|
| Author | Alexandre Dutra <adutra@users.noreply.github.com> · 2017-02-10 17:13 +01:00 |
| Committer | GitHub <noreply@github.com> · 2017-02-10 17:13 +01:00 |
| Parents | 33225dc7a799, 550e311618a9 |
2 files changed
modified changelog/README.md +1 −0
| @@ -5,6 +5,7 @@ | ||
| 5 | 5 | - [bug] JAVA-1371: Reintroduce connection pool timeout. |
| 6 | 6 | - [bug] JAVA-1313: Copy SerialConsistencyLevel to PreparedStatement. |
| 7 | 7 | - [documentation] JAVA-1334: Clarify documentation of method `addContactPoints`. |
| 8 | +- [improvement] JAVA-1357: Document that getReplicas only returns replicas of the last token in range. | |
| 8 | 9 | |
| 9 | 10 | |
| 10 | 11 | ### 3.0.6 |
modified driver-core/src/main/java/com/datastax/driver/core/Metadata.java +6 −1
| @@ -305,7 +305,12 @@ | ||
| 305 | 305 | /** |
| 306 | 306 | * Returns the set of hosts that are replica for a given token range. |
| 307 | 307 | * <p/> |
| 308 | - * Note that this information is refreshed asynchronously by the control | |
| 308 | + * Note that it is assumed that the input range does not overlap across multiple host ranges. | |
| 309 | + * If the range extends over multiple hosts, it only returns the replicas for those hosts | |
| 310 | + * that are replicas for the last token of the range. This behavior may change in a future | |
| 311 | + * release, see <a href="https://datastax-oss.atlassian.net/browse/JAVA-1355">JAVA-1355</a>. | |
| 312 | + * <p/> | |
| 313 | + * Also note that this information is refreshed asynchronously by the control | |
| 309 | 314 | * connection, when schema or ring topology changes. It might occasionally |
| 310 | 315 | * be stale (or even empty). |
| 311 | 316 | * |