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

os/bluestore: avoid resharding if the last shard size fall below shar… #12447

Merged
merged 1 commit into from Dec 13, 2016

Conversation

ifed01
Copy link
Contributor

@ifed01 ifed01 commented Dec 12, 2016

…d min size. This might cause permanent resharding since the last shard tend to be small.

Signed-off-by: Igor Fedotov ifedotov@mirantis.com

<< " extents" << dendl;
if (!force &&
(len > g_conf->bluestore_extent_map_shard_max_size ||
len < g_conf->bluestore_extent_map_shard_min_size)) {
( n == shards.end() && len < g_conf->bluestore_extent_map_shard_min_size) //do not apply shard_min_size to the last shard since this might trigger permanent resharding

Choose a reason for hiding this comment

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

Can you put the comment on top probably as it is invisible here because of the column limit ?

Since we want to exclude last shard , won't it be ( n != shards.end()) ?

@ifed01
Copy link
Contributor Author

ifed01 commented Dec 12, 2016

@somnathr. Yeah it has to be != shard.end() indeed. Updated. Thanks.

@somnathr
Copy link

LGTM

@xiexingguo
Copy link
Member

LGTM also

@ifed01
Copy link
Contributor Author

ifed01 commented Dec 13, 2016

[ OK ] ObjectStore/StoreTest.TooManyBlobsTest/2 (75167 ms)
[----------] 66 tests from ObjectStore/StoreTest (11530171 ms total)

[----------] Global test environment tear-down
[==========] 66 tests from 1 test case ran. (11530172 ms total)
[ PASSED ] 66 tests.

…d min size

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
@liewegas liewegas merged commit c6198c3 into ceph:master Dec 13, 2016
@ifed01 ifed01 deleted the wip-bluestore-fix-reshard2 branch December 14, 2016 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants