kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 9aa18df023505c1e36b0e53595cdb85f6798d2c4db82a2fccfd6ca7594382c5d |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-11-18 16:23 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-11-27 10:37 +01:00 |
| Parents | bb694ea629e2 |
2 files changed
modified driver-core/CHANGELOG.rst +1 −0
| @@ -7,6 +7,7 @@ | ||
| 7 | 7 | - [improvement] Shade Netty dependency (JAVA-538) |
| 8 | 8 | - [improvement] Target schema refreshes more precisely (JAVA-543) |
| 9 | 9 | - [new feature] Add AddressTranslater for EC2 multi-region deployment (JAVA-518) |
| 10 | +- [bug] Don't check rpc_address for control host (JAVA-546) | |
| 10 | 11 | |
| 11 | 12 | |
| 12 | 13 | 2.0.8: |
modified driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java +4 −1
| @@ -441,7 +441,10 @@ | ||
| 441 | 441 | logger.error("No row found for host {} in {}'s peers system table. {} will be ignored.", host.getAddress(), c.address, host.getAddress()); |
| 442 | 442 | return false; |
| 443 | 443 | } |
| 444 | - } else if (row.getInet("rpc_address") == null) { | |
| 444 | + // Ignore hosts with a null rpc_address, as this is most likely a phantom row in system.peers (JAVA-428). | |
| 445 | + // Don't test this for the control host since we're already connected to it anyway, and we read the info from system.local | |
| 446 | + // which doesn't have an rpc_address column (JAVA-546). | |
| 447 | + } else if (!c.address.equals(host.getSocketAddress()) && row.getInet("rpc_address") == null) { | |
| 445 | 448 | logger.error("No rpc_address found for host {} in {}'s peers system table. {} will be ignored.", host.getAddress(), c.address, host.getAddress()); |
| 446 | 449 | return false; |
| 447 | 450 | } |