"./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) 2020/12/27 05:13:44 DEBUG : Creating backend with remote "TestMega:rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:13:50 DEBUG : Creating backend with remote "/tmp/rclone658541070" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:176: Remote "mega root 'rclone-test-befafaz7mecizeg8hohariv3'", Local "Local file system at /tmp/rclone658541070", Modify Window "876000h0m0s" 2020/12/27 05:13:50 INFO : mega root 'rclone-test-befafaz7mecizeg8hohariv3': poll-interval is not supported by this remote 2020/12/27 05:13:50 NOTICE: mega root 'rclone-test-befafaz7mecizeg8hohariv3': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/27 05:13:52 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:13:52 DEBUG : dir: Looking for writers 2020/12/27 05:13:52 DEBUG : file1: reading active writers 2020/12/27 05:13:52 DEBUG : : Looking for writers 2020/12/27 05:13:52 DEBUG : dir: reading active writers 2020/12/27 05:13:52 DEBUG : >WaitForWriters: 2020/12/27 05:13:52 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:13:52 DEBUG : newLeaf: Updating file with newLeaf 0xc0026fc300 2020/12/27 05:13:52 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:13: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/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:13:59 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:13:59 DEBUG : dir/file1: Updating file with dir/file1 0xc0026fc300 2020/12/27 05:13:59 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:13:59 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:14:06 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:14:06 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2020/12/27 05:14:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:06 DEBUG : dir/file1: File is currently open, delaying rename 0xc0026fc300 2020/12/27 05:14:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:14:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:06 DEBUG : mega root 'rclone-test-befafaz7mecizeg8hohariv3': File to upload is small (25 bytes), uploading instead of streaming 2020/12/27 05:14:06 INFO : dir/file1: Copied (new) 2020/12/27 05:14:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:06 DEBUG : newLeaf: Running delayed rename now 2020/12/27 05:14:06 INFO : newLeaf: Deleted 2020/12/27 05:14:07 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:14:07 DEBUG : newLeaf: Updating file with newLeaf 0xc0026fc300 2020/12/27 05:14:07 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:07 DEBUG : dir: Looking for writers 2020/12/27 05:14:07 DEBUG : : Looking for writers 2020/12/27 05:14:07 DEBUG : dir: reading active writers 2020/12/27 05:14:07 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:07 DEBUG : >WaitForWriters: 2020/12/27 05:14:07 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:07 DEBUG : dir: Looking for writers 2020/12/27 05:14:07 DEBUG : : Looking for writers 2020/12/27 05:14:07 DEBUG : dir: reading active writers 2020/12/27 05:14:07 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:07 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:176: Remote "mega root 'rclone-test-befafaz7mecizeg8hohariv3'", Local "Local file system at /tmp/rclone658541070", Modify Window "876000h0m0s" 2020/12/27 05:14:07 INFO : mega root 'rclone-test-befafaz7mecizeg8hohariv3': poll-interval is not supported by this remote 2020/12/27 05:14:07 NOTICE: mega root 'rclone-test-befafaz7mecizeg8hohariv3': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/27 05:14:07 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:07 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:07 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:07 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:14:11 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:11 DEBUG : dir: Looking for writers 2020/12/27 05:14:11 DEBUG : file1: reading active writers 2020/12/27 05:14:11 DEBUG : : Looking for writers 2020/12/27 05:14:11 DEBUG : dir: reading active writers 2020/12/27 05:14:11 DEBUG : >WaitForWriters: 2020/12/27 05:14:11 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:14:11 DEBUG : newLeaf: Updating file with newLeaf 0xc0026fcb40 2020/12/27 05:14:11 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:14:11 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:14:18 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:14:18 DEBUG : dir/file1: Updating file with dir/file1 0xc0026fcb40 2020/12/27 05:14:18 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:14:18 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:14:25 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:14:25 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2020/12/27 05:14:25 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:25 DEBUG : dir/file1: File is currently open, delaying rename 0xc0026fcb40 2020/12/27 05:14:25 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:14:25 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:25 DEBUG : mega root 'rclone-test-befafaz7mecizeg8hohariv3': File to upload is small (25 bytes), uploading instead of streaming 2020/12/27 05:14:27 INFO : dir/file1: Copied (new) 2020/12/27 05:14:27 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:27 DEBUG : newLeaf: Running delayed rename now 2020/12/27 05:14:27 INFO : newLeaf: Deleted 2020/12/27 05:14:28 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:14:28 DEBUG : newLeaf: Updating file with newLeaf 0xc0026fcb40 2020/12/27 05:14:28 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:28 DEBUG : dir: Looking for writers 2020/12/27 05:14:28 DEBUG : : Looking for writers 2020/12/27 05:14:28 DEBUG : dir: reading active writers 2020/12/27 05:14:28 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:28 DEBUG : >WaitForWriters: 2020/12/27 05:14:28 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:28 DEBUG : dir: Looking for writers 2020/12/27 05:14:28 DEBUG : : Looking for writers 2020/12/27 05:14:28 DEBUG : dir: reading active writers 2020/12/27 05:14:28 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:28 DEBUG : >WaitForWriters: 2020/12/27 05:14:28 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:176: Remote "mega root 'rclone-test-befafaz7mecizeg8hohariv3'", Local "Local file system at /tmp/rclone658541070", Modify Window "876000h0m0s" 2020/12/27 05:14:28 INFO : mega root 'rclone-test-befafaz7mecizeg8hohariv3': poll-interval is not supported by this remote 2020/12/27 05:14:28 NOTICE: mega root 'rclone-test-befafaz7mecizeg8hohariv3': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/27 05:14:28 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:28 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:28 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:28 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:14:30 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2020/12/27 05:14:30 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:14:30 DEBUG : dir/file1(0xc00007d040): openPending: 2020/12/27 05:14:30 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:14:30 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:14:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:30 DEBUG : dir/file1(0xc00007d040): >openPending: err= 2020/12/27 05:14:30 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:14:30 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:14:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:30 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:14:30 DEBUG : dir/file1(0xc00007d040): _writeAt: size=14, off=0 2020/12/27 05:14:30 DEBUG : dir/file1(0xc00007d040): >_writeAt: n=14, err= 2020/12/27 05:14:30 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:14:30 DEBUG : dir/file1(0xc00007d040): close: 2020/12/27 05:14:30 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:14:30 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:14:30 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2020/12/27 05:14:30 DEBUG : dir/file1(0xc00007d040): >close: err= 2020/12/27 05:14:30 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:30 DEBUG : dir: Looking for writers 2020/12/27 05:14:30 DEBUG : file1: reading active writers 2020/12/27 05:14:30 DEBUG : : Looking for writers 2020/12/27 05:14:30 DEBUG : dir: reading active writers 2020/12/27 05:14:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:14:30 DEBUG : dir: Looking for writers 2020/12/27 05:14:30 DEBUG : file1: reading active writers 2020/12/27 05:14:30 DEBUG : : Looking for writers 2020/12/27 05:14:30 DEBUG : dir: reading active writers 2020/12/27 05:14:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:14:30 DEBUG : dir: Looking for writers 2020/12/27 05:14:30 DEBUG : file1: reading active writers 2020/12/27 05:14:30 DEBUG : : Looking for writers 2020/12/27 05:14:30 DEBUG : dir: reading active writers 2020/12/27 05:14:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:14:30 DEBUG : dir: Looking for writers 2020/12/27 05:14:30 DEBUG : file1: reading active writers 2020/12/27 05:14:30 DEBUG : : Looking for writers 2020/12/27 05:14:30 DEBUG : dir: reading active writers 2020/12/27 05:14:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:14:30 DEBUG : dir/file1: vfs cache: starting upload 2020/12/27 05:14:30 DEBUG : dir: Looking for writers 2020/12/27 05:14:30 DEBUG : file1: reading active writers 2020/12/27 05:14:30 DEBUG : : Looking for writers 2020/12/27 05:14:30 DEBUG : dir: reading active writers 2020/12/27 05:14:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:14:30 DEBUG : dir: Looking for writers 2020/12/27 05:14:30 DEBUG : file1: reading active writers 2020/12/27 05:14:30 DEBUG : : Looking for writers 2020/12/27 05:14:30 DEBUG : dir: reading active writers 2020/12/27 05:14:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:14:30 INFO : dir/file1: Copied (replaced existing) 2020/12/27 05:14:30 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2020/12/27 05:14:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:30 INFO : dir/file1: vfs cache: upload succeeded try #1 2020/12/27 05:14:31 DEBUG : dir: Looking for writers 2020/12/27 05:14:31 DEBUG : file1: reading active writers 2020/12/27 05:14:31 DEBUG : : Looking for writers 2020/12/27 05:14:31 DEBUG : dir: reading active writers 2020/12/27 05:14:31 DEBUG : >WaitForWriters: 2020/12/27 05:14:31 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/27 05:14:31 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:14:31 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:14:31 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:14:31 DEBUG : dir/file1(0xc00007d780): _readAt: size=512, off=0 2020/12/27 05:14:31 DEBUG : dir/file1(0xc00007d780): openPending: 2020/12/27 05:14:31 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:14:31 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:14:31 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:31 DEBUG : dir/file1(0xc00007d780): >openPending: err= 2020/12/27 05:14:31 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:14:31 DEBUG : dir/file1(0xc00007d780): >_readAt: n=14, err=EOF 2020/12/27 05:14:31 DEBUG : dir/file1(0xc00007d780): close: 2020/12/27 05:14:31 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-27 05:14:30 +0000 UTC 2020/12/27 05:14:31 DEBUG : dir/file1(0xc00007d780): >close: err= 2020/12/27 05:14:32 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:14:32 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:14:32 DEBUG : newLeaf: Updating file with newLeaf 0xc0026fd080 2020/12/27 05:14:32 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:14:32 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:33 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:14:33 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/27 05:14:33 DEBUG : dir/file1: Updating file with dir/file1 0xc0026fd080 2020/12/27 05:14:33 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:14:33 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:14:40 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:14:40 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:14:40 DEBUG : dir/file1(0xc00007de80): openPending: 2020/12/27 05:14:40 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:14:40 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:14:40 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:40 DEBUG : dir/file1(0xc00007de80): >openPending: err= 2020/12/27 05:14:40 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:14:40 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:14:40 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:14:40 DEBUG : dir/file1(0xc00007de80): _writeAt: size=25, off=0 2020/12/27 05:14:40 DEBUG : dir/file1(0xc00007de80): >_writeAt: n=25, err= 2020/12/27 05:14:40 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:14:40 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:14:40 DEBUG : newLeaf: Updating file with newLeaf 0xc0026fd080 2020/12/27 05:14:40 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:14:40 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:40 DEBUG : newLeaf(0xc00007de80): close: 2020/12/27 05:14:40 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:14:40 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:14:40.16167018 +0000 UTC m=+56.086115339 2020/12/27 05:14:40 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:14:40 DEBUG : newLeaf(0xc00007de80): >close: err= 2020/12/27 05:14:40 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:40 DEBUG : dir: Looking for writers 2020/12/27 05:14:40 DEBUG : : Looking for writers 2020/12/27 05:14:40 DEBUG : dir: reading active writers 2020/12/27 05:14:40 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:14:40 DEBUG : dir: Looking for writers 2020/12/27 05:14:40 DEBUG : : Looking for writers 2020/12/27 05:14:40 DEBUG : dir: reading active writers 2020/12/27 05:14:40 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:14:40 DEBUG : dir: Looking for writers 2020/12/27 05:14:40 DEBUG : : Looking for writers 2020/12/27 05:14:40 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:40 DEBUG : dir: reading active writers 2020/12/27 05:14:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:14:40 DEBUG : dir: Looking for writers 2020/12/27 05:14:40 DEBUG : : Looking for writers 2020/12/27 05:14:40 DEBUG : dir: reading active writers 2020/12/27 05:14:40 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:14:40 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:14:40 DEBUG : dir: Looking for writers 2020/12/27 05:14:40 DEBUG : : Looking for writers 2020/12/27 05:14:40 DEBUG : dir: reading active writers 2020/12/27 05:14:40 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:14:40 DEBUG : dir: Looking for writers 2020/12/27 05:14:40 DEBUG : : Looking for writers 2020/12/27 05:14:40 DEBUG : dir: reading active writers 2020/12/27 05:14:40 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:14:40 DEBUG : dir: Looking for writers 2020/12/27 05:14:40 DEBUG : : Looking for writers 2020/12/27 05:14:40 DEBUG : dir: reading active writers 2020/12/27 05:14:40 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/27 05:14:41 DEBUG : dir: Looking for writers 2020/12/27 05:14:41 DEBUG : : Looking for writers 2020/12/27 05:14:41 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:41 DEBUG : dir: reading active writers 2020/12/27 05:14:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:14:42 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:14:42 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:14:42 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:14:42 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:42 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:14:42 DEBUG : dir: Looking for writers 2020/12/27 05:14:42 DEBUG : : Looking for writers 2020/12/27 05:14:42 DEBUG : dir: reading active writers 2020/12/27 05:14:42 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:42 DEBUG : >WaitForWriters: 2020/12/27 05:14:42 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:42 DEBUG : dir: Looking for writers 2020/12/27 05:14:42 DEBUG : : Looking for writers 2020/12/27 05:14:42 DEBUG : dir: reading active writers 2020/12/27 05:14:42 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:42 DEBUG : >WaitForWriters: 2020/12/27 05:14:42 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:176: Remote "mega root 'rclone-test-befafaz7mecizeg8hohariv3'", Local "Local file system at /tmp/rclone658541070", Modify Window "876000h0m0s" 2020/12/27 05:14:42 INFO : mega root 'rclone-test-befafaz7mecizeg8hohariv3': poll-interval is not supported by this remote 2020/12/27 05:14:42 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:42 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:42 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:14:42 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:14:43 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:43 DEBUG : dir: Looking for writers 2020/12/27 05:14:43 DEBUG : file1: reading active writers 2020/12/27 05:14:43 DEBUG : : Looking for writers 2020/12/27 05:14:43 DEBUG : dir: reading active writers 2020/12/27 05:14:43 DEBUG : >WaitForWriters: 2020/12/27 05:14:43 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:14:43 DEBUG : newLeaf: Updating file with newLeaf 0xc000b82000 2020/12/27 05:14:43 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:14:43 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:14:50 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:14:50 DEBUG : dir/file1: Updating file with dir/file1 0xc000b82000 2020/12/27 05:14:50 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:14:50 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:14:57 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:14:57 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:14:57 DEBUG : dir/file1(0xc0009f7800): openPending: 2020/12/27 05:14:57 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:14:57 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:14:57 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:14:57 DEBUG : dir/file1(0xc0009f7800): >openPending: err= 2020/12/27 05:14:57 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:14:57 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:14:57 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:14:57 DEBUG : dir/file1(0xc0009f7800): _writeAt: size=25, off=0 2020/12/27 05:14:57 DEBUG : dir/file1(0xc0009f7800): >_writeAt: n=25, err= 2020/12/27 05:14:57 INFO : newLeaf: Deleted 2020/12/27 05:14:59 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:14:59 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:14:59 DEBUG : newLeaf: Updating file with newLeaf 0xc000b82000 2020/12/27 05:14:59 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:14:59 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:14:59 DEBUG : newLeaf(0xc0009f7800): close: 2020/12/27 05:14:59 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:14:59 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:14:57.429269927 +0000 UTC m=+73.353715085 2020/12/27 05:14:59 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:14:59 DEBUG : newLeaf(0xc0009f7800): >close: err= 2020/12/27 05:14:59 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:14:59 DEBUG : dir: Looking for writers 2020/12/27 05:14:59 DEBUG : : Looking for writers 2020/12/27 05:14:59 DEBUG : dir: reading active writers 2020/12/27 05:14:59 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:14:59 DEBUG : dir: Looking for writers 2020/12/27 05:14:59 DEBUG : : Looking for writers 2020/12/27 05:14:59 DEBUG : dir: reading active writers 2020/12/27 05:14:59 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:14:59 DEBUG : dir: Looking for writers 2020/12/27 05:14:59 DEBUG : : Looking for writers 2020/12/27 05:14:59 DEBUG : dir: reading active writers 2020/12/27 05:14:59 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:14:59 DEBUG : dir: Looking for writers 2020/12/27 05:14:59 DEBUG : : Looking for writers 2020/12/27 05:14:59 DEBUG : dir: reading active writers 2020/12/27 05:14:59 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:14:59 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:14:59 DEBUG : dir: Looking for writers 2020/12/27 05:14:59 DEBUG : : Looking for writers 2020/12/27 05:14:59 DEBUG : dir: reading active writers 2020/12/27 05:14:59 DEBUG : newLeaf: reading active writers 2020/12/27 05:14:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:15:00 DEBUG : dir: Looking for writers 2020/12/27 05:15:00 DEBUG : : Looking for writers 2020/12/27 05:15:00 DEBUG : dir: reading active writers 2020/12/27 05:15:00 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:00 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:15:00 DEBUG : dir: Looking for writers 2020/12/27 05:15:00 DEBUG : : Looking for writers 2020/12/27 05:15:00 DEBUG : dir: reading active writers 2020/12/27 05:15:00 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:00 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/27 05:15:00 DEBUG : dir: Looking for writers 2020/12/27 05:15:00 DEBUG : : Looking for writers 2020/12/27 05:15:00 DEBUG : dir: reading active writers 2020/12/27 05:15:00 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:00 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:15:01 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:15:01 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:15:01 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:15:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:15:01 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:15:01 DEBUG : dir: Looking for writers 2020/12/27 05:15:01 DEBUG : : Looking for writers 2020/12/27 05:15:01 DEBUG : dir: reading active writers 2020/12/27 05:15:01 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:01 DEBUG : >WaitForWriters: 2020/12/27 05:15:01 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:15:01 DEBUG : dir: Looking for writers 2020/12/27 05:15:01 DEBUG : : Looking for writers 2020/12/27 05:15:01 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:01 DEBUG : dir: reading active writers 2020/12/27 05:15:01 DEBUG : >WaitForWriters: 2020/12/27 05:15:01 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:176: Remote "mega root 'rclone-test-befafaz7mecizeg8hohariv3'", Local "Local file system at /tmp/rclone658541070", Modify Window "876000h0m0s" 2020/12/27 05:15:02 INFO : mega root 'rclone-test-befafaz7mecizeg8hohariv3': poll-interval is not supported by this remote 2020/12/27 05:15:02 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:15:02 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:15:02 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:15: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:15:02 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2020/12/27 05:15:02 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:15:02 DEBUG : dir/file1(0xc000c24b40): openPending: 2020/12/27 05:15:02 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:15:02 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:15:02 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:15:02 DEBUG : dir/file1(0xc000c24b40): >openPending: err= 2020/12/27 05:15:02 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:15:02 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:15:02 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:15:02 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:15:02 DEBUG : dir/file1(0xc000c24b40): _writeAt: size=14, off=0 2020/12/27 05:15:02 DEBUG : dir/file1(0xc000c24b40): >_writeAt: n=14, err= 2020/12/27 05:15:02 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:15:02 DEBUG : dir/file1(0xc000c24b40): close: 2020/12/27 05:15:02 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:15:02 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/27 05:15:02 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2020/12/27 05:15:02 DEBUG : dir/file1(0xc000c24b40): >close: err= 2020/12/27 05:15:02 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:15:02 DEBUG : dir: Looking for writers 2020/12/27 05:15:02 DEBUG : file1: reading active writers 2020/12/27 05:15:02 DEBUG : : Looking for writers 2020/12/27 05:15:02 DEBUG : dir: reading active writers 2020/12/27 05:15:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:15:02 DEBUG : dir: Looking for writers 2020/12/27 05:15:02 DEBUG : file1: reading active writers 2020/12/27 05:15:02 DEBUG : : Looking for writers 2020/12/27 05:15:02 DEBUG : dir: reading active writers 2020/12/27 05:15:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:15:02 DEBUG : dir: Looking for writers 2020/12/27 05:15:02 DEBUG : file1: reading active writers 2020/12/27 05:15:02 DEBUG : : Looking for writers 2020/12/27 05:15:02 DEBUG : dir: reading active writers 2020/12/27 05:15:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:15:02 DEBUG : dir: Looking for writers 2020/12/27 05:15:02 DEBUG : file1: reading active writers 2020/12/27 05:15:02 DEBUG : : Looking for writers 2020/12/27 05:15:02 DEBUG : dir: reading active writers 2020/12/27 05:15:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:15:02 DEBUG : dir/file1: vfs cache: starting upload 2020/12/27 05:15:02 DEBUG : dir: Looking for writers 2020/12/27 05:15:02 DEBUG : file1: reading active writers 2020/12/27 05:15:02 DEBUG : : Looking for writers 2020/12/27 05:15:02 DEBUG : dir: reading active writers 2020/12/27 05:15:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:15:02 DEBUG : dir: Looking for writers 2020/12/27 05:15:02 DEBUG : file1: reading active writers 2020/12/27 05:15:02 DEBUG : : Looking for writers 2020/12/27 05:15:02 DEBUG : dir: reading active writers 2020/12/27 05:15:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:15:03 INFO : dir/file1: Copied (replaced existing) 2020/12/27 05:15:03 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2020/12/27 05:15:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:15:03 INFO : dir/file1: vfs cache: upload succeeded try #1 2020/12/27 05:15:03 DEBUG : dir: Looking for writers 2020/12/27 05:15:03 DEBUG : file1: reading active writers 2020/12/27 05:15:03 DEBUG : : Looking for writers 2020/12/27 05:15:03 DEBUG : dir: reading active writers 2020/12/27 05:15:03 DEBUG : >WaitForWriters: 2020/12/27 05:15:03 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/27 05:15:03 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:15:03 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:15:03 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:15:03 DEBUG : dir/file1(0xc000ca0780): _readAt: size=512, off=0 2020/12/27 05:15:03 DEBUG : dir/file1(0xc000ca0780): openPending: 2020/12/27 05:15:03 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:15:03 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:15:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:15:03 DEBUG : dir/file1(0xc000ca0780): >openPending: err= 2020/12/27 05:15:03 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/27 05:15:03 DEBUG : dir/file1(0xc000ca0780): >_readAt: n=14, err=EOF 2020/12/27 05:15:03 DEBUG : dir/file1(0xc000ca0780): close: 2020/12/27 05:15:03 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-27 05:15:02 +0000 UTC 2020/12/27 05:15:03 DEBUG : dir/file1(0xc000ca0780): >close: err= 2020/12/27 05:15:03 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:15:03 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:15:03 DEBUG : newLeaf: Updating file with newLeaf 0xc000b82840 2020/12/27 05:15:03 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:15:03 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:15:05 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:15:05 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/27 05:15:05 DEBUG : dir/file1: Updating file with dir/file1 0xc000b82840 2020/12/27 05:15:05 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:15:05 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:15:12 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:15:12 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:15:12 DEBUG : dir/file1(0xc000c25b00): openPending: 2020/12/27 05:15:12 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:15:12 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:15:12 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:15:12 DEBUG : dir/file1(0xc000c25b00): >openPending: err= 2020/12/27 05:15:12 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:15:12 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:15:12 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:15:12 DEBUG : dir/file1(0xc000c25b00): _writeAt: size=25, off=0 2020/12/27 05:15:12 DEBUG : dir/file1(0xc000c25b00): >_writeAt: n=25, err= 2020/12/27 05:15:12 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:15:12 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:15:12 DEBUG : newLeaf: Updating file with newLeaf 0xc000b82840 2020/12/27 05:15:12 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:15:12 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:15:12 DEBUG : newLeaf(0xc000c25b00): close: 2020/12/27 05:15:12 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:15:12 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:15:12.582805126 +0000 UTC m=+88.507250258 2020/12/27 05:15:12 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:15:12 DEBUG : newLeaf(0xc000c25b00): >close: err= 2020/12/27 05:15:12 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:15:12 DEBUG : dir: Looking for writers 2020/12/27 05:15:12 DEBUG : : Looking for writers 2020/12/27 05:15:12 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:12 DEBUG : dir: reading active writers 2020/12/27 05:15:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:15:12 DEBUG : dir: Looking for writers 2020/12/27 05:15:12 DEBUG : : Looking for writers 2020/12/27 05:15:12 DEBUG : dir: reading active writers 2020/12/27 05:15:12 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:15:12 DEBUG : dir: Looking for writers 2020/12/27 05:15:12 DEBUG : : Looking for writers 2020/12/27 05:15:12 DEBUG : dir: reading active writers 2020/12/27 05:15:12 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:15:12 DEBUG : dir: Looking for writers 2020/12/27 05:15:12 DEBUG : : Looking for writers 2020/12/27 05:15:12 DEBUG : dir: reading active writers 2020/12/27 05:15:12 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:15:12 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:15:12 DEBUG : dir: Looking for writers 2020/12/27 05:15:12 DEBUG : : Looking for writers 2020/12/27 05:15:12 DEBUG : dir: reading active writers 2020/12/27 05:15:12 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:15:13 DEBUG : dir: Looking for writers 2020/12/27 05:15:13 DEBUG : : Looking for writers 2020/12/27 05:15:13 DEBUG : dir: reading active writers 2020/12/27 05:15:13 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:13 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:15:13 DEBUG : dir: Looking for writers 2020/12/27 05:15:13 DEBUG : : Looking for writers 2020/12/27 05:15:13 DEBUG : dir: reading active writers 2020/12/27 05:15:13 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:13 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/27 05:15:14 DEBUG : dir: Looking for writers 2020/12/27 05:15:14 DEBUG : : Looking for writers 2020/12/27 05:15:14 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:14 DEBUG : dir: reading active writers 2020/12/27 05:15:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:15:15 DEBUG : dir: Looking for writers 2020/12/27 05:15:15 DEBUG : : Looking for writers 2020/12/27 05:15:15 DEBUG : dir: reading active writers 2020/12/27 05:15:15 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:15:16 DEBUG : dir: Looking for writers 2020/12/27 05:15:16 DEBUG : : Looking for writers 2020/12/27 05:15:16 DEBUG : dir: reading active writers 2020/12/27 05:15:16 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/27 05:15:16 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:15:16 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:15:16 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:15:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:15:16 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:15:17 DEBUG : dir: Looking for writers 2020/12/27 05:15:17 DEBUG : : Looking for writers 2020/12/27 05:15:17 DEBUG : dir: reading active writers 2020/12/27 05:15:17 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:17 DEBUG : >WaitForWriters: 2020/12/27 05:15:17 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:15:17 DEBUG : dir: Looking for writers 2020/12/27 05:15:17 DEBUG : : Looking for writers 2020/12/27 05:15:17 DEBUG : dir: reading active writers 2020/12/27 05:15:17 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:17 DEBUG : >WaitForWriters: 2020/12/27 05:15:17 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:176: Remote "mega root 'rclone-test-befafaz7mecizeg8hohariv3'", Local "Local file system at /tmp/rclone658541070", Modify Window "876000h0m0s" 2020/12/27 05:15:18 INFO : mega root 'rclone-test-befafaz7mecizeg8hohariv3': poll-interval is not supported by this remote 2020/12/27 05:15:18 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:15:18 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:15:18 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-befafaz7mecizeg8hohariv3" 2020/12/27 05:15:18 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:15:21 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:15:21 DEBUG : dir: Looking for writers 2020/12/27 05:15:21 DEBUG : file1: reading active writers 2020/12/27 05:15:21 DEBUG : : Looking for writers 2020/12/27 05:15:21 DEBUG : dir: reading active writers 2020/12/27 05:15:21 DEBUG : >WaitForWriters: 2020/12/27 05:15:21 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/27 05:15:21 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:15:21 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:15:21 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:15:21 DEBUG : dir/file1(0xc000d46a40): _readAt: size=512, off=0 2020/12/27 05:15:21 DEBUG : dir/file1(0xc000d46a40): openPending: 2020/12/27 05:15:21 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/27 05:15:21 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:15:21 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:15:21 DEBUG : dir/file1(0xc000d46a40): >openPending: err= 2020/12/27 05:15:21 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2020/12/27 05:15:21 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2020/12/27 05:15:21 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2020/12/27 05:15:21 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2020/12/27 05:15:21 DEBUG : dir/file1(0xc000d46a40): >_readAt: n=14, err=EOF 2020/12/27 05:15:21 DEBUG : dir/file1(0xc000d46a40): close: 2020/12/27 05:15:21 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-27 05:15:19 +0000 UTC 2020/12/27 05:15:21 DEBUG : dir/file1(0xc000d46a40): >close: err= 2020/12/27 05:15:21 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:15:21 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:15:21 DEBUG : newLeaf: Updating file with newLeaf 0xc000b82c00 2020/12/27 05:15:21 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:15:21 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:15:21 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/27 05:15:21 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/27 05:15:21 DEBUG : dir/file1: Updating file with dir/file1 0xc000b82c00 2020/12/27 05:15:21 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/27 05:15:21 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:15:28 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/27 05:15:28 DEBUG : dir/file1: newRWFileHandle: 2020/12/27 05:15:28 DEBUG : dir/file1(0xc0010029c0): openPending: 2020/12/27 05:15:28 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/27 05:15:28 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/27 05:15:28 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/27 05:15:28 DEBUG : dir/file1(0xc0010029c0): >openPending: err= 2020/12/27 05:15:28 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/27 05:15:28 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/27 05:15:28 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/27 05:15:28 DEBUG : dir/file1(0xc0010029c0): _writeAt: size=25, off=0 2020/12/27 05:15:28 DEBUG : dir/file1(0xc0010029c0): >_writeAt: n=25, err= 2020/12/27 05:15:28 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/27 05:15:28 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/27 05:15:28 DEBUG : newLeaf: Updating file with newLeaf 0xc000b82c00 2020/12/27 05:15:28 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/27 05:15:28 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:15:28 DEBUG : newLeaf(0xc0010029c0): close: 2020/12/27 05:15:28 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/27 05:15:28 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-27 05:15:28.780400369 +0000 UTC m=+104.704845497 2020/12/27 05:15:28 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/27 05:15:28 DEBUG : newLeaf(0xc0010029c0): >close: err= 2020/12/27 05:15:28 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:15:28 DEBUG : dir: Looking for writers 2020/12/27 05:15:28 DEBUG : : Looking for writers 2020/12/27 05:15:28 DEBUG : dir: reading active writers 2020/12/27 05:15:28 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/27 05:15:28 DEBUG : dir: Looking for writers 2020/12/27 05:15:28 DEBUG : : Looking for writers 2020/12/27 05:15:28 DEBUG : dir: reading active writers 2020/12/27 05:15:28 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/27 05:15:29 DEBUG : dir: Looking for writers 2020/12/27 05:15:29 DEBUG : : Looking for writers 2020/12/27 05:15:29 DEBUG : dir: reading active writers 2020/12/27 05:15:29 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:29 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/27 05:15:29 DEBUG : dir: Looking for writers 2020/12/27 05:15:29 DEBUG : : Looking for writers 2020/12/27 05:15:29 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:29 DEBUG : dir: reading active writers 2020/12/27 05:15:29 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/27 05:15:29 DEBUG : newLeaf: vfs cache: starting upload 2020/12/27 05:15:29 DEBUG : dir: Looking for writers 2020/12/27 05:15:29 DEBUG : : Looking for writers 2020/12/27 05:15:29 DEBUG : dir: reading active writers 2020/12/27 05:15:29 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:29 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/27 05:15:29 DEBUG : dir: Looking for writers 2020/12/27 05:15:29 DEBUG : : Looking for writers 2020/12/27 05:15:29 DEBUG : dir: reading active writers 2020/12/27 05:15:29 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:29 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/27 05:15:29 INFO : newLeaf: Copied (replaced existing) 2020/12/27 05:15:29 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/27 05:15:29 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/27 05:15:29 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/27 05:15:29 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/27 05:15:29 DEBUG : dir: Looking for writers 2020/12/27 05:15:29 DEBUG : : Looking for writers 2020/12/27 05:15:29 DEBUG : dir: reading active writers 2020/12/27 05:15:29 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:29 DEBUG : >WaitForWriters: 2020/12/27 05:15:29 DEBUG : WaitForWriters: timeout=10s 2020/12/27 05:15:29 DEBUG : dir: Looking for writers 2020/12/27 05:15:29 DEBUG : : Looking for writers 2020/12/27 05:15:29 DEBUG : dir: reading active writers 2020/12/27 05:15:29 DEBUG : newLeaf: reading active writers 2020/12/27 05:15:29 DEBUG : >WaitForWriters: 2020/12/27 05:15:29 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (99.64s) --- FAIL: TestFileRename/off,forceCache=false (17.17s) --- FAIL: TestFileRename/minimal,forceCache=false (21.00s) --- FAIL: TestFileRename/minimal,forceCache=true (14.45s) --- FAIL: TestFileRename/writes,forceCache=false (19.39s) --- FAIL: TestFileRename/writes,forceCache=true (16.77s) --- FAIL: TestFileRename/full,forceCache=false (10.86s) FAIL 2020/12/27 05:15:29 DEBUG : mega root 'rclone-test-befafaz7mecizeg8hohariv3': 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 1m45.890113569s (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]