Slow Query Logger

Description

It would be great if there was a way to log if a Cassandra query takes longer then a configured length of time.

E.g.

The problem with doing this outside of the driver is that it may include any retries or connections.

Environment

None

Pull Requests

None

Activity

Show:
Olivier Michallat
March 9, 2015, 9:21 AM

Yes, this would be a very useful feature.
We have a couple of tickets in 2.0.10 that will help log statements better, so I'm tentatively adding this one as well.

Olivier Michallat
March 9, 2015, 9:41 AM

The logger should emphasize queries that timed out. Clients needs to pay special attention to them as they mark the node down. See RequestHandler#onTimeout.

Andy Tolbert
March 31, 2015, 8:28 PM

The unit and integration test cases for this were very comprehensive. I added a few more and did some manual validation with a load test. Looks good to merge!

Fixed

Assignee

Alexandre Dutra

Reporter

Former user

Labels

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure