-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle new messaging service verbs for dropped reads in Cassandra 4.0 #714
Handle new messaging service verbs for dropped reads in Cassandra 4.0 #714
Conversation
List<DroppedMessages> tpstats = SimpleReaperClient.parseDroppedMessagesJSON(responseData); | ||
|
||
long readDroppedTotal = tpstats.stream() | ||
.filter(tpstat -> "READ".equals(tpstat.getName()) || "READ_REQ".equals(tpstat.getName())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line and line 1606 is the core of the PR
.filter(tpstat -> tpstat.getCount() >= 0) | ||
.count(); | ||
long readDroppedCount = tpstats.stream() | ||
.filter(tpstat -> "READ".equals(tpstat.getName()) || "READ_REQ".equals(tpstat.getName()) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line and line 1602 is the core of the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Good catch
cc78760
to
dc8096f
Compare
dc8096f
to
f798244
Compare
With the messaging service rewrite in Cassandra 4.0 there has been an overhaul (and addition of many) of the VERBs: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/net/Verb.java
This PR allows the dropped messages integration test step to use either VERB
READ
orREAD_REQ
to be compatible with all versions of Cassandra.