"./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) 2020/12/27 05:17:32 DEBUG : Creating backend with remote "TestMega:rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:17:37 DEBUG : Creating backend with remote "/tmp/rclone654100930" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:176: Remote "mega root 'rclone-test-fequbil6lawumut5papucoz8'", Local "Local file system at /tmp/rclone654100930", Modify Window "876000h0m0s" 2020/12/27 05:17:37 INFO : mega root 'rclone-test-fequbil6lawumut5papucoz8': poll-interval is not supported by this remote 2020/12/27 05:17:37 NOTICE: mega root 'rclone-test-fequbil6lawumut5papucoz8': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/27 05:17:40 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:17:40 DEBUG : dir: Looking for writers 2020/12/27 05:17:40 DEBUG : file1: reading active writers 2020/12/27 05:17:40 DEBUG : : Looking for writers 2020/12/27 05:17:40 DEBUG : dir: reading active writers 2020/12/27 05:17:40 DEBUG : >WaitForWriters: 2020/12/27 05:17:40 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:17:40 DEBUG : newLeaf: Updating file with newLeaf 0xc000110900 2020/12/27 05:17:40 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:17:40 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" 2020/12/27 05:17:47 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:17:47 DEBUG : dir/file1: Updating file with dir/file1 0xc000110900 2020/12/27 05:17:47 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:17: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/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" 2020/12/27 05:17:54 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:17:54 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2020/12/27 05:17:54 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:17:54 DEBUG : dir/file1: File is currently open, delaying rename 0xc000110900 2020/12/27 05:17:54 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:17:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:17:54 DEBUG : mega root 'rclone-test-fequbil6lawumut5papucoz8': File to upload is small (25 bytes), uploading instead of streaming 2020/12/27 05:17:56 INFO : dir/file1: Copied (new) 2020/12/27 05:17:56 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:17:56 DEBUG : newLeaf: Running delayed rename now 2020/12/27 05:17:56 INFO : newLeaf: Deleted 2020/12/27 05:17:56 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:17:56 DEBUG : newLeaf: Updating file with newLeaf 0xc000110900 2020/12/27 05:17:56 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:17:56 DEBUG : dir: Looking for writers 2020/12/27 05:17:56 DEBUG : : Looking for writers 2020/12/27 05:17:56 DEBUG : dir: reading active writers 2020/12/27 05:17:56 DEBUG : newLeaf: reading active writers 2020/12/27 05:17:56 DEBUG : >WaitForWriters: 2020/12/27 05:17:56 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:17:56 DEBUG : dir: Looking for writers 2020/12/27 05:17:56 DEBUG : : Looking for writers 2020/12/27 05:17:56 DEBUG : dir: reading active writers 2020/12/27 05:17:56 DEBUG : newLeaf: reading active writers 2020/12/27 05:17:56 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:176: Remote "mega root 'rclone-test-fequbil6lawumut5papucoz8'", Local "Local file system at /tmp/rclone654100930", Modify Window "876000h0m0s" 2020/12/27 05:17:57 INFO : mega root 'rclone-test-fequbil6lawumut5papucoz8': poll-interval is not supported by this remote 2020/12/27 05:17:57 NOTICE: mega root 'rclone-test-fequbil6lawumut5papucoz8': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/27 05:17:57 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:17:57 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:17:57 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:17:57 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/27 05:17:59 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:17:59 DEBUG : dir: Looking for writers 2020/12/27 05:17:59 DEBUG : file1: reading active writers 2020/12/27 05:17:59 DEBUG : : Looking for writers 2020/12/27 05:17:59 DEBUG : dir: reading active writers 2020/12/27 05:17:59 DEBUG : >WaitForWriters: 2020/12/27 05:18:01 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:18:01 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c6fc0 2020/12/27 05:18:01 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:18:01 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" 2020/12/27 05:18:08 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:18:08 DEBUG : dir/file1: Updating file with dir/file1 0xc0005c6fc0 2020/12/27 05:18:08 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:18:08 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" 2020/12/27 05:18:15 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:18:15 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2020/12/27 05:18:15 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:18:15 DEBUG : dir/file1: File is currently open, delaying rename 0xc0005c6fc0 2020/12/27 05:18:15 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:18:15 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:18:15 DEBUG : mega root 'rclone-test-fequbil6lawumut5papucoz8': File to upload is small (25 bytes), uploading instead of streaming 2020/12/27 05:18:17 INFO : dir/file1: Copied (new) 2020/12/27 05:18:17 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:18:17 DEBUG : newLeaf: Running delayed rename now 2020/12/27 05:18:17 INFO : newLeaf: Deleted 2020/12/27 05:18:18 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:18:18 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c6fc0 2020/12/27 05:18:18 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:18:18 DEBUG : dir: Looking for writers 2020/12/27 05:18:18 DEBUG : : Looking for writers 2020/12/27 05:18:18 DEBUG : dir: reading active writers 2020/12/27 05:18:18 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:18 DEBUG : >WaitForWriters: 2020/12/27 05:18:18 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:18:18 DEBUG : dir: Looking for writers 2020/12/27 05:18:18 DEBUG : : Looking for writers 2020/12/27 05:18:18 DEBUG : dir: reading active writers 2020/12/27 05:18:18 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:18 DEBUG : >WaitForWriters: 2020/12/27 05:18:18 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:176: Remote "mega root 'rclone-test-fequbil6lawumut5papucoz8'", Local "Local file system at /tmp/rclone654100930", Modify Window "876000h0m0s" 2020/12/27 05:18:20 INFO : mega root 'rclone-test-fequbil6lawumut5papucoz8': poll-interval is not supported by this remote 2020/12/27 05:18:20 NOTICE: mega root 'rclone-test-fequbil6lawumut5papucoz8': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/27 05:18:20 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:18:20 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:18:20 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:18:20 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/27 05:18:20 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2020/12/27 05:18:20 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:18:20 DEBUG : dir/file1(0xc00095af00): openPending: 2020/12/27 05:18:20 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:18:20 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:18:20 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:18:20 DEBUG : dir/file1(0xc00095af00): >openPending: err= 2020/12/27 05:18:20 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:18:20 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:18:20 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:18:20 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:18:20 DEBUG : dir/file1(0xc00095af00): _writeAt: size=14, off=0 2020/12/27 05:18:20 DEBUG : dir/file1(0xc00095af00): >_writeAt: n=14, err= 2020/12/27 05:18:20 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:18:20 DEBUG : dir/file1(0xc00095af00): close: 2020/12/27 05:18:20 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:18:20 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:18:20 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2020/12/27 05:18:20 DEBUG : dir/file1(0xc00095af00): >close: err= 2020/12/27 05:18:20 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:18:20 DEBUG : dir: Looking for writers 2020/12/27 05:18:20 DEBUG : file1: reading active writers 2020/12/27 05:18:20 DEBUG : : Looking for writers 2020/12/27 05:18:20 DEBUG : dir: reading active writers 2020/12/27 05:18:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:18:20 DEBUG : dir: Looking for writers 2020/12/27 05:18:20 DEBUG : file1: reading active writers 2020/12/27 05:18:20 DEBUG : : Looking for writers 2020/12/27 05:18:20 DEBUG : dir: reading active writers 2020/12/27 05:18:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:18:20 DEBUG : dir: Looking for writers 2020/12/27 05:18:20 DEBUG : file1: reading active writers 2020/12/27 05:18:20 DEBUG : : Looking for writers 2020/12/27 05:18:20 DEBUG : dir: reading active writers 2020/12/27 05:18:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:18:20 DEBUG : dir: Looking for writers 2020/12/27 05:18:20 DEBUG : file1: reading active writers 2020/12/27 05:18:20 DEBUG : : Looking for writers 2020/12/27 05:18:20 DEBUG : dir: reading active writers 2020/12/27 05:18:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:18:20 DEBUG : dir/file1: vfs cache: starting upload 2020/12/27 05:18:20 DEBUG : dir: Looking for writers 2020/12/27 05:18:20 DEBUG : file1: reading active writers 2020/12/27 05:18:20 DEBUG : : Looking for writers 2020/12/27 05:18:20 DEBUG : dir: reading active writers 2020/12/27 05:18:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:18:20 DEBUG : dir: Looking for writers 2020/12/27 05:18:20 DEBUG : file1: reading active writers 2020/12/27 05:18:20 DEBUG : : Looking for writers 2020/12/27 05:18:20 DEBUG : dir: reading active writers 2020/12/27 05:18:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:18:20 DEBUG : dir: Looking for writers 2020/12/27 05:18:20 DEBUG : file1: reading active writers 2020/12/27 05:18:20 DEBUG : : Looking for writers 2020/12/27 05:18:20 DEBUG : dir: reading active writers 2020/12/27 05:18:20 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/27 05:18:21 DEBUG : dir: Looking for writers 2020/12/27 05:18:21 DEBUG : file1: reading active writers 2020/12/27 05:18:21 DEBUG : : Looking for writers 2020/12/27 05:18:21 DEBUG : dir: reading active writers 2020/12/27 05:18:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:18:22 DEBUG : dir: Looking for writers 2020/12/27 05:18:22 DEBUG : file1: reading active writers 2020/12/27 05:18:22 DEBUG : : Looking for writers 2020/12/27 05:18:22 DEBUG : dir: reading active writers 2020/12/27 05:18:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:18:22 INFO : dir/file1: Copied (replaced existing) 2020/12/27 05:18:22 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2020/12/27 05:18:22 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:18:22 INFO : dir/file1: vfs cache: upload succeeded try #1 2020/12/27 05:18:23 DEBUG : dir: Looking for writers 2020/12/27 05:18:23 DEBUG : file1: reading active writers 2020/12/27 05:18:23 DEBUG : : Looking for writers 2020/12/27 05:18:23 DEBUG : dir: reading active writers 2020/12/27 05:18:23 DEBUG : >WaitForWriters: 2020/12/27 05:18:23 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/27 05:18:23 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:18:23 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:18:23 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:18:23 DEBUG : dir/file1(0xc00098f7c0): _readAt: size=512, off=0 2020/12/27 05:18:23 DEBUG : dir/file1(0xc00098f7c0): openPending: 2020/12/27 05:18:23 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:18:23 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:18:23 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:18:23 DEBUG : dir/file1(0xc00098f7c0): >openPending: err= 2020/12/27 05:18:23 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:18:23 DEBUG : dir/file1(0xc00098f7c0): >_readAt: n=14, err=EOF 2020/12/27 05:18:23 DEBUG : dir/file1(0xc00098f7c0): close: 2020/12/27 05:18:23 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-27 05:18:20 +0000 UTC 2020/12/27 05:18:23 DEBUG : dir/file1(0xc00098f7c0): >close: err= 2020/12/27 05:18:23 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:18:23 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:18:23 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c7980 2020/12/27 05:18:23 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:18:23 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:18:25 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:18:25 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/27 05:18:25 DEBUG : dir/file1: Updating file with dir/file1 0xc0005c7980 2020/12/27 05:18:25 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:18:25 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" 2020/12/27 05:18:32 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:18:32 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:18:32 DEBUG : dir/file1(0xc00098fe80): openPending: 2020/12/27 05:18:32 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:18:32 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:18:32 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:18:32 DEBUG : dir/file1(0xc00098fe80): >openPending: err= 2020/12/27 05:18:32 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:18:32 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:18:32 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:18:32 DEBUG : dir/file1(0xc00098fe80): _writeAt: size=25, off=0 2020/12/27 05:18:32 DEBUG : dir/file1(0xc00098fe80): >_writeAt: n=25, err= 2020/12/27 05:18:33 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:18:33 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:18:33 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c7980 2020/12/27 05:18:33 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:18:33 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:18:33 DEBUG : newLeaf(0xc00098fe80): close: 2020/12/27 05:18:33 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:18:33 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:18:32.93772536 +0000 UTC m=+60.805877644 2020/12/27 05:18:33 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:18:33 DEBUG : newLeaf(0xc00098fe80): >close: err= 2020/12/27 05:18:33 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:18:33 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:18:33 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:18:33 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:18:33 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:18:33 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:18:33 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : >WaitForWriters: 2020/12/27 05:18:33 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:18:33 DEBUG : dir: Looking for writers 2020/12/27 05:18:33 DEBUG : : Looking for writers 2020/12/27 05:18:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:33 DEBUG : dir: reading active writers 2020/12/27 05:18:33 DEBUG : >WaitForWriters: 2020/12/27 05:18:33 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:176: Remote "mega root 'rclone-test-fequbil6lawumut5papucoz8'", Local "Local file system at /tmp/rclone654100930", Modify Window "876000h0m0s" 2020/12/27 05:18:34 INFO : mega root 'rclone-test-fequbil6lawumut5papucoz8': poll-interval is not supported by this remote 2020/12/27 05:18:34 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:18:34 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:18:34 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:18:34 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/27 05:18:35 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:18:35 DEBUG : dir: Looking for writers 2020/12/27 05:18:35 DEBUG : file1: reading active writers 2020/12/27 05:18:35 DEBUG : : Looking for writers 2020/12/27 05:18:35 DEBUG : dir: reading active writers 2020/12/27 05:18:35 DEBUG : >WaitForWriters: 2020/12/27 05:18:38 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:18:38 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c7d40 2020/12/27 05:18:38 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:18:38 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" 2020/12/27 05:18:45 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:18:45 DEBUG : dir/file1: Updating file with dir/file1 0xc0005c7d40 2020/12/27 05:18:45 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:18:45 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" 2020/12/27 05:18:52 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:18:52 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:18:52 DEBUG : dir/file1(0xc000ac5bc0): openPending: 2020/12/27 05:18:52 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:18:52 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:18:52 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:18:52 DEBUG : dir/file1(0xc000ac5bc0): >openPending: err= 2020/12/27 05:18:52 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:18:52 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:18:52 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:18:52 DEBUG : dir/file1(0xc000ac5bc0): _writeAt: size=25, off=0 2020/12/27 05:18:52 DEBUG : dir/file1(0xc000ac5bc0): >_writeAt: n=25, err= 2020/12/27 05:18:52 INFO : newLeaf: Deleted 2020/12/27 05:18:52 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:18:52 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:18:52 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c7d40 2020/12/27 05:18:52 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:18:52 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:18:52 DEBUG : newLeaf(0xc000ac5bc0): close: 2020/12/27 05:18:52 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:18:52 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:18:52.313720014 +0000 UTC m=+80.181872316 2020/12/27 05:18:52 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:18:52 DEBUG : newLeaf(0xc000ac5bc0): >close: err= 2020/12/27 05:18:52 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:18:52 DEBUG : dir: Looking for writers 2020/12/27 05:18:52 DEBUG : : Looking for writers 2020/12/27 05:18:52 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:52 DEBUG : dir: reading active writers 2020/12/27 05:18:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:18:52 DEBUG : dir: Looking for writers 2020/12/27 05:18:52 DEBUG : : Looking for writers 2020/12/27 05:18:52 DEBUG : dir: reading active writers 2020/12/27 05:18:52 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:18:52 DEBUG : dir: Looking for writers 2020/12/27 05:18:52 DEBUG : : Looking for writers 2020/12/27 05:18:52 DEBUG : dir: reading active writers 2020/12/27 05:18:52 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:18:52 DEBUG : dir: Looking for writers 2020/12/27 05:18:52 DEBUG : : Looking for writers 2020/12/27 05:18:52 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:52 DEBUG : dir: reading active writers 2020/12/27 05:18:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:18:52 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:18:52 DEBUG : dir: Looking for writers 2020/12/27 05:18:52 DEBUG : : Looking for writers 2020/12/27 05:18:52 DEBUG : dir: reading active writers 2020/12/27 05:18:52 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:18:52 DEBUG : dir: Looking for writers 2020/12/27 05:18:52 DEBUG : : Looking for writers 2020/12/27 05:18:52 DEBUG : dir: reading active writers 2020/12/27 05:18:52 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:18:53 DEBUG : dir: Looking for writers 2020/12/27 05:18:53 DEBUG : : Looking for writers 2020/12/27 05:18:53 DEBUG : dir: reading active writers 2020/12/27 05:18:53 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:53 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/27 05:18:53 DEBUG : dir: Looking for writers 2020/12/27 05:18:53 DEBUG : : Looking for writers 2020/12/27 05:18:53 DEBUG : dir: reading active writers 2020/12/27 05:18:53 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:53 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:18:54 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:18:54 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:18:54 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:18:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:18:54 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:18:54 DEBUG : dir: Looking for writers 2020/12/27 05:18:54 DEBUG : : Looking for writers 2020/12/27 05:18:54 DEBUG : dir: reading active writers 2020/12/27 05:18:54 DEBUG : newLeaf: reading active writers 2020/12/27 05:18:54 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 2020/12/27 05:19:01 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:19:01 DEBUG : dir: Looking for writers 2020/12/27 05:19:01 DEBUG : : Looking for writers 2020/12/27 05:19:01 DEBUG : dir: reading active writers 2020/12/27 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:01 DEBUG : >WaitForWriters: 2020/12/27 05:19:01 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:176: Remote "mega root 'rclone-test-fequbil6lawumut5papucoz8'", Local "Local file system at /tmp/rclone654100930", Modify Window "876000h0m0s" 2020/12/27 05:19:02 INFO : mega root 'rclone-test-fequbil6lawumut5papucoz8': poll-interval is not supported by this remote 2020/12/27 05:19:02 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:19:02 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:19:02 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:19:02 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/27 05:19:06 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2020/12/27 05:19:06 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d26b40): openPending: 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d26b40): >openPending: err= 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:19:06 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:19:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d26b40): _writeAt: size=14, off=0 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d26b40): >_writeAt: n=14, err= 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d26b40): close: 2020/12/27 05:19:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:19:06 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d26b40): >close: err= 2020/12/27 05:19:06 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:19:06 DEBUG : dir: Looking for writers 2020/12/27 05:19:06 DEBUG : file1: reading active writers 2020/12/27 05:19:06 DEBUG : : Looking for writers 2020/12/27 05:19:06 DEBUG : dir: reading active writers 2020/12/27 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:19:06 DEBUG : dir: Looking for writers 2020/12/27 05:19:06 DEBUG : file1: reading active writers 2020/12/27 05:19:06 DEBUG : : Looking for writers 2020/12/27 05:19:06 DEBUG : dir: reading active writers 2020/12/27 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:19:06 DEBUG : dir: Looking for writers 2020/12/27 05:19:06 DEBUG : file1: reading active writers 2020/12/27 05:19:06 DEBUG : : Looking for writers 2020/12/27 05:19:06 DEBUG : dir: reading active writers 2020/12/27 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:19:06 DEBUG : dir: Looking for writers 2020/12/27 05:19:06 DEBUG : file1: reading active writers 2020/12/27 05:19:06 DEBUG : : Looking for writers 2020/12/27 05:19:06 DEBUG : dir: reading active writers 2020/12/27 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: starting upload 2020/12/27 05:19:06 DEBUG : dir: Looking for writers 2020/12/27 05:19:06 DEBUG : file1: reading active writers 2020/12/27 05:19:06 DEBUG : : Looking for writers 2020/12/27 05:19:06 DEBUG : dir: reading active writers 2020/12/27 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:19:06 DEBUG : dir: Looking for writers 2020/12/27 05:19:06 DEBUG : file1: reading active writers 2020/12/27 05:19:06 DEBUG : : Looking for writers 2020/12/27 05:19:06 DEBUG : dir: reading active writers 2020/12/27 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:19:06 INFO : dir/file1: Copied (replaced existing) 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2020/12/27 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:19:06 INFO : dir/file1: vfs cache: upload succeeded try #1 2020/12/27 05:19:06 DEBUG : dir: Looking for writers 2020/12/27 05:19:06 DEBUG : file1: reading active writers 2020/12/27 05:19:06 DEBUG : : Looking for writers 2020/12/27 05:19:06 DEBUG : dir: reading active writers 2020/12/27 05:19:06 DEBUG : >WaitForWriters: 2020/12/27 05:19:06 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/27 05:19:06 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:19:06 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:19:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d9c800): _readAt: size=512, off=0 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d9c800): openPending: 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d9c800): >openPending: err= 2020/12/27 05:19:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d9c800): >_readAt: n=14, err=EOF 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d9c800): close: 2020/12/27 05:19:06 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-27 05:19:06 +0000 UTC 2020/12/27 05:19:06 DEBUG : dir/file1(0xc000d9c800): >close: err= 2020/12/27 05:19:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:19:06 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:19:06 DEBUG : newLeaf: Updating file with newLeaf 0xc000d32240 2020/12/27 05:19:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:19:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:19:07 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:19:07 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/27 05:19:07 DEBUG : dir/file1: Updating file with dir/file1 0xc000d32240 2020/12/27 05:19:07 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:19:07 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" 2020/12/27 05:19:14 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:19:14 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:19:14 DEBUG : dir/file1(0xc000d27c00): openPending: 2020/12/27 05:19:14 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:19:14 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:19:14 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:19:14 DEBUG : dir/file1(0xc000d27c00): >openPending: err= 2020/12/27 05:19:14 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:19:14 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:19:14 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:19:14 DEBUG : dir/file1(0xc000d27c00): _writeAt: size=25, off=0 2020/12/27 05:19:14 DEBUG : dir/file1(0xc000d27c00): >_writeAt: n=25, err= 2020/12/27 05:19:14 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:19:14 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:19:14 DEBUG : newLeaf: Updating file with newLeaf 0xc000d32240 2020/12/27 05:19:14 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:19:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:19:14 DEBUG : newLeaf(0xc000d27c00): close: 2020/12/27 05:19:14 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:19:14 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:19:14.06667456 +0000 UTC m=+101.934826852 2020/12/27 05:19:14 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:19:14 DEBUG : newLeaf(0xc000d27c00): >close: err= 2020/12/27 05:19:14 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:19:14 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:19:14 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:19:14 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:19:14 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:19:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:19:14 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : >WaitForWriters: 2020/12/27 05:19:14 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:19:14 DEBUG : dir: Looking for writers 2020/12/27 05:19:14 DEBUG : : Looking for writers 2020/12/27 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:14 DEBUG : dir: reading active writers 2020/12/27 05:19:14 DEBUG : >WaitForWriters: 2020/12/27 05:19:14 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:176: Remote "mega root 'rclone-test-fequbil6lawumut5papucoz8'", Local "Local file system at /tmp/rclone654100930", Modify Window "876000h0m0s" 2020/12/27 05:19:15 INFO : mega root 'rclone-test-fequbil6lawumut5papucoz8': poll-interval is not supported by this remote 2020/12/27 05:19:15 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:19:15 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:19:15 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-fequbil6lawumut5papucoz8" 2020/12/27 05:19:15 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/27 05:19:19 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:19:19 DEBUG : dir: Looking for writers 2020/12/27 05:19:19 DEBUG : file1: reading active writers 2020/12/27 05:19:19 DEBUG : : Looking for writers 2020/12/27 05:19:19 DEBUG : dir: reading active writers 2020/12/27 05:19:19 DEBUG : >WaitForWriters: 2020/12/27 05:19:19 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/27 05:19:19 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:19:19 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:19:19 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:19:19 DEBUG : dir/file1(0xc000e1ae00): _readAt: size=512, off=0 2020/12/27 05:19:19 DEBUG : dir/file1(0xc000e1ae00): openPending: 2020/12/27 05:19:19 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:19:19 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:19:19 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:19:19 DEBUG : dir/file1(0xc000e1ae00): >openPending: err= 2020/12/27 05:19:19 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2020/12/27 05:19:19 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2020/12/27 05:19:19 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2020/12/27 05:19:19 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2020/12/27 05:19:19 DEBUG : dir/file1(0xc000e1ae00): >_readAt: n=14, err=EOF 2020/12/27 05:19:19 DEBUG : dir/file1(0xc000e1ae00): close: 2020/12/27 05:19:19 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-27 05:19:17 +0000 UTC 2020/12/27 05:19:19 DEBUG : dir/file1(0xc000e1ae00): >close: err= 2020/12/27 05:19:21 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:19:21 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:19:21 DEBUG : newLeaf: Updating file with newLeaf 0xc000d32780 2020/12/27 05:19:21 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:19:21 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:19:23 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:19:23 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/27 05:19:23 DEBUG : dir/file1: Updating file with dir/file1 0xc000d32780 2020/12/27 05:19:23 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:19:23 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" 2020/12/27 05:19:30 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:19:30 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:19:30 DEBUG : dir/file1(0xc000f644c0): openPending: 2020/12/27 05:19:30 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:19:30 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:19:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:19:30 DEBUG : dir/file1(0xc000f644c0): >openPending: err= 2020/12/27 05:19:30 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:19:30 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:19:30 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:19:30 DEBUG : dir/file1(0xc000f644c0): _writeAt: size=25, off=0 2020/12/27 05:19:30 DEBUG : dir/file1(0xc000f644c0): >_writeAt: n=25, err= 2020/12/27 05:19:30 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:19:30 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:19:30 DEBUG : newLeaf: Updating file with newLeaf 0xc000d32780 2020/12/27 05:19:30 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:19:30 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:19:30 DEBUG : newLeaf(0xc000f644c0): close: 2020/12/27 05:19:30 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:19:30 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:19:30.245442314 +0000 UTC m=+118.113594622 2020/12/27 05:19:30 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:19:30 DEBUG : newLeaf(0xc000f644c0): >close: err= 2020/12/27 05:19:30 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:19:30 DEBUG : dir: Looking for writers 2020/12/27 05:19:30 DEBUG : : Looking for writers 2020/12/27 05:19:30 DEBUG : dir: reading active writers 2020/12/27 05:19:30 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:19:30 DEBUG : dir: Looking for writers 2020/12/27 05:19:30 DEBUG : : Looking for writers 2020/12/27 05:19:30 DEBUG : dir: reading active writers 2020/12/27 05:19:30 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:19:30 DEBUG : dir: Looking for writers 2020/12/27 05:19:30 DEBUG : : Looking for writers 2020/12/27 05:19:30 DEBUG : dir: reading active writers 2020/12/27 05:19:30 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:19:30 DEBUG : dir: Looking for writers 2020/12/27 05:19:30 DEBUG : : Looking for writers 2020/12/27 05:19:30 DEBUG : dir: reading active writers 2020/12/27 05:19:30 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:19:30 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:19:30 DEBUG : dir: Looking for writers 2020/12/27 05:19:30 DEBUG : : Looking for writers 2020/12/27 05:19:30 DEBUG : dir: reading active writers 2020/12/27 05:19:30 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:19:30 DEBUG : dir: Looking for writers 2020/12/27 05:19:30 DEBUG : : Looking for writers 2020/12/27 05:19:30 DEBUG : dir: reading active writers 2020/12/27 05:19:30 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:19:31 DEBUG : dir: Looking for writers 2020/12/27 05:19:31 DEBUG : : Looking for writers 2020/12/27 05:19:31 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:31 DEBUG : dir: reading active writers 2020/12/27 05:19:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/27 05:19:31 DEBUG : dir: Looking for writers 2020/12/27 05:19:31 DEBUG : : Looking for writers 2020/12/27 05:19:31 DEBUG : dir: reading active writers 2020/12/27 05:19:31 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:19:32 DEBUG : dir: Looking for writers 2020/12/27 05:19:32 DEBUG : : Looking for writers 2020/12/27 05:19:32 DEBUG : dir: reading active writers 2020/12/27 05:19:32 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:19:33 DEBUG : dir: Looking for writers 2020/12/27 05:19:33 DEBUG : : Looking for writers 2020/12/27 05:19:33 DEBUG : dir: reading active writers 2020/12/27 05:19:33 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:19:34 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:19:34 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:19:34 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:19:34 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:19:34 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:19:34 DEBUG : dir: Looking for writers 2020/12/27 05:19:34 DEBUG : : Looking for writers 2020/12/27 05:19:34 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:34 DEBUG : dir: reading active writers 2020/12/27 05:19:34 DEBUG : >WaitForWriters: 2020/12/27 05:19:34 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:19:34 DEBUG : dir: Looking for writers 2020/12/27 05:19:34 DEBUG : : Looking for writers 2020/12/27 05:19:34 DEBUG : dir: reading active writers 2020/12/27 05:19:34 DEBUG : newLeaf: reading active writers 2020/12/27 05:19:34 DEBUG : >WaitForWriters: 2020/12/27 05:19:34 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (118.71s) --- FAIL: TestFileRename/off,forceCache=false (19.16s) --- FAIL: TestFileRename/minimal,forceCache=false (23.12s) --- FAIL: TestFileRename/minimal,forceCache=true (13.83s) --- FAIL: TestFileRename/writes,forceCache=false (28.06s) --- FAIL: TestFileRename/writes,forceCache=true (13.05s) --- FAIL: TestFileRename/full,forceCache=false (21.49s) FAIL 2020/12/27 05:19:36 DEBUG : mega root 'rclone-test-fequbil6lawumut5papucoz8': 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 2m4.621756453s (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]