"./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Starting (try 5/5) 2021/11/13 06:40:24 DEBUG : Creating backend with remote "TestMega:rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:40:24 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2021/11/13 06:43:25 DEBUG : Creating backend with remote "/tmp/rclone1010743176" 2021/11/13 06:43:25 DEBUG : Config file has changed externaly - reloading === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:181: Remote "mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5'", Local "Local file system at /tmp/rclone1010743176", Modify Window "876000h0m0s" 2021/11/13 06:43:25 INFO : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': poll-interval is not supported by this remote 2021/11/13 06:43:25 NOTICE: mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/11/13 06:43:26 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:43:26 DEBUG : dir: Looking for writers 2021/11/13 06:43:26 DEBUG : file1: reading active writers 2021/11/13 06:43:26 DEBUG : : Looking for writers 2021/11/13 06:43:26 DEBUG : dir: reading active writers 2021/11/13 06:43:26 DEBUG : >WaitForWriters: 2021/11/13 06:43:27 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:43:27 DEBUG : newLeaf: Updating file with newLeaf 0xc000270840 2021/11/13 06:43:27 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:43:27 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:43:27 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:43:27 DEBUG : dir/file1: Updating file with dir/file1 0xc000270840 2021/11/13 06:43:27 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:43:27 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2021/11/13 06:43:34 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:43:34 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/11/13 06:43:34 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:43:34 DEBUG : dir/file1: File is currently open, delaying rename 0xc000270840 2021/11/13 06:43:34 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:43:34 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:43:34 DEBUG : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': File to upload is small (25 bytes), uploading instead of streaming 2021/11/13 06:43:35 INFO : dir/file1: Copied (new) 2021/11/13 06:43:35 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:43:35 DEBUG : newLeaf: Running delayed rename now 2021/11/13 06:43:36 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:43:36 DEBUG : newLeaf: Updating file with newLeaf 0xc000270840 2021/11/13 06:43:36 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:43:36 DEBUG : dir: Looking for writers 2021/11/13 06:43:36 DEBUG : : Looking for writers 2021/11/13 06:43:36 DEBUG : dir: reading active writers 2021/11/13 06:43:36 DEBUG : newLeaf: reading active writers 2021/11/13 06:43:36 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (25) got newLeaf (25), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:43:43 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:43:43 DEBUG : dir: Looking for writers 2021/11/13 06:43:43 DEBUG : : Looking for writers 2021/11/13 06:43:43 DEBUG : dir: reading active writers 2021/11/13 06:43:43 DEBUG : newLeaf: reading active writers 2021/11/13 06:43:43 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want got newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" === RUN TestFileRename/minimal,forceCache=false run.go:181: Remote "mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5'", Local "Local file system at /tmp/rclone1010743176", Modify Window "876000h0m0s" 2021/11/13 06:43:51 INFO : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': poll-interval is not supported by this remote 2021/11/13 06:43:51 NOTICE: mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/11/13 06:43:51 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:43:51 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:43:51 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:43:51 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:43:51 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:43:51 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:43:59 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:43:59 DEBUG : dir: Looking for writers 2021/11/13 06:43:59 DEBUG : file1: reading active writers 2021/11/13 06:43:59 DEBUG : : Looking for writers 2021/11/13 06:43:59 DEBUG : dir: reading active writers 2021/11/13 06:43:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:43:59 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:44:06 INFO : newLeaf: Deleted 2021/11/13 06:44:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:44:06 DEBUG : newLeaf: Updating file with newLeaf 0xc000bb0180 2021/11/13 06:44:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:44:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (14) got newLeaf (14), newLeaf (25) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Not equal: expected: 14 actual : 25 Test: TestFileRename/minimal,forceCache=false Messages: newLeaf: size incorrect file=14 vs obj=25 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:44:13 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:44:13 DEBUG : dir/file1: Updating file with dir/file1 0xc000bb0180 2021/11/13 06:44:13 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:44:13 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2021/11/13 06:44:20 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:44:20 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/11/13 06:44:20 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:44:20 DEBUG : dir/file1: File is currently open, delaying rename 0xc000bb0180 2021/11/13 06:44:20 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:44:20 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:44:20 DEBUG : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': File to upload is small (25 bytes), uploading instead of streaming 2021/11/13 06:44:22 INFO : dir/file1: Copied (new) 2021/11/13 06:44:22 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:44:22 DEBUG : newLeaf: Running delayed rename now 2021/11/13 06:44:22 INFO : newLeaf: Deleted 2021/11/13 06:44:22 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:44:22 DEBUG : newLeaf: Updating file with newLeaf 0xc000bb0180 2021/11/13 06:44:22 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:44:22 DEBUG : dir: Looking for writers 2021/11/13 06:44:22 DEBUG : : Looking for writers 2021/11/13 06:44:22 DEBUG : dir: reading active writers 2021/11/13 06:44:22 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:22 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (25) got newLeaf (25), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:44:29 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:44:29 DEBUG : dir: Looking for writers 2021/11/13 06:44:29 DEBUG : : Looking for writers 2021/11/13 06:44:29 DEBUG : dir: reading active writers 2021/11/13 06:44:29 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:29 DEBUG : >WaitForWriters: 2021/11/13 06:44:29 DEBUG : vfs cache: cleaner exiting fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want got newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" === RUN TestFileRename/minimal,forceCache=true run.go:181: Remote "mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5'", Local "Local file system at /tmp/rclone1010743176", Modify Window "876000h0m0s" 2021/11/13 06:44:36 INFO : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': poll-interval is not supported by this remote 2021/11/13 06:44:36 NOTICE: mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/11/13 06:44:36 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:44:36 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:44:36 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:44:36 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:44:36 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:44:36 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:44:44 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/11/13 06:44:44 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:44:44 DEBUG : dir/file1(0xc000c65240): openPending: 2021/11/13 06:44:44 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:44:44 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:44:44 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:44:44 DEBUG : dir/file1(0xc000c65240): >openPending: err= 2021/11/13 06:44:44 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:44:44 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:44:44 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:44:44 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:44:44 DEBUG : dir/file1(0xc000c65240): _writeAt: size=14, off=0 2021/11/13 06:44:44 DEBUG : dir/file1(0xc000c65240): >_writeAt: n=14, err= 2021/11/13 06:44:44 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:44:44 DEBUG : dir/file1(0xc000c65240): close: 2021/11/13 06:44:44 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:44:44 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:44:44 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/11/13 06:44:44 DEBUG : dir/file1(0xc000c65240): >close: err= 2021/11/13 06:44:44 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:44:44 DEBUG : dir: Looking for writers 2021/11/13 06:44:44 DEBUG : file1: reading active writers 2021/11/13 06:44:44 DEBUG : : Looking for writers 2021/11/13 06:44:44 DEBUG : dir: reading active writers 2021/11/13 06:44:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:44:44 DEBUG : dir: Looking for writers 2021/11/13 06:44:44 DEBUG : file1: reading active writers 2021/11/13 06:44:44 DEBUG : : Looking for writers 2021/11/13 06:44:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:44 DEBUG : dir: reading active writers 2021/11/13 06:44:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:44:44 DEBUG : dir: Looking for writers 2021/11/13 06:44:44 DEBUG : file1: reading active writers 2021/11/13 06:44:44 DEBUG : : Looking for writers 2021/11/13 06:44:44 DEBUG : dir: reading active writers 2021/11/13 06:44:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:44:44 DEBUG : dir: Looking for writers 2021/11/13 06:44:44 DEBUG : file1: reading active writers 2021/11/13 06:44:44 DEBUG : : Looking for writers 2021/11/13 06:44:44 DEBUG : dir: reading active writers 2021/11/13 06:44:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:44:44 DEBUG : dir/file1: vfs cache: starting upload 2021/11/13 06:44:44 DEBUG : dir: Looking for writers 2021/11/13 06:44:44 DEBUG : file1: reading active writers 2021/11/13 06:44:44 DEBUG : : Looking for writers 2021/11/13 06:44:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:44 DEBUG : dir: reading active writers 2021/11/13 06:44:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:44:44 DEBUG : dir: Looking for writers 2021/11/13 06:44:44 DEBUG : file1: reading active writers 2021/11/13 06:44:44 DEBUG : : Looking for writers 2021/11/13 06:44:44 DEBUG : dir: reading active writers 2021/11/13 06:44:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:44:44 DEBUG : dir: Looking for writers 2021/11/13 06:44:44 DEBUG : file1: reading active writers 2021/11/13 06:44:44 DEBUG : : Looking for writers 2021/11/13 06:44:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:44 DEBUG : dir: reading active writers 2021/11/13 06:44:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/11/13 06:44:45 INFO : dir/file1: Copied (replaced existing) 2021/11/13 06:44:45 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/11/13 06:44:45 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/11/13 06:44:45 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:44:45 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/11/13 06:44:45 DEBUG : dir: Looking for writers 2021/11/13 06:44:45 DEBUG : file1: reading active writers 2021/11/13 06:44:45 DEBUG : : Looking for writers 2021/11/13 06:44:45 DEBUG : dir: reading active writers 2021/11/13 06:44:45 DEBUG : newLeaf: reading active writers 2021/11/13 06:44:45 DEBUG : >WaitForWriters: 2021/11/13 06:44:45 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/11/13 06:44:45 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:44:45 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:44:45 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:44:45 DEBUG : dir/file1(0xc000cad500): _readAt: size=512, off=0 2021/11/13 06:44:45 DEBUG : dir/file1(0xc000cad500): openPending: 2021/11/13 06:44:45 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:44:45 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:44:45 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:44:45 DEBUG : dir/file1(0xc000cad500): >openPending: err= 2021/11/13 06:44:45 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:44:45 DEBUG : dir/file1(0xc000cad500): >_readAt: n=14, err=EOF 2021/11/13 06:44:45 DEBUG : dir/file1(0xc000cad500): close: 2021/11/13 06:44:45 DEBUG : dir/file1: vfs cache: setting modification time to 2021-11-13 06:44:44 +0000 UTC 2021/11/13 06:44:45 DEBUG : dir/file1(0xc000cad500): >close: err= fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:44:52 INFO : newLeaf: Deleted 2021/11/13 06:44:54 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:44:54 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:44:54 DEBUG : newLeaf: Updating file with newLeaf 0xc001f38e40 2021/11/13 06:44:54 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:44:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want newLeaf (14) got newLeaf (14), newLeaf (25) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Not equal: expected: 14 actual : 25 Test: TestFileRename/minimal,forceCache=true Messages: newLeaf: size incorrect file=14 vs obj=25 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:45:02 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:45:02 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/11/13 06:45:02 DEBUG : dir/file1: Updating file with dir/file1 0xc001f38e40 2021/11/13 06:45:02 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:45:02 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2021/11/13 06:45:09 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:45:09 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:45:09 DEBUG : dir/file1(0xc000ec4200): openPending: 2021/11/13 06:45:09 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:45:09 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:45:09 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:45:09 DEBUG : dir/file1(0xc000ec4200): >openPending: err= 2021/11/13 06:45:09 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:45:09 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:45:09 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:45:09 DEBUG : dir/file1(0xc000ec4200): _writeAt: size=25, off=0 2021/11/13 06:45:09 DEBUG : dir/file1(0xc000ec4200): >_writeAt: n=25, err= 2021/11/13 06:45:09 INFO : newLeaf: Deleted 2021/11/13 06:45:09 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:45:09 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:45:09 DEBUG : newLeaf: Updating file with newLeaf 0xc001f38e40 2021/11/13 06:45:09 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:45:09 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:45:09 DEBUG : newLeaf(0xc000ec4200): close: 2021/11/13 06:45:09 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:45:09 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:45:09.030402681 +0000 UTC m=+284.529705460 2021/11/13 06:45:09 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:45:09 DEBUG : newLeaf(0xc000ec4200): >close: err= 2021/11/13 06:45:09 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:45:09 DEBUG : dir: Looking for writers 2021/11/13 06:45:09 DEBUG : : Looking for writers 2021/11/13 06:45:09 DEBUG : dir: reading active writers 2021/11/13 06:45:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:45:09 DEBUG : dir: Looking for writers 2021/11/13 06:45:09 DEBUG : : Looking for writers 2021/11/13 06:45:09 DEBUG : dir: reading active writers 2021/11/13 06:45:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:45:09 DEBUG : dir: Looking for writers 2021/11/13 06:45:09 DEBUG : : Looking for writers 2021/11/13 06:45:09 DEBUG : dir: reading active writers 2021/11/13 06:45:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:45:09 DEBUG : dir: Looking for writers 2021/11/13 06:45:09 DEBUG : : Looking for writers 2021/11/13 06:45:09 DEBUG : dir: reading active writers 2021/11/13 06:45:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:45:09 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:45:09 DEBUG : dir: Looking for writers 2021/11/13 06:45:09 DEBUG : : Looking for writers 2021/11/13 06:45:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:09 DEBUG : dir: reading active writers 2021/11/13 06:45:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:45:09 DEBUG : dir: Looking for writers 2021/11/13 06:45:09 DEBUG : : Looking for writers 2021/11/13 06:45:09 DEBUG : dir: reading active writers 2021/11/13 06:45:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:45:10 DEBUG : dir: Looking for writers 2021/11/13 06:45:10 DEBUG : : Looking for writers 2021/11/13 06:45:10 DEBUG : dir: reading active writers 2021/11/13 06:45:10 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:10 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/11/13 06:45:10 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:45:10 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:45:10 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:45:10 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:45:10 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:45:10 DEBUG : dir: Looking for writers 2021/11/13 06:45:10 DEBUG : : Looking for writers 2021/11/13 06:45:10 DEBUG : dir: reading active writers 2021/11/13 06:45:10 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:10 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want newLeaf (25) got newLeaf (25), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:45:17 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:45:17 DEBUG : dir: Looking for writers 2021/11/13 06:45:17 DEBUG : : Looking for writers 2021/11/13 06:45:17 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:17 DEBUG : dir: reading active writers 2021/11/13 06:45:17 DEBUG : >WaitForWriters: 2021/11/13 06:45:17 DEBUG : vfs cache: cleaner exiting fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want got newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "newLeaf" === RUN TestFileRename/writes,forceCache=false run.go:181: Remote "mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5'", Local "Local file system at /tmp/rclone1010743176", Modify Window "876000h0m0s" 2021/11/13 06:45:27 INFO : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': poll-interval is not supported by this remote 2021/11/13 06:45:27 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:45:27 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:45:27 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:45:27 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:45:27 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:45:27 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:45:35 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:45:35 DEBUG : dir: Looking for writers 2021/11/13 06:45:35 DEBUG : file1: reading active writers 2021/11/13 06:45:35 DEBUG : : Looking for writers 2021/11/13 06:45:35 DEBUG : dir: reading active writers 2021/11/13 06:45:35 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:35 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:45:42 INFO : newLeaf: Deleted 2021/11/13 06:45:43 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:45:43 DEBUG : newLeaf: Updating file with newLeaf 0xc000270600 2021/11/13 06:45:43 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:45:43 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (14) got newLeaf (14), newLeaf (25) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Not equal: expected: 14 actual : 25 Test: TestFileRename/writes,forceCache=false Messages: newLeaf: size incorrect file=14 vs obj=25 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:45:51 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:45:51 DEBUG : dir/file1: Updating file with dir/file1 0xc000270600 2021/11/13 06:45:51 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:45:51 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2021/11/13 06:45:58 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:45:58 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:45:58 DEBUG : dir/file1(0xc000d75b00): openPending: 2021/11/13 06:45:58 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:45:58 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:45:58 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:45:58 DEBUG : dir/file1(0xc000d75b00): >openPending: err= 2021/11/13 06:45:58 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:45:58 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:45:58 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:45:58 DEBUG : dir/file1(0xc000d75b00): _writeAt: size=25, off=0 2021/11/13 06:45:58 DEBUG : dir/file1(0xc000d75b00): >_writeAt: n=25, err= 2021/11/13 06:45:58 INFO : newLeaf: Deleted 2021/11/13 06:45:59 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:45:59 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:45:59 DEBUG : newLeaf: Updating file with newLeaf 0xc000270600 2021/11/13 06:45:59 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:45:59 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:45:59 DEBUG : newLeaf(0xc000d75b00): close: 2021/11/13 06:45:59 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:45:59 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:45:58.235374969 +0000 UTC m=+333.734677728 2021/11/13 06:45:59 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:45:59 DEBUG : newLeaf(0xc000d75b00): >close: err= 2021/11/13 06:45:59 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:45:59 DEBUG : dir: Looking for writers 2021/11/13 06:45:59 DEBUG : : Looking for writers 2021/11/13 06:45:59 DEBUG : dir: reading active writers 2021/11/13 06:45:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:45:59 DEBUG : dir: Looking for writers 2021/11/13 06:45:59 DEBUG : : Looking for writers 2021/11/13 06:45:59 DEBUG : dir: reading active writers 2021/11/13 06:45:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:45:59 DEBUG : dir: Looking for writers 2021/11/13 06:45:59 DEBUG : : Looking for writers 2021/11/13 06:45:59 DEBUG : dir: reading active writers 2021/11/13 06:45:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:45:59 DEBUG : dir: Looking for writers 2021/11/13 06:45:59 DEBUG : : Looking for writers 2021/11/13 06:45:59 DEBUG : dir: reading active writers 2021/11/13 06:45:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:45:59 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:45:59 DEBUG : dir: Looking for writers 2021/11/13 06:45:59 DEBUG : : Looking for writers 2021/11/13 06:45:59 DEBUG : dir: reading active writers 2021/11/13 06:45:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:45:59 DEBUG : dir: Looking for writers 2021/11/13 06:45:59 DEBUG : : Looking for writers 2021/11/13 06:45:59 DEBUG : dir: reading active writers 2021/11/13 06:45:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:45:59 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:45:59 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:45:59 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:45:59 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:45:59 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:45:59 DEBUG : dir: Looking for writers 2021/11/13 06:45:59 DEBUG : : Looking for writers 2021/11/13 06:45:59 DEBUG : dir: reading active writers 2021/11/13 06:45:59 DEBUG : newLeaf: reading active writers 2021/11/13 06:45:59 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (25) got newLeaf (25), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:46:06 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:46:06 DEBUG : dir: Looking for writers 2021/11/13 06:46:06 DEBUG : : Looking for writers 2021/11/13 06:46:06 DEBUG : dir: reading active writers 2021/11/13 06:46:06 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:06 DEBUG : >WaitForWriters: 2021/11/13 06:46:06 DEBUG : vfs cache: cleaner exiting fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want got newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" === RUN TestFileRename/writes,forceCache=true run.go:181: Remote "mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5'", Local "Local file system at /tmp/rclone1010743176", Modify Window "876000h0m0s" 2021/11/13 06:46:14 INFO : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': poll-interval is not supported by this remote 2021/11/13 06:46:14 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:46:14 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:46:14 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:46:14 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:46:14 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:46:14 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:46:21 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/11/13 06:46:21 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:46:21 DEBUG : dir/file1(0xc0002ce040): openPending: 2021/11/13 06:46:21 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:46:21 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:46:21 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:46:21 DEBUG : dir/file1(0xc0002ce040): >openPending: err= 2021/11/13 06:46:21 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:46:21 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:46:21 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:46:21 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:46:21 DEBUG : dir/file1(0xc0002ce040): _writeAt: size=14, off=0 2021/11/13 06:46:21 DEBUG : dir/file1(0xc0002ce040): >_writeAt: n=14, err= 2021/11/13 06:46:21 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:46:21 DEBUG : dir/file1(0xc0002ce040): close: 2021/11/13 06:46:21 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:46:21 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:46:21 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/11/13 06:46:21 DEBUG : dir/file1(0xc0002ce040): >close: err= 2021/11/13 06:46:21 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:46:21 DEBUG : dir: Looking for writers 2021/11/13 06:46:21 DEBUG : file1: reading active writers 2021/11/13 06:46:21 DEBUG : : Looking for writers 2021/11/13 06:46:21 DEBUG : dir: reading active writers 2021/11/13 06:46:21 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:46:21 DEBUG : dir: Looking for writers 2021/11/13 06:46:21 DEBUG : file1: reading active writers 2021/11/13 06:46:21 DEBUG : : Looking for writers 2021/11/13 06:46:21 DEBUG : dir: reading active writers 2021/11/13 06:46:21 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:46:21 DEBUG : dir: Looking for writers 2021/11/13 06:46:21 DEBUG : file1: reading active writers 2021/11/13 06:46:21 DEBUG : : Looking for writers 2021/11/13 06:46:21 DEBUG : dir: reading active writers 2021/11/13 06:46:21 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:46:21 DEBUG : dir: Looking for writers 2021/11/13 06:46:21 DEBUG : file1: reading active writers 2021/11/13 06:46:21 DEBUG : : Looking for writers 2021/11/13 06:46:21 DEBUG : dir: reading active writers 2021/11/13 06:46:21 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:46:21 DEBUG : dir/file1: vfs cache: starting upload 2021/11/13 06:46:21 DEBUG : dir: Looking for writers 2021/11/13 06:46:21 DEBUG : file1: reading active writers 2021/11/13 06:46:21 DEBUG : : Looking for writers 2021/11/13 06:46:21 DEBUG : dir: reading active writers 2021/11/13 06:46:21 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:46:21 DEBUG : dir: Looking for writers 2021/11/13 06:46:21 DEBUG : file1: reading active writers 2021/11/13 06:46:21 DEBUG : : Looking for writers 2021/11/13 06:46:21 DEBUG : dir: reading active writers 2021/11/13 06:46:21 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:46:21 INFO : dir/file1: Copied (replaced existing) 2021/11/13 06:46:21 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/11/13 06:46:21 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/11/13 06:46:21 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:46:21 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/11/13 06:46:22 DEBUG : dir: Looking for writers 2021/11/13 06:46:22 DEBUG : file1: reading active writers 2021/11/13 06:46:22 DEBUG : : Looking for writers 2021/11/13 06:46:22 DEBUG : dir: reading active writers 2021/11/13 06:46:22 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:22 DEBUG : >WaitForWriters: 2021/11/13 06:46:22 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/11/13 06:46:22 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:46:22 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:46:22 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:46:22 DEBUG : dir/file1(0xc0002ce580): _readAt: size=512, off=0 2021/11/13 06:46:22 DEBUG : dir/file1(0xc0002ce580): openPending: 2021/11/13 06:46:22 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:46:22 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:46:22 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:46:22 DEBUG : dir/file1(0xc0002ce580): >openPending: err= 2021/11/13 06:46:22 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:46:22 DEBUG : dir/file1(0xc0002ce580): >_readAt: n=14, err=EOF 2021/11/13 06:46:22 DEBUG : dir/file1(0xc0002ce580): close: 2021/11/13 06:46:22 DEBUG : dir/file1: vfs cache: setting modification time to 2021-11-13 06:46:21 +0000 UTC 2021/11/13 06:46:22 DEBUG : dir/file1(0xc0002ce580): >close: err= fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:46:29 INFO : newLeaf: Deleted 2021/11/13 06:46:29 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:46:29 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:46:29 DEBUG : newLeaf: Updating file with newLeaf 0xc001f38b40 2021/11/13 06:46:29 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:46:29 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want newLeaf (14) got newLeaf (14), newLeaf (25) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Not equal: expected: 14 actual : 25 Test: TestFileRename/writes,forceCache=true Messages: newLeaf: size incorrect file=14 vs obj=25 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:46:36 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:46:36 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/11/13 06:46:36 DEBUG : dir/file1: Updating file with dir/file1 0xc001f38b40 2021/11/13 06:46:36 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:46:36 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2021/11/13 06:46:43 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:46:43 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:46:43 DEBUG : dir/file1(0xc00013dc40): openPending: 2021/11/13 06:46:43 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:46:43 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:46:43 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:46:43 DEBUG : dir/file1(0xc00013dc40): >openPending: err= 2021/11/13 06:46:43 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:46:43 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:46:43 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:46:43 DEBUG : dir/file1(0xc00013dc40): _writeAt: size=25, off=0 2021/11/13 06:46:43 DEBUG : dir/file1(0xc00013dc40): >_writeAt: n=25, err= 2021/11/13 06:46:43 INFO : newLeaf: Deleted 2021/11/13 06:46:44 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:46:44 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:46:44 DEBUG : newLeaf: Updating file with newLeaf 0xc001f38b40 2021/11/13 06:46:44 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:46:44 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:46:44 DEBUG : newLeaf(0xc00013dc40): close: 2021/11/13 06:46:44 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:46:44 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:46:43.793146658 +0000 UTC m=+379.292449427 2021/11/13 06:46:44 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:46:44 DEBUG : newLeaf(0xc00013dc40): >close: err= 2021/11/13 06:46:44 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:46:44 DEBUG : dir: Looking for writers 2021/11/13 06:46:44 DEBUG : : Looking for writers 2021/11/13 06:46:44 DEBUG : dir: reading active writers 2021/11/13 06:46:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:46:44 DEBUG : dir: Looking for writers 2021/11/13 06:46:44 DEBUG : : Looking for writers 2021/11/13 06:46:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:44 DEBUG : dir: reading active writers 2021/11/13 06:46:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:46:44 DEBUG : dir: Looking for writers 2021/11/13 06:46:44 DEBUG : : Looking for writers 2021/11/13 06:46:44 DEBUG : dir: reading active writers 2021/11/13 06:46:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:46:44 DEBUG : dir: Looking for writers 2021/11/13 06:46:44 DEBUG : : Looking for writers 2021/11/13 06:46:44 DEBUG : dir: reading active writers 2021/11/13 06:46:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:46:44 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:46:44 DEBUG : dir: Looking for writers 2021/11/13 06:46:44 DEBUG : : Looking for writers 2021/11/13 06:46:44 DEBUG : dir: reading active writers 2021/11/13 06:46:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:46:44 DEBUG : dir: Looking for writers 2021/11/13 06:46:44 DEBUG : : Looking for writers 2021/11/13 06:46:44 DEBUG : dir: reading active writers 2021/11/13 06:46:44 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:46:45 DEBUG : dir: Looking for writers 2021/11/13 06:46:45 DEBUG : : Looking for writers 2021/11/13 06:46:45 DEBUG : dir: reading active writers 2021/11/13 06:46:45 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:45 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/11/13 06:46:45 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:46:45 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:46:45 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:46:45 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:46:45 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:46:45 DEBUG : dir: Looking for writers 2021/11/13 06:46:45 DEBUG : : Looking for writers 2021/11/13 06:46:45 DEBUG : dir: reading active writers 2021/11/13 06:46:45 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:45 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want newLeaf (25) got newLeaf (25), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "newLeaf" 2021/11/13 06:46:52 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:46:52 DEBUG : dir: Looking for writers 2021/11/13 06:46:52 DEBUG : : Looking for writers 2021/11/13 06:46:52 DEBUG : dir: reading active writers 2021/11/13 06:46:52 DEBUG : newLeaf: reading active writers 2021/11/13 06:46:52 DEBUG : >WaitForWriters: 2021/11/13 06:46:52 DEBUG : vfs cache: cleaner exiting fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want got newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "newLeaf" === RUN TestFileRename/full,forceCache=false run.go:181: Remote "mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5'", Local "Local file system at /tmp/rclone1010743176", Modify Window "876000h0m0s" 2021/11/13 06:47:00 INFO : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': poll-interval is not supported by this remote 2021/11/13 06:47:00 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:47:00 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:47:00 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:47:00 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:47:00 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-yuxihoc1ronoboq9yaquvib5" 2021/11/13 06:47:00 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:27 file_test.go:306 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:47:08 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:47:08 DEBUG : dir: Looking for writers 2021/11/13 06:47:08 DEBUG : file1: reading active writers 2021/11/13 06:47:08 DEBUG : : Looking for writers 2021/11/13 06:47:08 DEBUG : dir: reading active writers 2021/11/13 06:47:08 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:08 DEBUG : >WaitForWriters: 2021/11/13 06:47:08 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/11/13 06:47:08 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:47:08 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:47:08 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:47:08 DEBUG : dir/file1(0xc000371640): _readAt: size=512, off=0 2021/11/13 06:47:08 DEBUG : dir/file1(0xc000371640): openPending: 2021/11/13 06:47:08 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:47:08 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:47:08 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:47:08 DEBUG : dir/file1(0xc000371640): >openPending: err= 2021/11/13 06:47:08 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2021/11/13 06:47:08 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2021/11/13 06:47:08 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2021/11/13 06:47:08 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2021/11/13 06:47:09 DEBUG : dir/file1(0xc000371640): >_readAt: n=14, err=EOF 2021/11/13 06:47:09 DEBUG : dir/file1(0xc000371640): close: 2021/11/13 06:47:09 DEBUG : dir/file1: vfs cache: setting modification time to 2021-11-13 06:47:00 +0000 UTC 2021/11/13 06:47:09 DEBUG : dir/file1(0xc000371640): >close: err= fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:343 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:47:16 INFO : newLeaf: Deleted 2021/11/13 06:47:16 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:47:16 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:47:16 DEBUG : newLeaf: Updating file with newLeaf 0xc001f39440 2021/11/13 06:47:16 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:47:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want newLeaf (14) got newLeaf (14), newLeaf (25) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Not equal: expected: 14 actual : 25 Test: TestFileRename/full,forceCache=false Messages: newLeaf: size incorrect file=14 vs obj=25 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:47:24 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:47:24 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/11/13 06:47:24 DEBUG : dir/file1: Updating file with dir/file1 0xc001f39440 2021/11/13 06:47:24 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:47:24 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2021/11/13 06:47:31 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:47:31 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:47:31 DEBUG : dir/file1(0xc0003705c0): openPending: 2021/11/13 06:47:31 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:47:31 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:47:31 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:47:31 DEBUG : dir/file1(0xc0003705c0): >openPending: err= 2021/11/13 06:47:31 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:47:31 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:47:31 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:47:31 DEBUG : dir/file1(0xc0003705c0): _writeAt: size=25, off=0 2021/11/13 06:47:31 DEBUG : dir/file1(0xc0003705c0): >_writeAt: n=25, err= 2021/11/13 06:47:31 INFO : newLeaf: Deleted 2021/11/13 06:47:32 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:47:32 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:47:32 DEBUG : newLeaf: Updating file with newLeaf 0xc001f39440 2021/11/13 06:47:32 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:47:32 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:47:32 DEBUG : newLeaf(0xc0003705c0): close: 2021/11/13 06:47:32 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:47:32 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:47:31.702307549 +0000 UTC m=+427.201610309 2021/11/13 06:47:32 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:47:32 DEBUG : newLeaf(0xc0003705c0): >close: err= 2021/11/13 06:47:32 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:47:32 DEBUG : dir: Looking for writers 2021/11/13 06:47:32 DEBUG : : Looking for writers 2021/11/13 06:47:32 DEBUG : dir: reading active writers 2021/11/13 06:47:32 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:47:32 DEBUG : dir: Looking for writers 2021/11/13 06:47:32 DEBUG : : Looking for writers 2021/11/13 06:47:32 DEBUG : dir: reading active writers 2021/11/13 06:47:32 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:47:32 DEBUG : dir: Looking for writers 2021/11/13 06:47:32 DEBUG : : Looking for writers 2021/11/13 06:47:32 DEBUG : dir: reading active writers 2021/11/13 06:47:32 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:47:32 DEBUG : dir: Looking for writers 2021/11/13 06:47:32 DEBUG : : Looking for writers 2021/11/13 06:47:32 DEBUG : dir: reading active writers 2021/11/13 06:47:32 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:47:32 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:47:32 DEBUG : dir: Looking for writers 2021/11/13 06:47:32 DEBUG : : Looking for writers 2021/11/13 06:47:32 DEBUG : dir: reading active writers 2021/11/13 06:47:32 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:47:32 DEBUG : dir: Looking for writers 2021/11/13 06:47:32 DEBUG : : Looking for writers 2021/11/13 06:47:32 DEBUG : dir: reading active writers 2021/11/13 06:47:32 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:47:32 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:47:32 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:47:32 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:47:32 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:47:32 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:47:33 DEBUG : dir: Looking for writers 2021/11/13 06:47:33 DEBUG : : Looking for writers 2021/11/13 06:47:33 DEBUG : dir: reading active writers 2021/11/13 06:47:33 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:33 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want newLeaf (25) got newLeaf (25), newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 file_test.go:401 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "newLeaf" 2021/11/13 06:47:40 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:47:40 DEBUG : dir: Looking for writers 2021/11/13 06:47:40 DEBUG : : Looking for writers 2021/11/13 06:47:40 DEBUG : dir: reading active writers 2021/11/13 06:47:40 DEBUG : newLeaf: reading active writers 2021/11/13 06:47:40 DEBUG : >WaitForWriters: 2021/11/13 06:47:40 DEBUG : vfs cache: cleaner exiting fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want got newLeaf (25) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 file_test.go:402 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "newLeaf" --- FAIL: TestFileRename (262.61s) --- FAIL: TestFileRename/off,forceCache=false (25.86s) --- FAIL: TestFileRename/minimal,forceCache=false (45.72s) --- FAIL: TestFileRename/minimal,forceCache=true (50.30s) --- FAIL: TestFileRename/writes,forceCache=false (46.99s) --- FAIL: TestFileRename/writes,forceCache=true (46.23s) --- FAIL: TestFileRename/full,forceCache=false (47.51s) FAIL 2021/11/13 06:47:47 DEBUG : mega root 'rclone-test-yuxihoc1ronoboq9yaquvib5': Purge remote "./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Finished ERROR in 7m24.228040547s (try 5/5): exit status 1: Failed [TestFileRename/off,forceCache=false TestFileRename/minimal,forceCache=false TestFileRename/minimal,forceCache=true TestFileRename/writes,forceCache=false TestFileRename/writes,forceCache=true TestFileRename/full,forceCache=false]