raj14243 commented on code in PR #1926:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1926#discussion_r2848721899
##########
cassandra_test.go:
##########
@@ -2955,13 +3065,40 @@ func TestTokenAwareConnPool(t *testing.T) {
t.Fatalf("failed to insert with err: %v", err)
}
- query = session.Query("SELECT data FROM test_token_aware where id = ?",
42).Consistency(One)
+ // Verify token-aware routing: queries with the same partition key
should
+ // consistently go to the same host (proving token awareness)
+ var queriedHosts []*HostInfo
+
+ observer := funcQueryObserver(func(ctx context.Context, o
ObservedQuery) {
Review Comment:
Nice, in that case I can just use tracer and not require observer.
--
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]