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

Backport to hammer: issues 15886, 15745 #10070

Closed
wants to merge 2 commits into from

Conversation

yehudasa
Copy link
Member

No description provided.

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

Only add a rados object to the written_objs list if the write
was successful. Otherwise if the write will be canceled for some
reason, we'd remove an object that we didn't write to. This was
a problem in a case where there's multiple writes that went to
the same part. The second writer should fail the write, since
we do an exclusive write. However, we added the object's name
to the written_objs list anyway, which was a real problem when
the old processor was disposed (as it was clearing the objects).

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

When complete_writing_data() is called, if pending_data_bl is not empty
we still need to handle stripe transition correctly. If pending_data_bl
has more data that we can allow in current stripe, move to the next one.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit b7a7d41)

Conflicts:
	src/rgw/rgw_rados.cc (hammer write_data() takes rgw_obj reference as
	4th argument, hammer throttle_data() takes rgw_obj as 2nd argument)
@yehudasa yehudasa added this to the hammer milestone Jun 30, 2016
@yehudasa yehudasa changed the title Backport to hammer: issue 15886 Backport to hammer: issues 15886, 15745 Jun 30, 2016
@oritwas
Copy link
Member

oritwas commented Jul 5, 2016

@yehudasa seems you have a conflict, can you fix it?

@yehudasa
Copy link
Member Author

yehudasa commented Jul 7, 2016

@oritwas seems that issue 15886 has already been merged in before. Only need to have 15745, I'll send a new PR

@yehudasa yehudasa closed this Jul 7, 2016
@yehudasa
Copy link
Member Author

yehudasa commented Jul 7, 2016

@oritwas actually, there's already one open: #9407

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