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

jewel: rgw: segfault at RGWAsyncGetSystemObj #9017

Merged
merged 6 commits into from May 10, 2016

Conversation

yehudasa
Copy link
Member

@yehudasa yehudasa commented May 9, 2016

Store the mtime of the object that was removed in the bucket index log.
This will be used in data sync.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 80d6404)
If we know that the object does not exist, no need to remove it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 8d59a30)
Fixes: ceph#15565

check only verified that status was > 0, so we ended not updating mtime for
the target object. This resulted in a continuous sync of objects.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 255f19d)
Fixes: http://tracker.ceph.com/issues/15625

The async read data/attrs coroutines may outlive the callers. Instead
of introducing a complicated refcounting scheme, just don't pass it in.
Anyway, it was not thread safe, and the benefit of using it is not
clear.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit b225d17)
Otherwise we're going to busy loop there.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 806fb85)
We used to allow concurrent requests, as long as these had different op,
which wasn't correct.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit edea6d5)
@yehudasa yehudasa self-assigned this May 9, 2016
@yehudasa yehudasa added this to the jewel milestone May 9, 2016
@ghost ghost assigned ghost and unassigned yehudasa May 10, 2016
@ghost ghost changed the title rgw: sync fixes jewel: rgw: segfault at RGWAsyncGetSystemObj May 10, 2016
ghost pushed a commit that referenced this pull request May 10, 2016
Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request May 10, 2016
Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost
Copy link

ghost commented May 10, 2016

test this please

@ghost
Copy link

ghost commented May 10, 2016

@ghost ghost assigned yehudasa and unassigned ghost May 10, 2016
@yehudasa yehudasa merged commit 4ead0f9 into ceph:jewel May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant