forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Invalidation on events
- On
SCHEMA_CHANGE, for targetkeyspace+table, for all change types:UPDATEDorDROPPEDdrop related tablet records. - On
TOPOLOGY_CHANGE, forREMOVED_NODE(and probablychange type, all tablet records that contains this node, to be removed.MOVED_NODE)
Possible optimizations:
OnSCHEMA_CHANGEchange types:UPDATEDdriver can look at what have changed and if nothing that can trigger tablet migration (say, ks replication factor and tablet feature on the table) is touched, then invalidation to be voided
Invalidation on control connection reconnect
When cc is lost, driver can miss some of the events.
So we need some logic to catch up:
- Read keyspace and table descriptions to find if any keyspace or table was removed or updated, doing exactly the same what should be done for
SCHEMA_CHANGEevent. - Read
system.peersto find if any node was removed and do the same what should be done forTOPOLOGY_CHANGEevent.
Metadata
Metadata
Assignees
Labels
No labels