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

freelist: read all free pages on count overflow #12

Merged
merged 2 commits into from
Aug 10, 2017

Conversation

heyitsanthony
Copy link
Contributor

@heyitsanthony heyitsanthony commented Aug 9, 2017

count is not shifted up by start index when taking subslice of free
list, dropping the last entry in the list.

@xiang90
Copy link
Contributor

xiang90 commented Aug 9, 2017

oops... lgtm

@heyitsanthony
Copy link
Contributor Author

looks like something else is going on around this, going to add some stricter checking

@heyitsanthony heyitsanthony force-pushed the skip-freelist-overflow branch from 2911a17 to 03f5e16 Compare August 9, 2017 06:36
@heyitsanthony heyitsanthony changed the title test: skip freelist overflow test freelist: read all free pages on count overflow Aug 9, 2017
Anthony Romano added 2 commits August 8, 2017 23:37
Confirm that the number of freed pages exceeds the overflow count, then check
that reopening gives the same number of free pages.
count is not shifted up by start index when taking subslice of free
list, dropping the last entry in the list.
@heyitsanthony
Copy link
Contributor Author

turns out there's a free page leak on read back

/cc @benbjohnson

@heyitsanthony heyitsanthony removed the WIP label Aug 9, 2017
@benbjohnson
Copy link
Contributor

Do you have a test that can reproduce the issue?

@heyitsanthony
Copy link
Contributor Author

@benbjohnson yes, close/reopen after the freelist overflow test; db checking catches the leaked page as unreachable/unfreed

Copy link
Contributor

@gyuho gyuho left a comment

Choose a reason for hiding this comment

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

lgtm. thanks!

@heyitsanthony heyitsanthony merged commit 12923fe into etcd-io:master Aug 10, 2017
@heyitsanthony heyitsanthony deleted the skip-freelist-overflow branch August 10, 2017 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants