Skip to content
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

Draft
wants to merge 8 commits into
base: cndb-8501
Choose a base branch
from
Draft

Conversation

aymkhalil
Copy link

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

  • Make sure there is a PR in the CNDB project updating the Converged Cassandra version
  • Use NoSpamLogger for log lines that may appear frequently in the logs
  • Verify test results on Butler
  • Test coverage for new/modified code is > 80%
  • Proper code formatting
  • Proper title for each commit staring with the project-issue number, like CNDB-1234
  • Each commit has a meaningful description
  • Each commit is not very long and contains related changes
  • Renames, moves and reformatting are in distinct commits


import static org.assertj.core.api.Assertions.assertThat;

public class CoordinatorSensorsTest extends CQLTester
Copy link
Author

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

Copy link
Author

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

@aymkhalil aymkhalil requested review from sbtourist and jkni December 10, 2024 23:52
? message.getPayloadSerializer().serializedSize(message.payload, version)
: 0;
// TODO: remove and properly fix NPE when calling message.serializedSize(MessagingService.current_version)
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant