You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On SCHEMA_CHANGE, for target keyspace + table, for all change types: UPDATED or DROPPED drop related tablet records.
On TOPOLOGY_CHANGE, for REMOVED_NODE(and probably MOVED_NODE) change type, all tablet records that contains this node, to be removed.
Possible optimizations:
On SCHEMA_CHANGE change types: UPDATED driver 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_CHANGE event.
Read system.peers to find if any node was removed and do the same what should be done for TOPOLOGY_CHANGE event.
The text was updated successfully, but these errors were encountered:
Invalidation on events
SCHEMA_CHANGE
, for targetkeyspace
+table
, for all change types:UPDATED
orDROPPED
drop related tablet records.TOPOLOGY_CHANGE
, forREMOVED_NODE
(and probablychange type, all tablet records that contains this node, to be removed.MOVED_NODE
)Possible optimizations:OnSCHEMA_CHANGE
change types:UPDATED
driver 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 voidedInvalidation on control connection reconnect
When cc is lost, driver can miss some of the events.
So we need some logic to catch up:
SCHEMA_CHANGE
event.system.peers
to find if any node was removed and do the same what should be done forTOPOLOGY_CHANGE
event.The text was updated successfully, but these errors were encountered: