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

kvstreamer: improve logging a bit #124090

Merged
merged 1 commit into from
May 13, 2024
Merged

Conversation

yuzefovich
Copy link
Member

This commit adjusts the logging for each singleRangeBatch to include the number of scans inside of it (we only included the number of gets previously). It also drops the bitmap for whether the scans were started (this doesn't seem that useful - positions slice kinda implicitly has that information).

Additionally, it includes the TargetBytes limit that each BatchRequest was issued with into an existing log message (we have this information down at the KV level too, but it makes things easier when grepping from streamer logs specifically).

Informs: https://github.com/cockroachlabs/support/issues/2945.
Epic: None

Release note: None

This commit adjusts the logging for each `singleRangeBatch` to include
the number of scans inside of it (we only included the number of gets
previously). It also drops the bitmap for whether the scans were started
(this doesn't seem that useful - `positions` slice kinda implicitly has
that information).

Additionally, it includes the TargetBytes limit that each BatchRequest
was issued with into an existing log message (we have this information
down at the KV level too, but it makes things easier when grepping from
streamer logs specifically).

Release note: None
@yuzefovich yuzefovich added backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1. labels May 13, 2024
@yuzefovich yuzefovich requested review from michae2 and a team May 13, 2024 22:33
Copy link

blathers-crl bot commented May 13, 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

Copy link
Collaborator

@michae2 michae2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)

@yuzefovich
Copy link
Member Author

TFTR!

bors r+

@craig craig bot merged commit b185402 into cockroachdb:master May 13, 2024
21 of 22 checks passed
@yuzefovich yuzefovich deleted the streamer-logging branch May 14, 2024 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-23.2.x Flags PRs that need to be backported to 23.2. backport-24.1.x Flags PRs that need to be backported to 24.1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants