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

mimic: osd: Don't include user changeable flag in snaptrim related assert #28202

Merged
merged 1 commit into from Jul 1, 2019

Conversation

dzafman
Copy link
Contributor

@dzafman dzafman commented May 21, 2019

Caused by: a53ba73

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

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 63c2060)

Conflicts:
	src/osd/PrimaryLogPG.h (Use assert() in mimic)
@dzafman dzafman added this to the mimic milestone May 21, 2019
@smithfarm smithfarm requested review from liewegas, athanatos and neha-ojha and removed request for athanatos May 21, 2019 20:11
@athanatos
Copy link
Contributor

This backport look ok to me, but did we fix the underlying race?

@dzafman
Copy link
Contributor Author

dzafman commented May 22, 2019

@athanatos I considered it a race with the assert. I assumed that if snap trim got as far as WaitReservation::react(const SnapTrimReserved&), can_trim() includes nosnaptrim and wouldn't proceed. Before nosnaptrim was added, the assert was correct. But afterwards the assert raced with the user setting nosnaptrim.

@athanatos
Copy link
Contributor

Ah, so setting CEPH_OSDMAP_NOSNAPTRIM doesn't necessarily cancel an in-progress trim. Ok, LGTM.

@yuriw
Copy link
Contributor

yuriw commented Jun 26, 2019

@yuriw yuriw merged commit 61d80af into ceph:mimic Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants