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

mimic: os/bluestore: fix assertion in StupidAllocator::get_fragmentation #23676

Merged
merged 1 commit into from Sep 5, 2018

Conversation

ifed01
Copy link
Contributor

@ifed01 ifed01 commented Aug 21, 2018

One might face an assertion (assert(intervals <= max_intervals))
in StupidAllocator::get_fragmentation method for clusters created
by early Luminous releases and before. The root cause is that block
volume size wasn't aligned with min_alloc_size and hence we missed
that last fraction interval during max_interval calculation.

Signed-off-by: Igor Fedotov ifedotov@suse.com
(cherry picked from commit a60b231)

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

One might face an assertion (assert(intervals <= max_intervals))
in StupidAllocator::get_fragmentation method for clusters created
by early Luminous releases and before. The root cause is that block
volume size wasn't aligned with min_alloc_size and hence we missed
that last fraction interval during max_interval calculation.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit a60b231)
@yuriw
Copy link
Contributor

yuriw commented Sep 2, 2018

@liewegas liewegas merged commit 9e32d00 into ceph:mimic Sep 5, 2018
@ifed01 ifed01 deleted the wip-ifed-fix-get_fragmentation branch September 6, 2018 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants