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

Wip 16998 #10688

Merged
merged 2 commits into from Aug 22, 2016
Merged

Wip 16998 #10688

merged 2 commits into from Aug 22, 2016

Conversation

athanatos
Copy link
Contributor

No description provided.

Signed-off-by: Samuel Just <sjust@redhat.com>
for (vector<int>::iterator p = up.begin(); p != up.end(); ++p, ++i) {
pg_shard_t s(*p,
pool.info.ec_pool() ? shard_id_t(i) : shard_id_t::NO_SHARD);
for (set<pg_shard_t>::const_iterator p = upset.begin();
Copy link
Contributor

@tchaikov tchaikov Aug 16, 2016

Choose a reason for hiding this comment

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

what is the difference between this approach and the existing way? i think they are the same.

Copy link
Contributor

@tchaikov tchaikov Aug 16, 2016

Choose a reason for hiding this comment

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

can we skip the shards who are CRUSH_ITEM_NONE here instead without introducing this.upset? and could use auto and range based loop.

Copy link
Contributor Author

@athanatos athanatos Aug 16, 2016

Choose a reason for hiding this comment

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

It's really meant to match the actingset and actingbackfill sets. Mostly, using the up and acting vectors directly has led to a ton of subtle bugs like this one, and switching to actingset/actingbackfill has helped a lot. Also, having the upset isn't really all that costly.

Copy link
Contributor

@tchaikov tchaikov Aug 16, 2016

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eh, I wanted it to be symmetric with the actingset scan above. Also, we might want to backport these to hammer.

Copy link
Contributor

Choose a reason for hiding this comment

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

okay.

@tchaikov
Copy link
Contributor

nit, might want to connect to http://tracker.ceph.com/issues/16998 using "Fixes: http://tracker.ceph.com/issues/16998"?

@athanatos
Copy link
Contributor Author

Added the Fixes: line (thanks!).

@tchaikov
Copy link
Contributor

modulo a nit. lgtm.

@tchaikov
Copy link
Contributor

retest this please.

@tchaikov
Copy link
Contributor

lgtm.

@athanatos
Copy link
Contributor Author

retest this please.

@yuriw yuriw merged commit 45bf8c1 into ceph:master Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants