Project

General

Profile

Actions

Bug #4216

closed

osd: dbojectmap incorrectly skipping ops

Added by Sage Weil about 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
OSD
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

ubuntu@teuthology:/a/sage-ooo6/8248 crashed with a bad array index in remove_object_with_snap_hardlinks because a snapped object had an empty oi.snaps vector. this appears to be because when the object was written (first created) a bit earlier the setxattr failed with

2013-02-20 21:43:56.498875 7f6a9d4e1700 10 filestore(/var/lib/ceph/osd/ceph-1) _do_transaction on 0x3a93838
2013-02-20 21:43:56.498881 7f6a9d4e1700 15 filestore(/var/lib/ceph/osd/ceph-1) clone 0.7_head/d30883e7/plana605797-98/head//0 -> 0.7_head/d30883e7/plana605797-98/13c//0
2013-02-20 21:43:56.499046 7f6a9d4e1700 20 filestore(/var/lib/ceph/osd/ceph-1) _do_clone_range 0~3204735 to 0
2013-02-20 21:43:56.499058 7f6a9d4e1700 20 filestore(/var/lib/ceph/osd/ceph-1) _do_clone_range using copy
2013-02-20 21:43:56.499060 7f6a9d4e1700 20 filestore(/var/lib/ceph/osd/ceph-1) _do_copy_range 0~3204735 to 0
2013-02-20 21:43:56.503670 7f6a9d4e1700 20 filestore(/var/lib/ceph/osd/ceph-1) _do_copy_range 0~3204735 to 0 = 59007
2013-02-20 21:43:56.503683 7f6a9d4e1700 20 filestore(/var/lib/ceph/osd/ceph-1) objectmap clone
2013-02-20 21:43:56.503760 7f6a9d4e1700 20 filestore dbobjectmap: seq is 1992
2013-02-20 21:43:56.503778 7f6a9d4e1700 20 filestore dbobjectmap: seq is 1993
2013-02-20 21:43:56.503789 7f6a9d4e1700 20 filestore set_header: setting seq 1594
2013-02-20 21:43:56.503799 7f6a9d4e1700 20 filestore set_map_header: setting 1991 hoid d30883e7/plana605797-98/head//0 parent seq 1594
2013-02-20 21:43:56.503811 7f6a9d4e1700 20 filestore set_map_header: setting 1992 hoid d30883e7/plana605797-98/13c//0 parent seq 1594
2013-02-20 21:43:56.503907 7f6a9d4e1700 20 filestore(/var/lib/ceph/osd/ceph-1) fgetattrs 45 getting '_'
2013-02-20 21:43:56.503927 7f6a9d4e1700 20 filestore(/var/lib/ceph/osd/ceph-1) fgetattrs 45 getting 'snapset'
2013-02-20 21:43:56.503976 7f6a9d4e1700 15 filestore(/var/lib/ceph/osd/ceph-1) setattrs 0.7_head/d30883e7/plana605797-98/13c//0
2013-02-20 21:43:56.504059 7f6a9d4e1700 10 filestore hoid: d30883e7/plana605797-98/13c//0 skipping op, *spos 13278.1.0 <= header.spos 13278.1.0
2013-02-20 21:43:56.504100 7f6a9d4e1700 10 filestore hoid: d30883e7/plana605797-98/13c//0 skipping op, *spos 13278.1.0 <= header.spos 13278.1.0
2013-02-20 21:43:56.504129 7f6a9d4e1700 10 filestore(/var/lib/ceph/osd/ceph-1) setattrs 0.7_head/d30883e7/plana605797-98/13c//0 = 31
2013-02-20 21:43:56.504135 7f6a9d4e1700 10 filestore(/var/lib/ceph/osd/ceph-1) _set_replay_guard 13278.1.0
2013-02-20 21:43:56.573789 7f6a9dce2700 20 filestore dbobjectmap: seq is 1993

note that this is the first time this object appears on this particular OSD.
Actions

Also available in: Atom PDF