Vitali
05/06/2022, 12:46 AMVitali
05/06/2022, 3:17 AMVitali
05/06/2022, 3:17 AMboywithkeyboard
05/06/2022, 8:52 AMkian
05/06/2022, 8:58 AMncw
05/06/2022, 10:38 AMregion
then the aws SDK sends an empty body which makes creating buckets not work.
I'll give the integration tests a whirl now
2022/05/06 11:32:32 DEBUG : HTTP REQUEST (req 0xc000304400)
2022/05/06 11:32:32 DEBUG : PUT /rclone-test-jozibay2rojeveb1yejakiq4 HTTP/1.1
Host: 14aad7c9ed489151b51557e321b246cf.r2.cloudflarestorage.com
User-Agent: rclone/v1.59.0-DEV
Content-Length: 0
Authorization: XXXX
X-Amz-Acl: private
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20220506T103232Z
Accept-Encoding: gzip
Response
2022/05/06 11:32:32 DEBUG : HTTP RESPONSE (req 0xc000304400)
2022/05/06 11:32:32 DEBUG : HTTP/2.0 400 Bad Request
Content-Length: 149
Cf-Ray: 70710d741f867509-LHR
Content-Type: application/xml
Date: Fri, 06 May 2022 10:32:32 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
Vary: Accept-Encoding
<Error><Code>MalformedXML</Code><Message>The XML you provided was not well formed or did not validate against our published schema.</Message></Error>
ncw
05/06/2022, 10:52 AMErisa | Support Engineer
05/06/2022, 12:03 PMPlotzes
05/06/2022, 12:26 PMPlotzes
05/06/2022, 12:26 PMkian
05/06/2022, 12:27 PMstrongly consistent
in this channel - there's lots of good answers. KV is eventually consistent whereas R2 is strongly consistent.
https://discord.com/channels/595317990191398933/940663374377783388/963515574187622420Plotzes
05/06/2022, 12:27 PMadaptive
05/06/2022, 12:34 PMErisa | Support Engineer
05/06/2022, 12:36 PMErisa | Support Engineer
05/06/2022, 12:36 PMkian
05/06/2022, 12:43 PMwrangler kv
hahakian
05/06/2022, 12:43 PMadaptive
05/06/2022, 12:47 PMadaptive
05/06/2022, 12:47 PMMarcelino Franchini
05/06/2022, 12:47 PMadaptive
05/06/2022, 12:50 PMncw
05/06/2022, 12:54 PMTestIntegration/FsMkdir/FsPutFiles/ObjectOpenSeek
- is Range failure as before, but shouldn't be there still - me to fix
- TestIntegration/FsMkdir/FsPutFiles/SetTier
is expected
- TestMultithreadCopy/{size:131073_streams:2}
is a new one - see below
- TestCopyFileMaxTransfer
is a left over from my PutObject
patch - me to fix
The new failure is rclone trying to read the last byte of a file using a Range request so I think there is an off by one in the Range
checking; Ranges
are (inclusive,inclusive) not (inclusive,exclusive) like everything else in the entire world which must surely be a cause of a lot of bugs!
This is reading a 131073 byte file
2022/05/06 13:46:49 DEBUG : HTTP REQUEST (req 0xc000a4a000)
2022/05/06 13:46:49 DEBUG : GET /rclone-test-yuqaten6kulabay0lurevex8/file1 HTTP/1.1
Host: 14aad7c9ed489151b51557e321b246cf.r2.cloudflarestorage.com
User-Agent: rclone/v1.59.0-DEV
Authorization: XXXX
Range: bytes=131072-131072
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20220506T124649Z
Response
2022/05/06 13:46:49 DEBUG : HTTP RESPONSE (req 0xc000a4a000)
2022/05/06 13:46:49 DEBUG : HTTP/2.0 400 Bad Request
Content-Length: 109
Cf-Ray: 7071d2257c738926-LHR
Content-Type: application/xml
Date: Fri, 06 May 2022 12:46:49 GMT
Expect-Ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
<Error><Code>InvalidArgument</Code><Message>Invalid Argument: range range must be positive.</Message></Error>
This is easy to replicate with
rclone cat -vv --tail 1 --low-level-retries 1 --retries 1 r2:rclone/file.txt --dump bodies
ncw
05/06/2022, 1:51 PMJames
05/06/2022, 2:22 PMJacob | Pages
05/06/2022, 5:29 PMVitali
05/06/2022, 5:35 PMVitali
05/06/2022, 5:35 PM0-0
range problem.Vitali
05/06/2022, 5:35 PMkristian
05/06/2022, 6:07 PM