That was 5 megabytes size. I tried 6 megabytes and  6000000 bytes, same
strory. So seems unrelated to size. I think important things here: 1)
actual object size is zero 2) Range request
I'll ask my sysadmin-team for version, they'll answer tomorrow. I'll report
issue tomorrow.


2016-06-19 18:28 GMT+03:00 Wido den Hollander <w...@42on.com>:

>
> > Op 19 juni 2016 om 12:21 schreef Victor Efimov <vic...@vsespb.ru>:
> >
> >
> > When I submit request to zero-size object with Range header, I am getting
> > wrong Content-Length and Content-Range.
> >
> > See "Content-Range: bytes 0-5242880/0" and "Content-Length: 5242881"
> below.
> >
>
> That sounds like a bug! Good catch :) Which version of Ceph did you test
> this against?
>
> Could you be so kind to report this in tracker.ceph.com as a issue?
>
> The 512k seems to be related to the first HEAD object, a internal thing on
> how RGW stores , see rgw_rados.cc:
>
> #define HEAD_SIZE 512 * 1024
>
> Wido
>
> > GET
> >
> http://XXXX/test-vsespb-1/mykey?AWSAccessKeyId=XXX&Expires=1467330825&Signature=XXX
> > Range: bytes=0-5242880
> >
> > HTTP/1.1 206 Partial Content
> > Connection: close
> > Date: Sun, 19 Jun 2016 10:12:40 GMT
> > Accept-Ranges: bytes
> > ETag: "d41d8cd98f00b204e9800998ecf8427e"
> > Server: Apache/2.4.7 (Ubuntu)
> > Content-Length: 5242881
> > Content-Range: bytes 0-5242880/0
> > Content-Type: binary/octet-stream
> > Last-Modified: Sun, 19 Jun 2016 09:51:13 GMT
> > Client-Date: Sun, 19 Jun 2016 10:12:41 GMT
> > Client-Peer: 31.31.205.50:80
> > Client-Response-Num: 1
> > X-Amz-Meta-Md5: d41d8cd98f00b204e9800998ecf8427e
> > X-Amz-Request-Id: XXX
> >
> > Without request Range everything is ok:
> >
> > GET
> >
> http://XXX/test-vsespb-1/mykey?AWSAccessKeyId=XXX&Expires=1467330825&Signature=XXX
> >
> > HTTP/1.1 200 OK
> > Connection: close
> > Date: Sun, 19 Jun 2016 10:18:58 GMT
> > Accept-Ranges: bytes
> > ETag: "d41d8cd98f00b204e9800998ecf8427e"
> > Server: Apache/2.4.7 (Ubuntu)
> > Content-Length: 0
> > Content-Type: binary/octet-stream
> > Last-Modified: Sun, 19 Jun 2016 09:51:13 GMT
> > Client-Date: Sun, 19 Jun 2016 10:18:58 GMT
> > Client-Peer: 31.31.205.50:80
> > Client-Response-Num: 1
> > X-Amz-Meta-Md5: d41d8cd98f00b204e9800998ecf8427e
> > X-Amz-Request-Id: XXX
> > _______________________________________________
> > ceph-users mailing list
> > ceph-users@lists.ceph.com
> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to