JAVA-1038: Fetch node info by rpc_address if it has a broadcast_address which is not in system.peers.#596
Conversation
|
👍 |
|
I tried this out in EC2 and it worked fantastically! Set up a 3 node cluster with a similar setup to what @wy96f described in #550 (private listen_address & rpc_address, public broadcast_address, didn't try multi-region as that isn't relevant to this change) Sequence of events showing this working: Before stopping 172.30.1.194 (52.90.195.27) After stopping 172.30.1.194 (52.90.195.27) After starting 172.30.1.194 (now: 52.90.195.55) As you can see the host is marked back up and the driver reconnects to it even though the peer changes, where it wouldn't have attempted to reconnect previously as the listen address would no longer be in the peers table. The only thing I think that would be nice to add to this is logging for this particular case (maybe at debug) when the entry isn't found in peers and we attempt using the rpc_address instead. |
… not in system.peers.
|
@tolbertam I added the log in the rebased commit. |
JAVA-1038: Fetch node info by rpc_address if it has a broadcast_address which is not in system.peers.
[apache#595][apache#596] Signed-off-by: Mark Paluch <mpaluch@vmware.com>
This supersedes #550 .