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

rgw/rgw_rados: do not omap_getvals with (u64)-1 max (updated) #12224

Merged
merged 2 commits into from Dec 2, 2016

Conversation

yehudasa
Copy link
Member

Fixes: http://tracker.ceph.com/issues/17985

This will make the OSD fall over if the object is big
and the OSD doesn't impose it's own fail-safe limit.

Signed-off-by: Sage Weil <sage@redhat.com>
if (r < 0) {
return r;
}
if (t.empty()) {
break;
}
done = (t.size() < count);
Copy link
Member

Choose a reason for hiding this comment

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

It's possible for the OSD to return fewer entries and not be at the end.

Copy link
Member

Choose a reason for hiding this comment

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

(For example, there is a now an omap get limit that's enforced at the osd to work around client code like this)

Copy link
Member Author

Choose a reason for hiding this comment

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

@liewegas in that case, we need to have omap_getvals() to also return is_truncated

@yehudasa
Copy link
Member Author

@liewegas updated

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
@ghost
Copy link

ghost commented Dec 2, 2016

jenkins test this please (https://jenkins.ceph.com/job/ceph-pull-requests/15081/console fails readable.sh)

@ghost
Copy link

ghost commented Dec 2, 2016

jenkins test this please (osd-crush.sh)

@mattbenjamin mattbenjamin merged commit 4b8b0c0 into ceph:master Dec 2, 2016
@mattbenjamin
Copy link
Contributor

passed my teuthology run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants