Skip to content

Add Consistency for ObservedQuery #1798

@Rikkuru

Description

@Rikkuru

What version of Cassandra are you using?

scylladb 5.1.19

What version of Gocql are you using?

fork scylladb/gocql v1.12.0 ( includes v1.6.0 gocql/gocql)

What version of Go are you using?

1.21

What did you do?

tried to write observer for several possible retry pilicies some of which change query Consistency

What did you expect to see?

I expected to find a way to get current query Consistency from ObservedQuery

What did you see instead?

there is no field Consistency in ObservedQuery

I think it can be useful to have field with current Consistency in ObservedQuery
RetryPolicy can change Consistency and I wanted to detect downgrades of CL in Observer but for now I had to check used RetryPolicy and Attempt to get this query CL
It is not difficult to do with DowngradingConsistencyRetryPolicy , but I use different policies in project and it can be bothersome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions