64cda7bcf8de3792b216753f4883105865b0fa56 | Author: Maciej Zimnoch <maciej@scylladb.com>
| 2022-06-07 17:25:27+02:00
Identify nodes by their host_id instead broadcasted_address
Currently driver identifies nodes based on their broadcasted IP
address. In cloud case, broadcasted IP addresses are private and are not
meant to be used as a contact point, and they may change overtime.
Hence driver internals were changed to identify nodes based on their
host_id which is unique per node and it's persistant throught entire
node lifecycle.
Because CQL Events are still using broadcasted IP addresses, driver
keep mapping between already known IP addresses and host_ids.
Prepared statement cache key was also changed to host_id, to not
invalidate it upon IP change.