raj14243 commented on code in PR #1926:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1926#discussion_r2722347992
##########
events.go:
##########
@@ -133,27 +133,42 @@ func (s *Session) handleEvent(framer *framer) {
}
func (s *Session) handleSchemaEvent(frames []frame) {
Review Comment:
Good catch! thanks for sharing the protocol. I had assumed `change` would
capture the target as well, but it only captures the action. With this new
information I see two approaches:
1. In `handleSchemaEvent`, refresh the metadata for the keyspaces that were
cleared.
2. Add an explicit callback to the `HostSelectionPolicy` for targets other
than keyspace.
I'll go with option 1 for now, since refreshing the cache where it’s removed
feels more logical. I'm open to other suggestions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]