"./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 3/5) 2021/03/04 05:56:10 DEBUG : Creating backend with remote "TestMega:rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:58:29 DEBUG : Creating backend with remote "/tmp/rclone367934735" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:176: Remote "mega root 'rclone-test-faxagit6dobodol7xayewuj5'", Local "Local file system at /tmp/rclone367934735", Modify Window "876000h0m0s" 2021/03/04 05:58:29 INFO : mega root 'rclone-test-faxagit6dobodol7xayewuj5': poll-interval is not supported by this remote 2021/03/04 05:58:29 NOTICE: mega root 'rclone-test-faxagit6dobodol7xayewuj5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/03/04 05:58:29 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:58:29 DEBUG : dir: Looking for writers 2021/03/04 05:58:29 DEBUG : file1: reading active writers 2021/03/04 05:58:29 DEBUG : : Looking for writers 2021/03/04 05:58:29 DEBUG : dir: reading active writers 2021/03/04 05:58:29 DEBUG : >WaitForWriters: 2021/03/04 05:58:29 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:58:29 DEBUG : newLeaf: Updating file with newLeaf 0xc000a28300 2021/03/04 05:58:29 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:58:29 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2021/03/04 05:58:37 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/04 05:58:37 DEBUG : dir/file1: Updating file with dir/file1 0xc000a28300 2021/03/04 05:58:37 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/04 05:58:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2021/03/04 05:58:44 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/04 05:58:44 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/03/04 05:58:44 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:58:44 DEBUG : dir/file1: File is currently open, delaying rename 0xc000a28300 2021/03/04 05:58:44 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:58:44 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:58:44 DEBUG : mega root 'rclone-test-faxagit6dobodol7xayewuj5': File to upload is small (25 bytes), uploading instead of streaming 2021/03/04 05:58:46 INFO : dir/file1: Copied (new) 2021/03/04 05:58:46 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:58:46 DEBUG : newLeaf: Running delayed rename now 2021/03/04 05:58:46 INFO : newLeaf: Deleted 2021/03/04 05:58:46 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:58:46 DEBUG : newLeaf: Updating file with newLeaf 0xc000a28300 2021/03/04 05:58:46 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:58:46 DEBUG : dir: Looking for writers 2021/03/04 05:58:46 DEBUG : : Looking for writers 2021/03/04 05:58:46 DEBUG : dir: reading active writers 2021/03/04 05:58:46 DEBUG : newLeaf: reading active writers 2021/03/04 05:58:46 DEBUG : >WaitForWriters: 2021/03/04 05:58:46 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:58:46 DEBUG : dir: Looking for writers 2021/03/04 05:58:46 DEBUG : : Looking for writers 2021/03/04 05:58:46 DEBUG : dir: reading active writers 2021/03/04 05:58:46 DEBUG : newLeaf: reading active writers 2021/03/04 05:58:46 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:176: Remote "mega root 'rclone-test-faxagit6dobodol7xayewuj5'", Local "Local file system at /tmp/rclone367934735", Modify Window "876000h0m0s" 2021/03/04 05:58:48 INFO : mega root 'rclone-test-faxagit6dobodol7xayewuj5': poll-interval is not supported by this remote 2021/03/04 05:58:48 NOTICE: mega root 'rclone-test-faxagit6dobodol7xayewuj5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/03/04 05:58:48 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:58:48 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:58:48 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:58:48 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/04 05:58:52 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:58:52 DEBUG : dir: Looking for writers 2021/03/04 05:58:52 DEBUG : file1: reading active writers 2021/03/04 05:58:52 DEBUG : : Looking for writers 2021/03/04 05:58:52 DEBUG : dir: reading active writers 2021/03/04 05:58:52 DEBUG : >WaitForWriters: 2021/03/04 05:58:52 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:58:52 DEBUG : newLeaf: Updating file with newLeaf 0xc000a28fc0 2021/03/04 05:58:52 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:58:52 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "file1" 2021/03/04 05:59:00 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/04 05:59:00 DEBUG : dir/file1: Updating file with dir/file1 0xc000a28fc0 2021/03/04 05:59:00 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/04 05:59:00 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2021/03/04 05:59:07 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/04 05:59:07 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/03/04 05:59:07 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:07 DEBUG : dir/file1: File is currently open, delaying rename 0xc000a28fc0 2021/03/04 05:59:07 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:59:07 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:07 DEBUG : mega root 'rclone-test-faxagit6dobodol7xayewuj5': File to upload is small (25 bytes), uploading instead of streaming 2021/03/04 05:59:07 INFO : dir/file1: Copied (new) 2021/03/04 05:59:07 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:07 DEBUG : newLeaf: Running delayed rename now 2021/03/04 05:59:07 INFO : newLeaf: Deleted 2021/03/04 05:59:09 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:59:09 DEBUG : newLeaf: Updating file with newLeaf 0xc000a28fc0 2021/03/04 05:59:09 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:09 DEBUG : dir: Looking for writers 2021/03/04 05:59:09 DEBUG : : Looking for writers 2021/03/04 05:59:09 DEBUG : dir: reading active writers 2021/03/04 05:59:09 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:09 DEBUG : >WaitForWriters: 2021/03/04 05:59:09 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:09 DEBUG : dir: Looking for writers 2021/03/04 05:59:09 DEBUG : : Looking for writers 2021/03/04 05:59:09 DEBUG : dir: reading active writers 2021/03/04 05:59:09 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:09 DEBUG : >WaitForWriters: 2021/03/04 05:59:09 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:176: Remote "mega root 'rclone-test-faxagit6dobodol7xayewuj5'", Local "Local file system at /tmp/rclone367934735", Modify Window "876000h0m0s" 2021/03/04 05:59:09 INFO : mega root 'rclone-test-faxagit6dobodol7xayewuj5': poll-interval is not supported by this remote 2021/03/04 05:59:09 NOTICE: mega root 'rclone-test-faxagit6dobodol7xayewuj5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/03/04 05:59:09 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:09 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:09 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:09 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/04 05:59:11 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/03/04 05:59:11 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:11 DEBUG : dir/file1(0xc000d29f00): openPending: 2021/03/04 05:59:11 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/04 05:59:11 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:11 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:11 DEBUG : dir/file1(0xc000d29f00): >openPending: err= 2021/03/04 05:59:11 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/04 05:59:11 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:11 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:11 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:11 DEBUG : dir/file1(0xc000d29f00): _writeAt: size=14, off=0 2021/03/04 05:59:11 DEBUG : dir/file1(0xc000d29f00): >_writeAt: n=14, err= 2021/03/04 05:59:11 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/04 05:59:11 DEBUG : dir/file1(0xc000d29f00): close: 2021/03/04 05:59:11 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/04 05:59:11 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/04 05:59:11 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/03/04 05:59:11 DEBUG : dir/file1(0xc000d29f00): >close: err= 2021/03/04 05:59:11 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:11 DEBUG : dir: Looking for writers 2021/03/04 05:59:11 DEBUG : file1: reading active writers 2021/03/04 05:59:11 DEBUG : : Looking for writers 2021/03/04 05:59:11 DEBUG : dir: reading active writers 2021/03/04 05:59:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/04 05:59:11 DEBUG : dir: Looking for writers 2021/03/04 05:59:11 DEBUG : file1: reading active writers 2021/03/04 05:59:11 DEBUG : : Looking for writers 2021/03/04 05:59:11 DEBUG : dir: reading active writers 2021/03/04 05:59:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/04 05:59:11 DEBUG : dir: Looking for writers 2021/03/04 05:59:11 DEBUG : file1: reading active writers 2021/03/04 05:59:11 DEBUG : : Looking for writers 2021/03/04 05:59:11 DEBUG : dir: reading active writers 2021/03/04 05:59:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/04 05:59:12 DEBUG : dir: Looking for writers 2021/03/04 05:59:12 DEBUG : file1: reading active writers 2021/03/04 05:59:12 DEBUG : : Looking for writers 2021/03/04 05:59:12 DEBUG : dir: reading active writers 2021/03/04 05:59:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/04 05:59:12 DEBUG : dir/file1: vfs cache: starting upload 2021/03/04 05:59:12 DEBUG : dir: Looking for writers 2021/03/04 05:59:12 DEBUG : file1: reading active writers 2021/03/04 05:59:12 DEBUG : : Looking for writers 2021/03/04 05:59:12 DEBUG : dir: reading active writers 2021/03/04 05:59:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/04 05:59:12 DEBUG : dir: Looking for writers 2021/03/04 05:59:12 DEBUG : file1: reading active writers 2021/03/04 05:59:12 DEBUG : : Looking for writers 2021/03/04 05:59:12 DEBUG : dir: reading active writers 2021/03/04 05:59:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/04 05:59:12 INFO : dir/file1: Copied (replaced existing) 2021/03/04 05:59:12 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/03/04 05:59:12 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:12 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/03/04 05:59:12 DEBUG : dir: Looking for writers 2021/03/04 05:59:12 DEBUG : file1: reading active writers 2021/03/04 05:59:12 DEBUG : : Looking for writers 2021/03/04 05:59:12 DEBUG : dir: reading active writers 2021/03/04 05:59:12 DEBUG : >WaitForWriters: 2021/03/04 05:59:12 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/03/04 05:59:12 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:12 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:12 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:12 DEBUG : dir/file1(0xc000f44700): _readAt: size=512, off=0 2021/03/04 05:59:12 DEBUG : dir/file1(0xc000f44700): openPending: 2021/03/04 05:59:12 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/04 05:59:12 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:12 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:12 DEBUG : dir/file1(0xc000f44700): >openPending: err= 2021/03/04 05:59:12 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/04 05:59:12 DEBUG : dir/file1(0xc000f44700): >_readAt: n=14, err=EOF 2021/03/04 05:59:12 DEBUG : dir/file1(0xc000f44700): close: 2021/03/04 05:59:12 DEBUG : dir/file1: vfs cache: setting modification time to 2021-03-04 05:59:12 +0000 UTC 2021/03/04 05:59:12 DEBUG : dir/file1(0xc000f44700): >close: err= 2021/03/04 05:59:12 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:59:12 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/04 05:59:12 DEBUG : newLeaf: Updating file with newLeaf 0xc000a29680 2021/03/04 05:59:12 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:59:12 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:12 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/04 05:59:12 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/03/04 05:59:12 DEBUG : dir/file1: Updating file with dir/file1 0xc000a29680 2021/03/04 05:59:12 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/04 05:59:12 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2021/03/04 05:59:19 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/04 05:59:19 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:19 DEBUG : dir/file1(0xc000e4d880): openPending: 2021/03/04 05:59:19 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/04 05:59:19 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:19 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:19 DEBUG : dir/file1(0xc000e4d880): >openPending: err= 2021/03/04 05:59:19 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/04 05:59:19 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:19 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:19 DEBUG : dir/file1(0xc000e4d880): _writeAt: size=25, off=0 2021/03/04 05:59:19 DEBUG : dir/file1(0xc000e4d880): >_writeAt: n=25, err= 2021/03/04 05:59:20 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:59:20 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/04 05:59:20 DEBUG : newLeaf: Updating file with newLeaf 0xc000a29680 2021/03/04 05:59:20 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:59:20 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:20 DEBUG : newLeaf(0xc000e4d880): close: 2021/03/04 05:59:20 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/04 05:59:20 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-04 05:59:19.999056256 +0000 UTC m=+189.754555742 2021/03/04 05:59:20 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/04 05:59:20 DEBUG : newLeaf(0xc000e4d880): >close: err= 2021/03/04 05:59:20 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:20 DEBUG : dir: Looking for writers 2021/03/04 05:59:20 DEBUG : : Looking for writers 2021/03/04 05:59:20 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:20 DEBUG : dir: reading active writers 2021/03/04 05:59:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/04 05:59:20 DEBUG : dir: Looking for writers 2021/03/04 05:59:20 DEBUG : : Looking for writers 2021/03/04 05:59:20 DEBUG : dir: reading active writers 2021/03/04 05:59:20 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/04 05:59:20 DEBUG : dir: Looking for writers 2021/03/04 05:59:20 DEBUG : : Looking for writers 2021/03/04 05:59:20 DEBUG : dir: reading active writers 2021/03/04 05:59:20 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/04 05:59:20 DEBUG : dir: Looking for writers 2021/03/04 05:59:20 DEBUG : : Looking for writers 2021/03/04 05:59:20 DEBUG : dir: reading active writers 2021/03/04 05:59:20 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/04 05:59:20 DEBUG : newLeaf: vfs cache: starting upload 2021/03/04 05:59:20 DEBUG : dir: Looking for writers 2021/03/04 05:59:20 DEBUG : : Looking for writers 2021/03/04 05:59:20 DEBUG : dir: reading active writers 2021/03/04 05:59:20 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/04 05:59:20 INFO : newLeaf: Copied (replaced existing) 2021/03/04 05:59:20 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/04 05:59:20 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/04 05:59:20 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:20 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/04 05:59:20 DEBUG : dir: Looking for writers 2021/03/04 05:59:20 DEBUG : : Looking for writers 2021/03/04 05:59:20 DEBUG : dir: reading active writers 2021/03/04 05:59:20 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:20 DEBUG : >WaitForWriters: fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:291: Sleeping for 6s just to make sure 2021/03/04 05:59:27 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:27 DEBUG : dir: Looking for writers 2021/03/04 05:59:27 DEBUG : : Looking for writers 2021/03/04 05:59:27 DEBUG : dir: reading active writers 2021/03/04 05:59:27 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:27 DEBUG : >WaitForWriters: 2021/03/04 05:59:27 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:176: Remote "mega root 'rclone-test-faxagit6dobodol7xayewuj5'", Local "Local file system at /tmp/rclone367934735", Modify Window "876000h0m0s" 2021/03/04 05:59:27 INFO : mega root 'rclone-test-faxagit6dobodol7xayewuj5': poll-interval is not supported by this remote 2021/03/04 05:59:27 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:27 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:27 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:27 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/04 05:59:27 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:27 DEBUG : dir: Looking for writers 2021/03/04 05:59:27 DEBUG : file1: reading active writers 2021/03/04 05:59:27 DEBUG : : Looking for writers 2021/03/04 05:59:27 DEBUG : dir: reading active writers 2021/03/04 05:59:27 DEBUG : >WaitForWriters: 2021/03/04 05:59:28 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:59:28 DEBUG : newLeaf: Updating file with newLeaf 0xc000ea6c00 2021/03/04 05:59:28 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:59:28 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "file1" 2021/03/04 05:59:35 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/04 05:59:35 DEBUG : dir/file1: Updating file with dir/file1 0xc000ea6c00 2021/03/04 05:59:35 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/04 05:59:35 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2021/03/04 05:59:42 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/04 05:59:42 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:42 DEBUG : dir/file1(0xc000ffaa40): openPending: 2021/03/04 05:59:42 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/04 05:59:42 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:42 DEBUG : dir/file1(0xc000ffaa40): >openPending: err= 2021/03/04 05:59:42 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/04 05:59:42 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:42 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:42 DEBUG : dir/file1(0xc000ffaa40): _writeAt: size=25, off=0 2021/03/04 05:59:42 DEBUG : dir/file1(0xc000ffaa40): >_writeAt: n=25, err= 2021/03/04 05:59:42 INFO : newLeaf: Deleted 2021/03/04 05:59:43 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:59:43 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/04 05:59:43 DEBUG : newLeaf: Updating file with newLeaf 0xc000ea6c00 2021/03/04 05:59:43 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:59:43 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:43 DEBUG : newLeaf(0xc000ffaa40): close: 2021/03/04 05:59:43 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/04 05:59:43 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-04 05:59:42.762623749 +0000 UTC m=+212.518123246 2021/03/04 05:59:43 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/04 05:59:43 DEBUG : newLeaf(0xc000ffaa40): >close: err= 2021/03/04 05:59:43 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:43 DEBUG : dir: Looking for writers 2021/03/04 05:59:43 DEBUG : : Looking for writers 2021/03/04 05:59:43 DEBUG : dir: reading active writers 2021/03/04 05:59:43 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/04 05:59:43 DEBUG : dir: Looking for writers 2021/03/04 05:59:43 DEBUG : : Looking for writers 2021/03/04 05:59:43 DEBUG : dir: reading active writers 2021/03/04 05:59:43 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/04 05:59:43 DEBUG : dir: Looking for writers 2021/03/04 05:59:43 DEBUG : : Looking for writers 2021/03/04 05:59:43 DEBUG : dir: reading active writers 2021/03/04 05:59:43 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/04 05:59:43 DEBUG : dir: Looking for writers 2021/03/04 05:59:43 DEBUG : : Looking for writers 2021/03/04 05:59:43 DEBUG : dir: reading active writers 2021/03/04 05:59:43 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/04 05:59:43 DEBUG : newLeaf: vfs cache: starting upload 2021/03/04 05:59:43 DEBUG : dir: Looking for writers 2021/03/04 05:59:43 DEBUG : : Looking for writers 2021/03/04 05:59:43 DEBUG : dir: reading active writers 2021/03/04 05:59:43 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/04 05:59:43 DEBUG : dir: Looking for writers 2021/03/04 05:59:43 DEBUG : : Looking for writers 2021/03/04 05:59:43 DEBUG : dir: reading active writers 2021/03/04 05:59:43 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/04 05:59:43 DEBUG : dir: Looking for writers 2021/03/04 05:59:43 DEBUG : : Looking for writers 2021/03/04 05:59:43 DEBUG : dir: reading active writers 2021/03/04 05:59:43 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/03/04 05:59:44 DEBUG : dir: Looking for writers 2021/03/04 05:59:44 DEBUG : : Looking for writers 2021/03/04 05:59:44 DEBUG : dir: reading active writers 2021/03/04 05:59:44 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/03/04 05:59:45 DEBUG : dir: Looking for writers 2021/03/04 05:59:45 DEBUG : : Looking for writers 2021/03/04 05:59:45 DEBUG : dir: reading active writers 2021/03/04 05:59:45 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:45 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/03/04 05:59:45 INFO : newLeaf: Copied (replaced existing) 2021/03/04 05:59:45 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/04 05:59:45 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/04 05:59:45 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:45 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/04 05:59:46 DEBUG : dir: Looking for writers 2021/03/04 05:59:46 DEBUG : : Looking for writers 2021/03/04 05:59:46 DEBUG : dir: reading active writers 2021/03/04 05:59:46 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:46 DEBUG : >WaitForWriters: 2021/03/04 05:59:46 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:46 DEBUG : dir: Looking for writers 2021/03/04 05:59:46 DEBUG : : Looking for writers 2021/03/04 05:59:46 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:46 DEBUG : dir: reading active writers 2021/03/04 05:59:46 DEBUG : >WaitForWriters: 2021/03/04 05:59:46 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:176: Remote "mega root 'rclone-test-faxagit6dobodol7xayewuj5'", Local "Local file system at /tmp/rclone367934735", Modify Window "876000h0m0s" 2021/03/04 05:59:46 INFO : mega root 'rclone-test-faxagit6dobodol7xayewuj5': poll-interval is not supported by this remote 2021/03/04 05:59:46 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:46 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:46 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:46 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/04 05:59:46 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/03/04 05:59:46 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:46 DEBUG : dir/file1(0xc0010b7cc0): openPending: 2021/03/04 05:59:46 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/04 05:59:46 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:46 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:46 DEBUG : dir/file1(0xc0010b7cc0): >openPending: err= 2021/03/04 05:59:46 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/04 05:59:46 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:46 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:46 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:46 DEBUG : dir/file1(0xc0010b7cc0): _writeAt: size=14, off=0 2021/03/04 05:59:46 DEBUG : dir/file1(0xc0010b7cc0): >_writeAt: n=14, err= 2021/03/04 05:59:46 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/04 05:59:46 DEBUG : dir/file1(0xc0010b7cc0): close: 2021/03/04 05:59:46 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/04 05:59:46 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/04 05:59:46 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/03/04 05:59:46 DEBUG : dir/file1(0xc0010b7cc0): >close: err= 2021/03/04 05:59:46 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:46 DEBUG : dir: Looking for writers 2021/03/04 05:59:46 DEBUG : file1: reading active writers 2021/03/04 05:59:46 DEBUG : : Looking for writers 2021/03/04 05:59:46 DEBUG : dir: reading active writers 2021/03/04 05:59:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/04 05:59:46 DEBUG : dir: Looking for writers 2021/03/04 05:59:46 DEBUG : file1: reading active writers 2021/03/04 05:59:46 DEBUG : : Looking for writers 2021/03/04 05:59:46 DEBUG : dir: reading active writers 2021/03/04 05:59:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/04 05:59:46 DEBUG : dir: Looking for writers 2021/03/04 05:59:46 DEBUG : file1: reading active writers 2021/03/04 05:59:46 DEBUG : : Looking for writers 2021/03/04 05:59:46 DEBUG : dir: reading active writers 2021/03/04 05:59:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/04 05:59:46 DEBUG : dir: Looking for writers 2021/03/04 05:59:46 DEBUG : file1: reading active writers 2021/03/04 05:59:46 DEBUG : : Looking for writers 2021/03/04 05:59:46 DEBUG : dir: reading active writers 2021/03/04 05:59:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/04 05:59:46 DEBUG : dir/file1: vfs cache: starting upload 2021/03/04 05:59:46 DEBUG : dir: Looking for writers 2021/03/04 05:59:46 DEBUG : file1: reading active writers 2021/03/04 05:59:46 DEBUG : : Looking for writers 2021/03/04 05:59:46 DEBUG : dir: reading active writers 2021/03/04 05:59:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/04 05:59:47 INFO : dir/file1: Copied (replaced existing) 2021/03/04 05:59:47 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/03/04 05:59:47 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:47 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/03/04 05:59:47 DEBUG : dir: Looking for writers 2021/03/04 05:59:47 DEBUG : file1: reading active writers 2021/03/04 05:59:47 DEBUG : : Looking for writers 2021/03/04 05:59:47 DEBUG : dir: reading active writers 2021/03/04 05:59:47 DEBUG : >WaitForWriters: 2021/03/04 05:59:47 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/03/04 05:59:47 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:47 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:47 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:47 DEBUG : dir/file1(0xc0013d65c0): _readAt: size=512, off=0 2021/03/04 05:59:47 DEBUG : dir/file1(0xc0013d65c0): openPending: 2021/03/04 05:59:47 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/04 05:59:47 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:47 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:47 DEBUG : dir/file1(0xc0013d65c0): >openPending: err= 2021/03/04 05:59:47 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/04 05:59:47 DEBUG : dir/file1(0xc0013d65c0): >_readAt: n=14, err=EOF 2021/03/04 05:59:47 DEBUG : dir/file1(0xc0013d65c0): close: 2021/03/04 05:59:47 DEBUG : dir/file1: vfs cache: setting modification time to 2021-03-04 05:59:46 +0000 UTC 2021/03/04 05:59:47 DEBUG : dir/file1(0xc0013d65c0): >close: err= 2021/03/04 05:59:47 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:59:47 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/04 05:59:47 DEBUG : newLeaf: Updating file with newLeaf 0xc000ea7200 2021/03/04 05:59:47 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:59:47 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:47 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/04 05:59:47 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/03/04 05:59:47 DEBUG : dir/file1: Updating file with dir/file1 0xc000ea7200 2021/03/04 05:59:47 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/04 05:59:47 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2021/03/04 05:59:54 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/04 05:59:54 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:54 DEBUG : dir/file1(0xc0014107c0): openPending: 2021/03/04 05:59:54 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/04 05:59:54 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:54 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:54 DEBUG : dir/file1(0xc0014107c0): >openPending: err= 2021/03/04 05:59:54 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/04 05:59:54 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:54 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:54 DEBUG : dir/file1(0xc0014107c0): _writeAt: size=25, off=0 2021/03/04 05:59:54 DEBUG : dir/file1(0xc0014107c0): >_writeAt: n=25, err= 2021/03/04 05:59:54 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 05:59:54 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/04 05:59:54 DEBUG : newLeaf: Updating file with newLeaf 0xc000ea7200 2021/03/04 05:59:54 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 05:59:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:54 DEBUG : newLeaf(0xc0014107c0): close: 2021/03/04 05:59:54 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/04 05:59:54 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-04 05:59:54.556333901 +0000 UTC m=+224.311833392 2021/03/04 05:59:54 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/04 05:59:54 DEBUG : newLeaf(0xc0014107c0): >close: err= 2021/03/04 05:59:54 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:54 DEBUG : dir: Looking for writers 2021/03/04 05:59:54 DEBUG : : Looking for writers 2021/03/04 05:59:54 DEBUG : dir: reading active writers 2021/03/04 05:59:54 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/04 05:59:54 DEBUG : dir: Looking for writers 2021/03/04 05:59:54 DEBUG : : Looking for writers 2021/03/04 05:59:54 DEBUG : dir: reading active writers 2021/03/04 05:59:54 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/04 05:59:54 DEBUG : dir: Looking for writers 2021/03/04 05:59:54 DEBUG : : Looking for writers 2021/03/04 05:59:54 DEBUG : dir: reading active writers 2021/03/04 05:59:54 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/04 05:59:54 DEBUG : dir: Looking for writers 2021/03/04 05:59:54 DEBUG : : Looking for writers 2021/03/04 05:59:54 DEBUG : dir: reading active writers 2021/03/04 05:59:54 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/04 05:59:54 DEBUG : newLeaf: vfs cache: starting upload 2021/03/04 05:59:54 DEBUG : dir: Looking for writers 2021/03/04 05:59:54 DEBUG : : Looking for writers 2021/03/04 05:59:54 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:54 DEBUG : dir: reading active writers 2021/03/04 05:59:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/04 05:59:55 DEBUG : dir: Looking for writers 2021/03/04 05:59:55 DEBUG : : Looking for writers 2021/03/04 05:59:55 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:55 DEBUG : dir: reading active writers 2021/03/04 05:59:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/04 05:59:55 DEBUG : dir: Looking for writers 2021/03/04 05:59:55 DEBUG : : Looking for writers 2021/03/04 05:59:55 DEBUG : dir: reading active writers 2021/03/04 05:59:55 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/03/04 05:59:56 DEBUG : dir: Looking for writers 2021/03/04 05:59:56 DEBUG : : Looking for writers 2021/03/04 05:59:56 DEBUG : dir: reading active writers 2021/03/04 05:59:56 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/03/04 05:59:56 INFO : newLeaf: Copied (replaced existing) 2021/03/04 05:59:56 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/04 05:59:56 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/04 05:59:56 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 05:59:56 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/04 05:59:57 DEBUG : dir: Looking for writers 2021/03/04 05:59:57 DEBUG : : Looking for writers 2021/03/04 05:59:57 DEBUG : dir: reading active writers 2021/03/04 05:59:57 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:57 DEBUG : >WaitForWriters: 2021/03/04 05:59:57 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:57 DEBUG : dir: Looking for writers 2021/03/04 05:59:57 DEBUG : : Looking for writers 2021/03/04 05:59:57 DEBUG : dir: reading active writers 2021/03/04 05:59:57 DEBUG : newLeaf: reading active writers 2021/03/04 05:59:57 DEBUG : >WaitForWriters: 2021/03/04 05:59:57 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:176: Remote "mega root 'rclone-test-faxagit6dobodol7xayewuj5'", Local "Local file system at /tmp/rclone367934735", Modify Window "876000h0m0s" 2021/03/04 05:59:57 INFO : mega root 'rclone-test-faxagit6dobodol7xayewuj5': poll-interval is not supported by this remote 2021/03/04 05:59:57 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:57 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:57 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-faxagit6dobodol7xayewuj5" 2021/03/04 05:59:57 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/04 05:59:59 DEBUG : WaitForWriters: timeout=10s 2021/03/04 05:59:59 DEBUG : dir: Looking for writers 2021/03/04 05:59:59 DEBUG : file1: reading active writers 2021/03/04 05:59:59 DEBUG : : Looking for writers 2021/03/04 05:59:59 DEBUG : dir: reading active writers 2021/03/04 05:59:59 DEBUG : >WaitForWriters: 2021/03/04 05:59:59 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/03/04 05:59:59 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 05:59:59 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 05:59:59 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 05:59:59 DEBUG : dir/file1(0xc0013d7a40): _readAt: size=512, off=0 2021/03/04 05:59:59 DEBUG : dir/file1(0xc0013d7a40): openPending: 2021/03/04 05:59:59 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/04 05:59:59 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 05:59:59 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 05:59:59 DEBUG : dir/file1(0xc0013d7a40): >openPending: err= 2021/03/04 05:59:59 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2021/03/04 05:59:59 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2021/03/04 05:59:59 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2021/03/04 05:59:59 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2021/03/04 06:00:00 DEBUG : dir/file1(0xc0013d7a40): >_readAt: n=14, err=EOF 2021/03/04 06:00:00 DEBUG : dir/file1(0xc0013d7a40): close: 2021/03/04 06:00:00 DEBUG : dir/file1: vfs cache: setting modification time to 2021-03-04 05:59:59 +0000 UTC 2021/03/04 06:00:00 DEBUG : dir/file1(0xc0013d7a40): >close: err= 2021/03/04 06:00:01 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 06:00:01 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/04 06:00:01 DEBUG : newLeaf: Updating file with newLeaf 0xc0012f4600 2021/03/04 06:00:01 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 06:00:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 06:00:01 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/04 06:00:01 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/03/04 06:00:01 DEBUG : dir/file1: Updating file with dir/file1 0xc0012f4600 2021/03/04 06:00:01 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/04 06:00:01 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2021/03/04 06:00:08 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/04 06:00:08 DEBUG : dir/file1: newRWFileHandle: 2021/03/04 06:00:08 DEBUG : dir/file1(0xc0014f4580): openPending: 2021/03/04 06:00:08 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/04 06:00:08 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/04 06:00:08 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/04 06:00:08 DEBUG : dir/file1(0xc0014f4580): >openPending: err= 2021/03/04 06:00:08 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/04 06:00:08 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/04 06:00:08 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/04 06:00:08 DEBUG : dir/file1(0xc0014f4580): _writeAt: size=25, off=0 2021/03/04 06:00:08 DEBUG : dir/file1(0xc0014f4580): >_writeAt: n=25, err= 2021/03/04 06:00:09 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/04 06:00:09 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/04 06:00:09 DEBUG : newLeaf: Updating file with newLeaf 0xc0012f4600 2021/03/04 06:00:09 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/04 06:00:09 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 06:00:09 DEBUG : newLeaf(0xc0014f4580): close: 2021/03/04 06:00:09 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/04 06:00:09 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-04 06:00:08.873121816 +0000 UTC m=+238.628621299 2021/03/04 06:00:09 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/04 06:00:09 DEBUG : newLeaf(0xc0014f4580): >close: err= 2021/03/04 06:00:09 DEBUG : WaitForWriters: timeout=10s 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/04 06:00:09 DEBUG : newLeaf: vfs cache: starting upload 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/04 06:00:09 INFO : newLeaf: Copied (replaced existing) 2021/03/04 06:00:09 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/04 06:00:09 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/04 06:00:09 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/04 06:00:09 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : >WaitForWriters: 2021/03/04 06:00:09 DEBUG : WaitForWriters: timeout=10s 2021/03/04 06:00:09 DEBUG : dir: Looking for writers 2021/03/04 06:00:09 DEBUG : : Looking for writers 2021/03/04 06:00:09 DEBUG : dir: reading active writers 2021/03/04 06:00:09 DEBUG : newLeaf: reading active writers 2021/03/04 06:00:09 DEBUG : >WaitForWriters: 2021/03/04 06:00:09 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (100.60s) --- FAIL: TestFileRename/off,forceCache=false (19.25s) --- FAIL: TestFileRename/minimal,forceCache=false (21.22s) --- FAIL: TestFileRename/minimal,forceCache=true (17.94s) --- FAIL: TestFileRename/writes,forceCache=false (18.77s) --- FAIL: TestFileRename/writes,forceCache=true (10.68s) --- FAIL: TestFileRename/full,forceCache=false (12.74s) FAIL 2021/03/04 06:00:09 DEBUG : mega root 'rclone-test-faxagit6dobodol7xayewuj5': 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 3m59.900475024s (try 3/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]