Kapil
Kapil

Reputation: 423

Responding replica to a read/write request in Cassandra

I'm interested in finding out which Cassandra replica responded to a read or write request performed at the ONE consistency level. Is there some way I can do this?

Upvotes: 0

Views: 39

Answers (1)

Nishant
Nishant

Reputation: 161

Running your queries with TRACING ON will get you that information. If you are using the Java driver, most of the trace information can be fetched via the ExecutionInfo class which you can get by calling ResultSet.getExecutionInfo. Else query the system_traces keyspace as the documentation suggests.

Upvotes: 1

Related Questions