-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add coordinator MEMORY_BYTES sensor for reads #1452
base: cndb-8501
Are you sure you want to change the base?
Conversation
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
public class CoordinatorSensorsTest extends CQLTester |
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.
For testing internode message (and memory bytes from received internode message) our best shot would be dtests. Will move there once cndb-8501 is merged as it will could reuse/refactor some of the stuff. Other non-CNDB test ideas are welcome
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.
update: internode is out of scope for now. I added an initial dtest anyway to exercise the code paths on the callback from replicas
? message.getPayloadSerializer().serializedSize(message.payload, version) | ||
: 0; | ||
// TODO: remove and properly fix NPE when calling message.serializedSize(MessagingService.current_version) |
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.
Confirmed this is legacy verb REQUEST_RSP
:
No payload serializer found for verb REQUEST_RSP, responseVerb null, payload org.apache.cassandra.db.ReadResponse$RemoteDataResponse@c9f4b69
What is the issue
Draft for https://github.com/riptano/cndb/issues/11544
This PR is based off cndb-8501 for now.
What does this PR fix and why was it fixed
Tracks coordinator memory bytes for reads and range reads
Checklist before you submit for review
NoSpamLogger
for log lines that may appear frequently in the logs