kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 3ddbf39029e8bb1b283cc5c0ce4133cf8fd6ee0b505a47fad5938073a4bd33a4 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2015-08-26 10:16 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2015-08-26 10:16 +02:00 |
| Parents | 888bf5620c13 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/SocketOptions.java +3 −5
| @@ -85,7 +85,7 @@ | ||
| 85 | 85 | * <p> |
| 86 | 86 | * Please note that this is not the maximum time a call to {@link Session#execute} may block; |
| 87 | 87 | * this is the maximum time that call will wait for one particular |
| 88 | - * Cassandra host, but other hosts will be tried if one of them timeout. In | |
| 88 | + * Cassandra host, but other hosts will be tried if one of them times out. In | |
| 89 | 89 | * other words, a {@link Session#execute} call may theoretically wait up to |
| 90 | 90 | * {@code getReadTimeoutMillis() * <number_of_cassandra_hosts>} (though the |
| 91 | 91 | * total number of hosts tried for a given query also depends on the |
| @@ -110,10 +110,8 @@ | ||
| 110 | 110 | * <p> |
| 111 | 111 | * When setting this value, keep in mind the following: |
| 112 | 112 | * <ul> |
| 113 | - * <li>the timeout settings used on the Cassandra side ({@code *_request_timeout_in_ms} | |
| 114 | - * in {@code cassandra.yaml}) should be taken into account when picking a value for this | |
| 115 | - * read timeout. In particular, if this read timeout option is lower than Cassandra's | |
| 116 | - * timeout, <b>the driver might assume that the host is not responsive and mark it down.</b></li> | |
| 113 | + * <li>it should be higher than the timeout settings used on the Cassandra side | |
| 114 | + * ({@code *_request_timeout_in_ms} in {@code cassandra.yaml}).</li> | |
| 117 | 115 | * <li>the read timeout is only approximate and only control the timeout to one Cassandra |
| 118 | 116 | * host, not the full query (see {@link #getReadTimeoutMillis} for more details). If a |
| 119 | 117 | * high level of precision on the timeout to a request is required, you should use |