Project

General

Profile

Actions

Bug #1638

closed

Can't create object with large xattrs in a single operation (on extN)

Added by Yehuda Sadeh over 12 years ago. Updated about 12 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

A single compound operation that does:
- create
- setxattr (small enough to fit but large enough to fill in the ext3/ext4 space for xattrs)

the operation can have multiple setxattrs, so enough xattrs on the operation will eventually fill up the space.

we'll end up with either bad object, or a bad one. The operation itself fill return success, but next operations will return -ENOENT.


2011-10-19 16:25:05.874133 7fc34230a710 filestore(dev/osd0)  ENOSPC on setxattr on 10.1_head/255_2766b97ec2b249cfaa5e8c02e399c972/head name _user.rgw.shadow_name size 65
2011-10-19 16:25:05.874157 7fc34230a710 filestore(dev/osd0) WARNING: ignoring setattr ENOSPC failure, until we implement a workaround for extN xattr limitations

[the next xattrs failing is a real problem]

2011-10-19 16:25:05.915935 7fc34230a710 filestore(dev/osd0)  ENOSPC on setxattr on 10.1_head/255_2766b97ec2b249cfaa5e8c02e399c972/head name _ size 196
2011-10-19 16:25:05.915959 7fc34230a710 filestore(dev/osd0) WARNING: ignoring setattr ENOSPC failure, until we implement a workaround for extN xattr limitations
2011-10-19 16:25:05.966122 7fc34230a710 filestore(dev/osd0)  ENOSPC on setxattr on 10.1_head/255_2766b97ec2b249cfaa5e8c02e399c972/head name snapset size 26
2011-10-19 16:25:05.966145 7fc34230a710 filestore(dev/osd0) WARNING: ignoring setattr ENOSPC failure, until we implement a workaround for extN xattr limitations
2011-10-19 16:25:05.966452 7fc340b07710 -- 10.0.1.203:6808/3605 --> 10.0.1.245:0/1007286 -- osd_op_reply(17731 255_2766b97ec2b249cfaa5e8c02e399c972 [delete,create 0~0,setxattr user.rgw.acl (102),  setxattr user.rgw.content_type (25),setxattr user.rgw.etag (33),setxattr user.rgw.x-amz-meta-0298e4d400d74a3ebc7b727e1 (26),setxattr user.rgw.x-amz-meta-04db42bb62024aaaa7c13712f (26),setxattr     user.rgw.x-amz-meta-08e6c6c6827b4ffda941e87ac (26),setxattr user.rgw.x-amz-meta-09dd3319c8bf4db1a32b441d0 (26),setxattr user.rgw.x-amz-meta-0b2310bc14a945aabc8b24cf0 (26),
...
2011-10-19 16:25:05.966122 7fc34230a710 filestore(dev/osd0)  ENOSPC on setxattr on 10.1_head/255_2766b97ec2b249cfaa5e8c02e399c972/head name snapset size 26
2011-10-19 16:25:05.966145 7fc34230a710 filestore(dev/osd0) WARNING: ignoring setattr ENOSPC failure, until we implement a workaround for extN xattr limitations
2011-10-19 16:25:05.966452 7fc340b07710 -- 10.0.1.203:6808/3605 --> 10.0.1.245:0/1007286 -- osd_op_reply(17731 255_2766b97ec2b249cfaa5e8c02e399c972 [delete,create 0~0,setxattr user.rgw.acl (102),  setxattr user.rgw.content_type (25),setxattr user.rgw.etag (33),setxattr user.rgw.x-amz-meta-0298e4d400d74a3ebc7b727e1 (26),setxattr user.rgw.x-amz-meta-04db42bb62024aaaa7c13712f (26),setxattr     user.rgw.x-amz-meta-08e6c6c6827b4ffda941e87ac (26),setxattr user.rgw.x-amz-meta-09dd3319c8bf4db1a32b441d0 (26),setxattr user.rgw.x-amz-meta-0b2310bc14a945aabc8b24cf0 (26),setxattr user.rgw.x-amz-  meta-0cfdad44837e4053b97652af1 (26),setxattr user.rgw.x-amz-meta-18cbc449b653437e82f466f58 (26),setxattr user.rgw.x-amz-meta-204d06dbb7a846c59f2873bf1 (26),setxattr user.rgw.x-amz-meta-    
...
edebfde15dee468cb86b98c62 (26),setxattr user.rgw.x-amz-meta-fa0c1cd891d54e3fba63e541e (26),setxattr user.rgw.x-amz-meta-ff51ea2b24fb4abd96c591c49 (26),setxattr user.rgw.idtag (32),setxattr user.   rgw.shadow_name (65)] ack = 0) v1 -- ?+0 0x32028c0 con 0x31e6500 <-- here we return success

...
[next operation on the same object returns ENOENT] 
011-10-19 16:25:05.977834 7fc33f304710 -- 10.0.1.203:6808/3605 <== client.4149 10.0.1.245:0/1007286 17737 ==== osd_op(client.4149.0:17737 255_2766b97ec2b249cfaa5e8c02e399c972 [getxattrs,stat 0~0] 10.1e4619f1) v3 ==== 204+0+0 (2198824556 0 0) 0x2d5ab40 con 0x31e6500
2011-10-19 16:25:05.977908 7fc33b9fc710 -- 10.0.1.203:6808/3605 --> 10.0.1.245:0/1007286 -- osd_op_reply(17737 255_2766b97ec2b249cfaa5e8c02e399c972 [getxattrs,stat 0~0] = -2 (No such file or       directory)) v1 -- ?+0 0x32fb540 con 0x31e6500
Actions

Also available in: Atom PDF