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

rac2: add test-only vmod(3) handle raft event logging #137295

Closed

Conversation

kvoli
Copy link
Collaborator

@kvoli kvoli commented Dec 11, 2024

In certain occasions, such as testing, it is useful to view a summary of inputs to every HandleRaftEventRaftMuLocked invocation. Previously, the debugger would need to manually add instrumentation for this, which could be tedious.

Add a set of debugFmt(...) functions which verbosely print the RaftEvent and fields within RaftEvent separately.

Note, there is no behavior change on non-test builds. The logging cannot be enabled.

Epic: none
Release note: None

In certain occasions, such as testing, it is useful to view a summary of
inputs to every `HandleRaftEventRaftMuLocked` invocation. Previously,
the debugger would need to manually add instrumentation for this, which
could be tedious.

Add a set of `debugFmt(...)` functions which verbosely print the
`RaftEvent` and fields within `RaftEvent` separately.

Note, there is no behavior change on non-test builds. The logging cannot
be enabled.

Epic: none
Release note: None
Copy link

blathers-crl bot commented Dec 11, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kvoli
Copy link
Collaborator Author

kvoli commented Jan 24, 2025

Closing this as we likely won't merge the added vmod logging here.

@kvoli kvoli closed this Jan 24, 2025
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.

2 participants