"./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Starting (try 5/5) 2021/05/09 06:08:31 DEBUG : Creating backend with remote "TestMega:rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:08:31 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2021/05/09 06:12:07 DEBUG : Creating backend with remote "/tmp/rclone348887344" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:176: Remote "mega root 'rclone-test-gitadug9xozuhiv7vabezoq4'", Local "Local file system at /tmp/rclone348887344", Modify Window "876000h0m0s" 2021/05/09 06:12:07 INFO : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': poll-interval is not supported by this remote 2021/05/09 06:12:07 NOTICE: mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/05/09 06:12:07 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:07 DEBUG : dir: Looking for writers 2021/05/09 06:12:07 DEBUG : file1: reading active writers 2021/05/09 06:12:07 DEBUG : : Looking for writers 2021/05/09 06:12:07 DEBUG : dir: reading active writers 2021/05/09 06:12:07 DEBUG : >WaitForWriters: 2021/05/09 06:12:07 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:12:07 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c0600 2021/05/09 06:12:07 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:12:07 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2021/05/09 06:12:15 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/05/09 06:12:15 DEBUG : dir/file1: Updating file with dir/file1 0xc0005c0600 2021/05/09 06:12:15 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/05/09 06:12:15 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2021/05/09 06:12:22 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/05/09 06:12:22 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/05/09 06:12:22 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:12:22 DEBUG : dir/file1: File is currently open, delaying rename 0xc0005c0600 2021/05/09 06:12:22 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:12:22 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:12:22 DEBUG : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': File to upload is small (25 bytes), uploading instead of streaming 2021/05/09 06:12:22 INFO : dir/file1: Copied (new) 2021/05/09 06:12:22 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:12:22 DEBUG : newLeaf: Running delayed rename now 2021/05/09 06:12:22 INFO : newLeaf: Deleted 2021/05/09 06:12:22 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:12:22 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c0600 2021/05/09 06:12:22 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:22 DEBUG : dir: Looking for writers 2021/05/09 06:12:22 DEBUG : : Looking for writers 2021/05/09 06:12:22 DEBUG : dir: reading active writers 2021/05/09 06:12:22 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:22 DEBUG : >WaitForWriters: 2021/05/09 06:12:22 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:22 DEBUG : dir: Looking for writers 2021/05/09 06:12:22 DEBUG : : Looking for writers 2021/05/09 06:12:22 DEBUG : dir: reading active writers 2021/05/09 06:12:22 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:22 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:176: Remote "mega root 'rclone-test-gitadug9xozuhiv7vabezoq4'", Local "Local file system at /tmp/rclone348887344", Modify Window "876000h0m0s" 2021/05/09 06:12:23 INFO : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': poll-interval is not supported by this remote 2021/05/09 06:12:23 NOTICE: mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/05/09 06:12:23 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:23 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:23 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:23 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/05/09 06:12:23 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:23 DEBUG : dir: Looking for writers 2021/05/09 06:12:23 DEBUG : file1: reading active writers 2021/05/09 06:12:23 DEBUG : : Looking for writers 2021/05/09 06:12:23 DEBUG : dir: reading active writers 2021/05/09 06:12:23 DEBUG : >WaitForWriters: 2021/05/09 06:12:23 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:12:23 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a1d40 2021/05/09 06:12:23 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:12:23 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "file1" 2021/05/09 06:12:30 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/05/09 06:12:30 DEBUG : dir/file1: Updating file with dir/file1 0xc0001a1d40 2021/05/09 06:12:30 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/05/09 06:12:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2021/05/09 06:12:37 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/05/09 06:12:37 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/05/09 06:12:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:12:37 DEBUG : dir/file1: File is currently open, delaying rename 0xc0001a1d40 2021/05/09 06:12:37 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:12:37 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:12:37 DEBUG : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': File to upload is small (25 bytes), uploading instead of streaming 2021/05/09 06:12:38 INFO : dir/file1: Copied (new) 2021/05/09 06:12:38 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:12:38 DEBUG : newLeaf: Running delayed rename now 2021/05/09 06:12:38 INFO : newLeaf: Deleted 2021/05/09 06:12:38 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:12:38 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a1d40 2021/05/09 06:12:38 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:38 DEBUG : dir: Looking for writers 2021/05/09 06:12:38 DEBUG : : Looking for writers 2021/05/09 06:12:38 DEBUG : dir: reading active writers 2021/05/09 06:12:38 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:38 DEBUG : >WaitForWriters: 2021/05/09 06:12:38 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:38 DEBUG : dir: Looking for writers 2021/05/09 06:12:38 DEBUG : : Looking for writers 2021/05/09 06:12:38 DEBUG : dir: reading active writers 2021/05/09 06:12:38 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:38 DEBUG : >WaitForWriters: 2021/05/09 06:12:38 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:176: Remote "mega root 'rclone-test-gitadug9xozuhiv7vabezoq4'", Local "Local file system at /tmp/rclone348887344", Modify Window "876000h0m0s" 2021/05/09 06:12:38 INFO : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': poll-interval is not supported by this remote 2021/05/09 06:12:38 NOTICE: mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/05/09 06:12:38 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:38 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:38 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:38 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/05/09 06:12:38 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/05/09 06:12:38 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:12:38 DEBUG : dir/file1(0xc001554580): openPending: 2021/05/09 06:12:38 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/05/09 06:12:38 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:12:38 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:12:38 DEBUG : dir/file1(0xc001554580): >openPending: err= 2021/05/09 06:12:38 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/05/09 06:12:38 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:12:38 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:12:38 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:12:38 DEBUG : dir/file1(0xc001554580): _writeAt: size=14, off=0 2021/05/09 06:12:38 DEBUG : dir/file1(0xc001554580): >_writeAt: n=14, err= 2021/05/09 06:12:38 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/05/09 06:12:38 DEBUG : dir/file1(0xc001554580): close: 2021/05/09 06:12:38 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/05/09 06:12:38 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/05/09 06:12:38 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/05/09 06:12:38 DEBUG : dir/file1(0xc001554580): >close: err= 2021/05/09 06:12:38 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:38 DEBUG : dir: Looking for writers 2021/05/09 06:12:38 DEBUG : file1: reading active writers 2021/05/09 06:12:38 DEBUG : : Looking for writers 2021/05/09 06:12:38 DEBUG : dir: reading active writers 2021/05/09 06:12:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/05/09 06:12:38 DEBUG : dir: Looking for writers 2021/05/09 06:12:38 DEBUG : file1: reading active writers 2021/05/09 06:12:38 DEBUG : : Looking for writers 2021/05/09 06:12:38 DEBUG : dir: reading active writers 2021/05/09 06:12:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/05/09 06:12:38 DEBUG : dir: Looking for writers 2021/05/09 06:12:38 DEBUG : file1: reading active writers 2021/05/09 06:12:38 DEBUG : : Looking for writers 2021/05/09 06:12:38 DEBUG : dir: reading active writers 2021/05/09 06:12:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/05/09 06:12:38 DEBUG : dir: Looking for writers 2021/05/09 06:12:38 DEBUG : file1: reading active writers 2021/05/09 06:12:38 DEBUG : : Looking for writers 2021/05/09 06:12:38 DEBUG : dir: reading active writers 2021/05/09 06:12:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/05/09 06:12:38 DEBUG : dir/file1: vfs cache: starting upload 2021/05/09 06:12:38 DEBUG : dir: Looking for writers 2021/05/09 06:12:38 DEBUG : file1: reading active writers 2021/05/09 06:12:38 DEBUG : : Looking for writers 2021/05/09 06:12:38 DEBUG : dir: reading active writers 2021/05/09 06:12:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/05/09 06:12:39 INFO : dir/file1: Copied (replaced existing) 2021/05/09 06:12:39 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/05/09 06:12:39 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/05/09 06:12:39 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:12:39 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/05/09 06:12:39 DEBUG : dir: Looking for writers 2021/05/09 06:12:39 DEBUG : file1: reading active writers 2021/05/09 06:12:39 DEBUG : : Looking for writers 2021/05/09 06:12:39 DEBUG : dir: reading active writers 2021/05/09 06:12:39 DEBUG : >WaitForWriters: 2021/05/09 06:12:39 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/05/09 06:12:39 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:12:39 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:12:39 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:12:39 DEBUG : dir/file1(0xc0015e83c0): _readAt: size=512, off=0 2021/05/09 06:12:39 DEBUG : dir/file1(0xc0015e83c0): openPending: 2021/05/09 06:12:39 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/05/09 06:12:39 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:12:39 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:12:39 DEBUG : dir/file1(0xc0015e83c0): >openPending: err= 2021/05/09 06:12:39 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/05/09 06:12:39 DEBUG : dir/file1(0xc0015e83c0): >_readAt: n=14, err=EOF 2021/05/09 06:12:39 DEBUG : dir/file1(0xc0015e83c0): close: 2021/05/09 06:12:39 DEBUG : dir/file1: vfs cache: setting modification time to 2021-05-09 06:12:38 +0000 UTC 2021/05/09 06:12:39 DEBUG : dir/file1(0xc0015e83c0): >close: err= 2021/05/09 06:12:39 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:12:39 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/05/09 06:12:39 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c1380 2021/05/09 06:12:39 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:12:39 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:12:39 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/05/09 06:12:39 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/05/09 06:12:39 DEBUG : dir/file1: Updating file with dir/file1 0xc0005c1380 2021/05/09 06:12:39 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/05/09 06:12:39 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2021/05/09 06:12:46 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/05/09 06:12:46 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:12:46 DEBUG : dir/file1(0xc001555180): openPending: 2021/05/09 06:12:46 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/05/09 06:12:46 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:12:46 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:12:46 DEBUG : dir/file1(0xc001555180): >openPending: err= 2021/05/09 06:12:46 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/05/09 06:12:46 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:12:46 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:12:46 DEBUG : dir/file1(0xc001555180): _writeAt: size=25, off=0 2021/05/09 06:12:46 DEBUG : dir/file1(0xc001555180): >_writeAt: n=25, err= 2021/05/09 06:12:46 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:12:46 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/05/09 06:12:46 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c1380 2021/05/09 06:12:46 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:12:46 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:12:46 DEBUG : newLeaf(0xc001555180): close: 2021/05/09 06:12:46 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/05/09 06:12:46 DEBUG : newLeaf: vfs cache: setting modification time to 2021-05-09 06:12:46.58955001 +0000 UTC m=+255.112872538 2021/05/09 06:12:46 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/05/09 06:12:46 DEBUG : newLeaf(0xc001555180): >close: err= 2021/05/09 06:12:46 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:46 DEBUG : dir: Looking for writers 2021/05/09 06:12:46 DEBUG : : Looking for writers 2021/05/09 06:12:46 DEBUG : dir: reading active writers 2021/05/09 06:12:46 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/05/09 06:12:46 DEBUG : dir: Looking for writers 2021/05/09 06:12:46 DEBUG : : Looking for writers 2021/05/09 06:12:46 DEBUG : dir: reading active writers 2021/05/09 06:12:46 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/05/09 06:12:46 DEBUG : dir: Looking for writers 2021/05/09 06:12:46 DEBUG : : Looking for writers 2021/05/09 06:12:46 DEBUG : dir: reading active writers 2021/05/09 06:12:46 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/05/09 06:12:46 DEBUG : dir: Looking for writers 2021/05/09 06:12:46 DEBUG : : Looking for writers 2021/05/09 06:12:46 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:46 DEBUG : dir: reading active writers 2021/05/09 06:12:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/05/09 06:12:46 DEBUG : newLeaf: vfs cache: starting upload 2021/05/09 06:12:46 DEBUG : dir: Looking for writers 2021/05/09 06:12:46 DEBUG : : Looking for writers 2021/05/09 06:12:46 DEBUG : dir: reading active writers 2021/05/09 06:12:46 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/05/09 06:12:47 DEBUG : dir: Looking for writers 2021/05/09 06:12:47 DEBUG : : Looking for writers 2021/05/09 06:12:47 DEBUG : dir: reading active writers 2021/05/09 06:12:47 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/05/09 06:12:47 INFO : newLeaf: Copied (replaced existing) 2021/05/09 06:12:47 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/05/09 06:12:47 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/05/09 06:12:47 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:12:47 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/05/09 06:12:47 DEBUG : dir: Looking for writers 2021/05/09 06:12:47 DEBUG : : Looking for writers 2021/05/09 06:12:47 DEBUG : dir: reading active writers 2021/05/09 06:12:47 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:47 DEBUG : >WaitForWriters: 2021/05/09 06:12:47 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:47 DEBUG : dir: Looking for writers 2021/05/09 06:12:47 DEBUG : : Looking for writers 2021/05/09 06:12:47 DEBUG : dir: reading active writers 2021/05/09 06:12:47 DEBUG : newLeaf: reading active writers 2021/05/09 06:12:47 DEBUG : >WaitForWriters: 2021/05/09 06:12:47 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:176: Remote "mega root 'rclone-test-gitadug9xozuhiv7vabezoq4'", Local "Local file system at /tmp/rclone348887344", Modify Window "876000h0m0s" 2021/05/09 06:12:47 INFO : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': poll-interval is not supported by this remote 2021/05/09 06:12:47 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:47 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:47 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:12:47 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/05/09 06:12:48 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:12:48 DEBUG : dir: Looking for writers 2021/05/09 06:12:48 DEBUG : file1: reading active writers 2021/05/09 06:12:48 DEBUG : : Looking for writers 2021/05/09 06:12:48 DEBUG : dir: reading active writers 2021/05/09 06:12:48 DEBUG : >WaitForWriters: 2021/05/09 06:12:48 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:12:48 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c1a40 2021/05/09 06:12:48 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:12:48 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "file1" 2021/05/09 06:12:55 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/05/09 06:12:55 DEBUG : dir/file1: Updating file with dir/file1 0xc0005c1a40 2021/05/09 06:12:55 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/05/09 06:12:55 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2021/05/09 06:13:02 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/05/09 06:13:02 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:13:02 DEBUG : dir/file1(0xc0017b6900): openPending: 2021/05/09 06:13:02 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/05/09 06:13:02 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:13:02 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:02 DEBUG : dir/file1(0xc0017b6900): >openPending: err= 2021/05/09 06:13:02 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/05/09 06:13:02 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:13:02 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:13:02 DEBUG : dir/file1(0xc0017b6900): _writeAt: size=25, off=0 2021/05/09 06:13:02 DEBUG : dir/file1(0xc0017b6900): >_writeAt: n=25, err= 2021/05/09 06:13:02 INFO : newLeaf: Deleted 2021/05/09 06:13:02 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:13:02 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/05/09 06:13:02 DEBUG : newLeaf: Updating file with newLeaf 0xc0005c1a40 2021/05/09 06:13:02 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:13:02 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:02 DEBUG : newLeaf(0xc0017b6900): close: 2021/05/09 06:13:02 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/05/09 06:13:02 DEBUG : newLeaf: vfs cache: setting modification time to 2021-05-09 06:13:02.473739584 +0000 UTC m=+270.997062120 2021/05/09 06:13:02 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/05/09 06:13:02 DEBUG : newLeaf(0xc0017b6900): >close: err= 2021/05/09 06:13:02 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:02 DEBUG : dir: Looking for writers 2021/05/09 06:13:02 DEBUG : : Looking for writers 2021/05/09 06:13:02 DEBUG : dir: reading active writers 2021/05/09 06:13:02 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/05/09 06:13:02 DEBUG : dir: Looking for writers 2021/05/09 06:13:02 DEBUG : : Looking for writers 2021/05/09 06:13:02 DEBUG : dir: reading active writers 2021/05/09 06:13:02 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/05/09 06:13:02 DEBUG : dir: Looking for writers 2021/05/09 06:13:02 DEBUG : : Looking for writers 2021/05/09 06:13:02 DEBUG : dir: reading active writers 2021/05/09 06:13:02 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/05/09 06:13:02 DEBUG : dir: Looking for writers 2021/05/09 06:13:02 DEBUG : : Looking for writers 2021/05/09 06:13:02 DEBUG : dir: reading active writers 2021/05/09 06:13:02 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/05/09 06:13:02 DEBUG : newLeaf: vfs cache: starting upload 2021/05/09 06:13:02 DEBUG : dir: Looking for writers 2021/05/09 06:13:02 DEBUG : : Looking for writers 2021/05/09 06:13:02 DEBUG : dir: reading active writers 2021/05/09 06:13:02 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/05/09 06:13:03 DEBUG : dir: Looking for writers 2021/05/09 06:13:03 DEBUG : : Looking for writers 2021/05/09 06:13:03 DEBUG : dir: reading active writers 2021/05/09 06:13:03 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/05/09 06:13:03 INFO : newLeaf: Copied (replaced existing) 2021/05/09 06:13:03 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/05/09 06:13:03 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/05/09 06:13:03 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:03 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/05/09 06:13:03 DEBUG : dir: Looking for writers 2021/05/09 06:13:03 DEBUG : : Looking for writers 2021/05/09 06:13:03 DEBUG : dir: reading active writers 2021/05/09 06:13:03 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:03 DEBUG : >WaitForWriters: 2021/05/09 06:13:03 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:03 DEBUG : dir: Looking for writers 2021/05/09 06:13:03 DEBUG : : Looking for writers 2021/05/09 06:13:03 DEBUG : dir: reading active writers 2021/05/09 06:13:03 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:03 DEBUG : >WaitForWriters: 2021/05/09 06:13:03 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:176: Remote "mega root 'rclone-test-gitadug9xozuhiv7vabezoq4'", Local "Local file system at /tmp/rclone348887344", Modify Window "876000h0m0s" 2021/05/09 06:13:03 INFO : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': poll-interval is not supported by this remote 2021/05/09 06:13:03 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:13:03 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:13:03 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:13:03 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/05/09 06:13:03 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/05/09 06:13:03 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:13:03 DEBUG : dir/file1(0xc00176b980): openPending: 2021/05/09 06:13:03 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/05/09 06:13:03 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:13:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:03 DEBUG : dir/file1(0xc00176b980): >openPending: err= 2021/05/09 06:13:03 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/05/09 06:13:03 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:13:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:03 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:13:03 DEBUG : dir/file1(0xc00176b980): _writeAt: size=14, off=0 2021/05/09 06:13:03 DEBUG : dir/file1(0xc00176b980): >_writeAt: n=14, err= 2021/05/09 06:13:03 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/05/09 06:13:03 DEBUG : dir/file1(0xc00176b980): close: 2021/05/09 06:13:03 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/05/09 06:13:03 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/05/09 06:13:03 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/05/09 06:13:03 DEBUG : dir/file1(0xc00176b980): >close: err= 2021/05/09 06:13:03 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:03 DEBUG : dir: Looking for writers 2021/05/09 06:13:03 DEBUG : file1: reading active writers 2021/05/09 06:13:03 DEBUG : : Looking for writers 2021/05/09 06:13:03 DEBUG : dir: reading active writers 2021/05/09 06:13:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/05/09 06:13:03 DEBUG : dir: Looking for writers 2021/05/09 06:13:03 DEBUG : file1: reading active writers 2021/05/09 06:13:03 DEBUG : : Looking for writers 2021/05/09 06:13:03 DEBUG : dir: reading active writers 2021/05/09 06:13:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/05/09 06:13:03 DEBUG : dir: Looking for writers 2021/05/09 06:13:03 DEBUG : file1: reading active writers 2021/05/09 06:13:03 DEBUG : : Looking for writers 2021/05/09 06:13:03 DEBUG : dir: reading active writers 2021/05/09 06:13:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/05/09 06:13:04 DEBUG : dir: Looking for writers 2021/05/09 06:13:04 DEBUG : file1: reading active writers 2021/05/09 06:13:04 DEBUG : : Looking for writers 2021/05/09 06:13:04 DEBUG : dir: reading active writers 2021/05/09 06:13:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/05/09 06:13:04 DEBUG : dir/file1: vfs cache: starting upload 2021/05/09 06:13:04 DEBUG : dir: Looking for writers 2021/05/09 06:13:04 DEBUG : file1: reading active writers 2021/05/09 06:13:04 DEBUG : : Looking for writers 2021/05/09 06:13:04 DEBUG : dir: reading active writers 2021/05/09 06:13:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/05/09 06:13:04 DEBUG : dir: Looking for writers 2021/05/09 06:13:04 DEBUG : file1: reading active writers 2021/05/09 06:13:04 DEBUG : : Looking for writers 2021/05/09 06:13:04 DEBUG : dir: reading active writers 2021/05/09 06:13:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/05/09 06:13:04 INFO : dir/file1: Copied (replaced existing) 2021/05/09 06:13:04 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/05/09 06:13:04 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/05/09 06:13:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:04 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/05/09 06:13:04 DEBUG : dir: Looking for writers 2021/05/09 06:13:04 DEBUG : file1: reading active writers 2021/05/09 06:13:04 DEBUG : : Looking for writers 2021/05/09 06:13:04 DEBUG : dir: reading active writers 2021/05/09 06:13:04 DEBUG : >WaitForWriters: 2021/05/09 06:13:04 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/05/09 06:13:04 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:13:04 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:13:04 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:13:04 DEBUG : dir/file1(0xc00176bec0): _readAt: size=512, off=0 2021/05/09 06:13:04 DEBUG : dir/file1(0xc00176bec0): openPending: 2021/05/09 06:13:04 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/05/09 06:13:04 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:13:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:04 DEBUG : dir/file1(0xc00176bec0): >openPending: err= 2021/05/09 06:13:04 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/05/09 06:13:04 DEBUG : dir/file1(0xc00176bec0): >_readAt: n=14, err=EOF 2021/05/09 06:13:04 DEBUG : dir/file1(0xc00176bec0): close: 2021/05/09 06:13:04 DEBUG : dir/file1: vfs cache: setting modification time to 2021-05-09 06:13:04 +0000 UTC 2021/05/09 06:13:04 DEBUG : dir/file1(0xc00176bec0): >close: err= 2021/05/09 06:13:04 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:13:04 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/05/09 06:13:04 DEBUG : newLeaf: Updating file with newLeaf 0xc0018760c0 2021/05/09 06:13:04 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:13:04 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:05 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/05/09 06:13:05 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/05/09 06:13:05 DEBUG : dir/file1: Updating file with dir/file1 0xc0018760c0 2021/05/09 06:13:05 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/05/09 06:13:05 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2021/05/09 06:13:12 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/05/09 06:13:12 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:13:12 DEBUG : dir/file1(0xc001afcbc0): openPending: 2021/05/09 06:13:12 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/05/09 06:13:12 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:13:12 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:12 DEBUG : dir/file1(0xc001afcbc0): >openPending: err= 2021/05/09 06:13:12 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/05/09 06:13:12 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:13:12 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:13:12 DEBUG : dir/file1(0xc001afcbc0): _writeAt: size=25, off=0 2021/05/09 06:13:12 DEBUG : dir/file1(0xc001afcbc0): >_writeAt: n=25, err= 2021/05/09 06:13:12 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:13:12 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/05/09 06:13:12 DEBUG : newLeaf: Updating file with newLeaf 0xc0018760c0 2021/05/09 06:13:12 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:13:12 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:12 DEBUG : newLeaf(0xc001afcbc0): close: 2021/05/09 06:13:12 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/05/09 06:13:12 DEBUG : newLeaf: vfs cache: setting modification time to 2021-05-09 06:13:12.133905841 +0000 UTC m=+280.657228385 2021/05/09 06:13:12 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/05/09 06:13:12 DEBUG : newLeaf(0xc001afcbc0): >close: err= 2021/05/09 06:13:12 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:12 DEBUG : dir: Looking for writers 2021/05/09 06:13:12 DEBUG : : Looking for writers 2021/05/09 06:13:12 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:12 DEBUG : dir: reading active writers 2021/05/09 06:13:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/05/09 06:13:12 DEBUG : dir: Looking for writers 2021/05/09 06:13:12 DEBUG : : Looking for writers 2021/05/09 06:13:12 DEBUG : dir: reading active writers 2021/05/09 06:13:12 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/05/09 06:13:12 DEBUG : dir: Looking for writers 2021/05/09 06:13:12 DEBUG : : Looking for writers 2021/05/09 06:13:12 DEBUG : dir: reading active writers 2021/05/09 06:13:12 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/05/09 06:13:12 DEBUG : dir: Looking for writers 2021/05/09 06:13:12 DEBUG : : Looking for writers 2021/05/09 06:13:12 DEBUG : dir: reading active writers 2021/05/09 06:13:12 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/05/09 06:13:12 DEBUG : newLeaf: vfs cache: starting upload 2021/05/09 06:13:12 DEBUG : dir: Looking for writers 2021/05/09 06:13:12 DEBUG : : Looking for writers 2021/05/09 06:13:12 DEBUG : dir: reading active writers 2021/05/09 06:13:12 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/05/09 06:13:12 DEBUG : dir: Looking for writers 2021/05/09 06:13:12 DEBUG : : Looking for writers 2021/05/09 06:13:12 DEBUG : dir: reading active writers 2021/05/09 06:13:12 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/05/09 06:13:12 INFO : newLeaf: Copied (replaced existing) 2021/05/09 06:13:12 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/05/09 06:13:12 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/05/09 06:13:12 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:12 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/05/09 06:13:13 DEBUG : dir: Looking for writers 2021/05/09 06:13:13 DEBUG : : Looking for writers 2021/05/09 06:13:13 DEBUG : dir: reading active writers 2021/05/09 06:13:13 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:13 DEBUG : >WaitForWriters: 2021/05/09 06:13:13 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:13 DEBUG : dir: Looking for writers 2021/05/09 06:13:13 DEBUG : : Looking for writers 2021/05/09 06:13:13 DEBUG : dir: reading active writers 2021/05/09 06:13:13 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:13 DEBUG : >WaitForWriters: 2021/05/09 06:13:13 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:176: Remote "mega root 'rclone-test-gitadug9xozuhiv7vabezoq4'", Local "Local file system at /tmp/rclone348887344", Modify Window "876000h0m0s" 2021/05/09 06:13:13 INFO : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': poll-interval is not supported by this remote 2021/05/09 06:13:13 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:13:13 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:13:13 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-gitadug9xozuhiv7vabezoq4" 2021/05/09 06:13:13 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/05/09 06:13:13 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:13 DEBUG : dir: Looking for writers 2021/05/09 06:13:13 DEBUG : file1: reading active writers 2021/05/09 06:13:13 DEBUG : : Looking for writers 2021/05/09 06:13:13 DEBUG : dir: reading active writers 2021/05/09 06:13:13 DEBUG : >WaitForWriters: 2021/05/09 06:13:13 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/05/09 06:13:13 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:13:13 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:13:13 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:13:13 DEBUG : dir/file1(0xc001b3d2c0): _readAt: size=512, off=0 2021/05/09 06:13:13 DEBUG : dir/file1(0xc001b3d2c0): openPending: 2021/05/09 06:13:13 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/05/09 06:13:13 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:13:13 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:13 DEBUG : dir/file1(0xc001b3d2c0): >openPending: err= 2021/05/09 06:13:13 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2021/05/09 06:13:13 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2021/05/09 06:13:13 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2021/05/09 06:13:13 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2021/05/09 06:13:14 DEBUG : dir/file1(0xc001b3d2c0): >_readAt: n=14, err=EOF 2021/05/09 06:13:14 DEBUG : dir/file1(0xc001b3d2c0): close: 2021/05/09 06:13:14 DEBUG : dir/file1: vfs cache: setting modification time to 2021-05-09 06:13:13 +0000 UTC 2021/05/09 06:13:14 DEBUG : dir/file1(0xc001b3d2c0): >close: err= 2021/05/09 06:13:14 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:13:14 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/05/09 06:13:14 DEBUG : newLeaf: Updating file with newLeaf 0xc001876b40 2021/05/09 06:13:14 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:13:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:14 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/05/09 06:13:14 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/05/09 06:13:14 DEBUG : dir/file1: Updating file with dir/file1 0xc001876b40 2021/05/09 06:13:14 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/05/09 06:13:14 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2021/05/09 06:13:21 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/05/09 06:13:21 DEBUG : dir/file1: newRWFileHandle: 2021/05/09 06:13:21 DEBUG : dir/file1(0xc001d04980): openPending: 2021/05/09 06:13:21 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/05/09 06:13:21 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/05/09 06:13:21 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/05/09 06:13:21 DEBUG : dir/file1(0xc001d04980): >openPending: err= 2021/05/09 06:13:21 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/05/09 06:13:21 DEBUG : dir/file1: >newRWFileHandle: err= 2021/05/09 06:13:21 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/05/09 06:13:21 DEBUG : dir/file1(0xc001d04980): _writeAt: size=25, off=0 2021/05/09 06:13:21 DEBUG : dir/file1(0xc001d04980): >_writeAt: n=25, err= 2021/05/09 06:13:21 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/05/09 06:13:21 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/05/09 06:13:21 DEBUG : newLeaf: Updating file with newLeaf 0xc001876b40 2021/05/09 06:13:21 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/05/09 06:13:21 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:21 DEBUG : newLeaf(0xc001d04980): close: 2021/05/09 06:13:21 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/05/09 06:13:21 DEBUG : newLeaf: vfs cache: setting modification time to 2021-05-09 06:13:21.534915979 +0000 UTC m=+290.058238521 2021/05/09 06:13:21 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/05/09 06:13:21 DEBUG : newLeaf(0xc001d04980): >close: err= 2021/05/09 06:13:21 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:21 DEBUG : dir: Looking for writers 2021/05/09 06:13:21 DEBUG : : Looking for writers 2021/05/09 06:13:21 DEBUG : dir: reading active writers 2021/05/09 06:13:21 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/05/09 06:13:21 DEBUG : dir: Looking for writers 2021/05/09 06:13:21 DEBUG : : Looking for writers 2021/05/09 06:13:21 DEBUG : dir: reading active writers 2021/05/09 06:13:21 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/05/09 06:13:21 DEBUG : dir: Looking for writers 2021/05/09 06:13:21 DEBUG : : Looking for writers 2021/05/09 06:13:21 DEBUG : dir: reading active writers 2021/05/09 06:13:21 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/05/09 06:13:21 DEBUG : dir: Looking for writers 2021/05/09 06:13:21 DEBUG : : Looking for writers 2021/05/09 06:13:21 DEBUG : dir: reading active writers 2021/05/09 06:13:21 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/05/09 06:13:21 DEBUG : newLeaf: vfs cache: starting upload 2021/05/09 06:13:21 DEBUG : dir: Looking for writers 2021/05/09 06:13:21 DEBUG : : Looking for writers 2021/05/09 06:13:21 DEBUG : dir: reading active writers 2021/05/09 06:13:21 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/05/09 06:13:22 DEBUG : dir: Looking for writers 2021/05/09 06:13:22 DEBUG : : Looking for writers 2021/05/09 06:13:22 DEBUG : dir: reading active writers 2021/05/09 06:13:22 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/05/09 06:13:22 INFO : newLeaf: Copied (replaced existing) 2021/05/09 06:13:22 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/05/09 06:13:22 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/05/09 06:13:22 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/05/09 06:13:22 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/05/09 06:13:22 DEBUG : dir: Looking for writers 2021/05/09 06:13:22 DEBUG : : Looking for writers 2021/05/09 06:13:22 DEBUG : dir: reading active writers 2021/05/09 06:13:22 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:22 DEBUG : >WaitForWriters: 2021/05/09 06:13:22 DEBUG : WaitForWriters: timeout=10s 2021/05/09 06:13:22 DEBUG : dir: Looking for writers 2021/05/09 06:13:22 DEBUG : : Looking for writers 2021/05/09 06:13:22 DEBUG : dir: reading active writers 2021/05/09 06:13:22 DEBUG : newLeaf: reading active writers 2021/05/09 06:13:22 DEBUG : >WaitForWriters: 2021/05/09 06:13:22 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (75.31s) --- FAIL: TestFileRename/off,forceCache=false (15.63s) --- FAIL: TestFileRename/minimal,forceCache=false (15.51s) --- FAIL: TestFileRename/minimal,forceCache=true (9.19s) --- FAIL: TestFileRename/writes,forceCache=false (16.02s) --- FAIL: TestFileRename/writes,forceCache=true (9.52s) --- FAIL: TestFileRename/full,forceCache=false (9.44s) FAIL 2021/05/09 06:13:22 DEBUG : mega root 'rclone-test-gitadug9xozuhiv7vabezoq4': 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 4m51.396709245s (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]