Bug #5183
occasional failure of rbd DiffIterateStress test
0%
Description
wip-osd-obc-snapdir
Associated revisions
osd: do not assume head obc object exists when getting snapdir
For a list-snaps operation on the snapdir, do not assume that the obc for the
head means the object exists. This fixes a race between a head deletion and
a list-snaps that wrongly returns ENOENT, triggered by the DiffItersateStress
test when thrashing OSDs.
Fixes: #5183
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
osd: do not assume head obc object exists when getting snapdir
For a list-snaps operation on the snapdir, do not assume that the obc for the
head means the object exists. This fixes a race between a head deletion and
a list-snaps that wrongly returns ENOENT, triggered by the DiffItersateStress
test when thrashing OSDs.
Fixes: #5183
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit 29e4e7e316fe3f3028e6930bb5987cfe3a5e59ab)
History
#1 Updated by Ian Colle almost 11 years ago
- Assignee set to Samuel Just
#2 Updated by Samuel Just almost 11 years ago
Looks good.
#3 Updated by Sage Weil almost 11 years ago
- Status changed from Fix Under Review to Pending Backport
#4 Updated by Sage Weil almost 11 years ago
- Status changed from Pending Backport to Resolved