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

db: more readable iterator stats #3611

Merged
merged 1 commit into from May 14, 2024

Conversation

RaduBerinde
Copy link
Member

This change reformats the output of iterator stats which are very hard
to read. We omit reverse counts when they are zero and remove
redundant information.

@RaduBerinde RaduBerinde requested a review from a team as a code owner May 12, 2024 19:19
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@RaduBerinde RaduBerinde requested review from jbowens and removed request for aadityasondhi May 14, 2024 13:29
This change reformats the output of iterator stats which are very hard
to read. We omit reverse counts when they are zero and remove
redundant information.
Copy link
Collaborator

@jbowens jbowens 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 3 of 8 files at r1, 1 of 2 files at r2, all commit messages.
Reviewable status: 3 of 9 files reviewed, 1 unresolved discussion (waiting on @RaduBerinde)


testdata/external_iterator line 248 at r2 (raw file):

aaaaa@3: (aaaaa@3, .)
aaaaa@1: (aaaaa@1, .)
stats: seeked 5 times (5 internal); stepped 5 times (5 internal); blocks: 547B (0B cached), read time 0s; points: 10 (50B keys, 35B values); separated: 15 (65B, 25B fetched)

do you know how it's possible that the separated value count 15 is higher than the total point key count 10?

Copy link
Member Author

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

TFTR!

Reviewable status: 3 of 9 files reviewed, 1 unresolved discussion (waiting on @jbowens)


testdata/external_iterator line 248 at r2 (raw file):

Previously, jbowens (Jackson Owens) wrote…

do you know how it's possible that the separated value count 15 is higher than the total point key count 10?

This comment explains it: https://github.com/cockroachdb/pebble/blob/be6961f4400bfddf6d2000bef19f036f84a8cf42/internal/base/iterator.go#L403-L402

@RaduBerinde RaduBerinde merged commit a1142af into cockroachdb:master May 14, 2024
11 checks passed
@RaduBerinde RaduBerinde deleted the iterator-stats-string branch May 14, 2024 15:32
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.

None yet

3 participants