Maciej Zimnoch all time


 0 Collaborator

 2 Patch
64cda7bcf8de3792b216753f4883105865b0fa56, b3e02793c8d425416ccb14b105445255a90ee811

b3e02793c8d425416ccb14b105445255a90ee811 | Author: Maciej Zimnoch <maciej@scylladb.com>
 | 2022-06-20 19:10:49+02:00

    Fix race condition in HostInfo.HostnameAndPort
    
    Function changed HostInfo.hostname without holding write lock.
    Added write lock around it.

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.