CNDB-16583: Add new param to failure callback messages - verb name of the incoming message.#2244
CNDB-16583: Add new param to failure callback messages - verb name of the incoming message.#2244MSpryszynski merged 2 commits intomainfrom
Conversation
Checklist before you submit for review
|
| */ | ||
| TRACE_KEYSPACE (8, "TraceKeyspace", StringSerializer.serializer), | ||
| /** | ||
| * Failure callback messages contain verb name of the incoming message. |
There was a problem hiding this comment.
Nit: Failure response messages... might sounds more clear?
niksajakovljevic
left a comment
There was a problem hiding this comment.
LGTM. Can you please inspect the test failures (for some reason I can't access Butler atm).
| public Message<RequestFailureReason> failureResponse(RequestFailureReason reason) | ||
| { | ||
| return failureResponse(id(), expiresAtNanos(), reason); | ||
| return failureResponse(id(), expiresAtNanos(), reason, verb()); |
There was a problem hiding this comment.
Let's test this function as well. Is verb() returning request verb or the verb of the new response message we have built?
niksajakovljevic
left a comment
There was a problem hiding this comment.
Let's add test for failureResponse(RequestFailureReason reason) to make sure we use the correct verb().
4 of them have open ticket with the same failure stack. Other 2 are failing for other open PRs too. |
… the incoming message.
❌ Build ds-cassandra-pr-gate/PR-2244 rejected by Butler7 regressions found Found 7 new test failures
Found 2 known test failures |
|



What is the issue
We want to use the messaging filter to collect metrics for failure responses coming from writer instances. To properly handle different types of failed requests (Read/Write), we need a way to distinguish between callback responses.
Fixes https://github.com/riptano/cndb/issues/16583
What does this PR fix and why was it fixed
This PR adds a new parameter to failure callback messages—the verb name of the incoming request. This parameter allows us to differentiate failure responses based on the origin of the request.