"./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 2/5) 2021/03/23 05:59:32 DEBUG : Creating backend with remote "TestMega:rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:01:36 DEBUG : Creating backend with remote "/tmp/rclone003574287" 2021/03/23 06:01:36 DEBUG : Config file has changed externaly - reloading === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:176: Remote "mega root 'rclone-test-diwiqak1nawiteb5dobizan1'", Local "Local file system at /tmp/rclone003574287", Modify Window "876000h0m0s" 2021/03/23 06:01:36 INFO : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': poll-interval is not supported by this remote 2021/03/23 06:01:36 NOTICE: mega root 'rclone-test-diwiqak1nawiteb5dobizan1': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/03/23 06:01:36 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:01:36 DEBUG : dir: Looking for writers 2021/03/23 06:01:36 DEBUG : file1: reading active writers 2021/03/23 06:01:36 DEBUG : : Looking for writers 2021/03/23 06:01:36 DEBUG : dir: reading active writers 2021/03/23 06:01:36 DEBUG : >WaitForWriters: 2021/03/23 06:01:36 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:01:36 DEBUG : newLeaf: Updating file with newLeaf 0xc000b7e3c0 2021/03/23 06:01:36 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:01:36 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/03/23 06:01:44 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/23 06:01:44 DEBUG : dir/file1: Updating file with dir/file1 0xc000b7e3c0 2021/03/23 06:01:44 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/23 06:01:44 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/03/23 06:01:51 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/23 06:01:51 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/03/23 06:01:51 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:01:51 DEBUG : dir/file1: File is currently open, delaying rename 0xc000b7e3c0 2021/03/23 06:01:51 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:01:51 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:01:51 DEBUG : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': File to upload is small (25 bytes), uploading instead of streaming 2021/03/23 06:01:51 INFO : dir/file1: Copied (new) 2021/03/23 06:01:51 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:01:51 DEBUG : newLeaf: Running delayed rename now 2021/03/23 06:01:51 INFO : newLeaf: Deleted 2021/03/23 06:01:51 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:01:51 DEBUG : newLeaf: Updating file with newLeaf 0xc000b7e3c0 2021/03/23 06:01:51 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:01:51 DEBUG : dir: Looking for writers 2021/03/23 06:01:51 DEBUG : : Looking for writers 2021/03/23 06:01:51 DEBUG : dir: reading active writers 2021/03/23 06:01:51 DEBUG : newLeaf: reading active writers 2021/03/23 06:01:51 DEBUG : >WaitForWriters: 2021/03/23 06:01:51 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:01:51 DEBUG : dir: Looking for writers 2021/03/23 06:01:51 DEBUG : : Looking for writers 2021/03/23 06:01:51 DEBUG : dir: reading active writers 2021/03/23 06:01:51 DEBUG : newLeaf: reading active writers 2021/03/23 06:01:51 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:176: Remote "mega root 'rclone-test-diwiqak1nawiteb5dobizan1'", Local "Local file system at /tmp/rclone003574287", Modify Window "876000h0m0s" 2021/03/23 06:01:51 INFO : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': poll-interval is not supported by this remote 2021/03/23 06:01:51 NOTICE: mega root 'rclone-test-diwiqak1nawiteb5dobizan1': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/03/23 06:01:51 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:01:51 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:01:51 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:01:51 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/23 06:01:51 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:01:51 DEBUG : dir: Looking for writers 2021/03/23 06:01:51 DEBUG : file1: reading active writers 2021/03/23 06:01:51 DEBUG : : Looking for writers 2021/03/23 06:01:51 DEBUG : dir: reading active writers 2021/03/23 06:01:51 DEBUG : >WaitForWriters: 2021/03/23 06:01:51 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:01:51 DEBUG : newLeaf: Updating file with newLeaf 0xc000119b00 2021/03/23 06:01:51 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:01:51 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/03/23 06:01:59 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/23 06:01:59 DEBUG : dir/file1: Updating file with dir/file1 0xc000119b00 2021/03/23 06:01:59 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/23 06:01:59 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/03/23 06:02:06 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/23 06:02:06 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/03/23 06:02:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:06 DEBUG : dir/file1: File is currently open, delaying rename 0xc000119b00 2021/03/23 06:02:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:06 DEBUG : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': File to upload is small (25 bytes), uploading instead of streaming 2021/03/23 06:02:06 INFO : dir/file1: Copied (new) 2021/03/23 06:02:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:06 DEBUG : newLeaf: Running delayed rename now 2021/03/23 06:02:06 INFO : newLeaf: Deleted 2021/03/23 06:02:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:06 DEBUG : newLeaf: Updating file with newLeaf 0xc000119b00 2021/03/23 06:02:06 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:06 DEBUG : dir: Looking for writers 2021/03/23 06:02:06 DEBUG : : Looking for writers 2021/03/23 06:02:06 DEBUG : dir: reading active writers 2021/03/23 06:02:06 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:06 DEBUG : >WaitForWriters: 2021/03/23 06:02:06 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:06 DEBUG : dir: Looking for writers 2021/03/23 06:02:06 DEBUG : : Looking for writers 2021/03/23 06:02:06 DEBUG : dir: reading active writers 2021/03/23 06:02:06 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:06 DEBUG : >WaitForWriters: 2021/03/23 06:02:06 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:176: Remote "mega root 'rclone-test-diwiqak1nawiteb5dobizan1'", Local "Local file system at /tmp/rclone003574287", Modify Window "876000h0m0s" 2021/03/23 06:02:06 INFO : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': poll-interval is not supported by this remote 2021/03/23 06:02:06 NOTICE: mega root 'rclone-test-diwiqak1nawiteb5dobizan1': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/03/23 06:02:06 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:06 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:06 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:06 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/23 06:02:06 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/03/23 06:02:06 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:06 DEBUG : dir/file1(0xc000ec9a00): openPending: 2021/03/23 06:02:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/23 06:02:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:06 DEBUG : dir/file1(0xc000ec9a00): >openPending: err= 2021/03/23 06:02:06 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/23 06:02:06 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:06 DEBUG : dir/file1(0xc000ec9a00): _writeAt: size=14, off=0 2021/03/23 06:02:06 DEBUG : dir/file1(0xc000ec9a00): >_writeAt: n=14, err= 2021/03/23 06:02:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/23 06:02:06 DEBUG : dir/file1(0xc000ec9a00): close: 2021/03/23 06:02:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/23 06:02:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/23 06:02:06 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/03/23 06:02:06 DEBUG : dir/file1(0xc000ec9a00): >close: err= 2021/03/23 06:02:06 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:06 DEBUG : dir: Looking for writers 2021/03/23 06:02:06 DEBUG : file1: reading active writers 2021/03/23 06:02:06 DEBUG : : Looking for writers 2021/03/23 06:02:06 DEBUG : dir: reading active writers 2021/03/23 06:02:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/23 06:02:06 DEBUG : dir: Looking for writers 2021/03/23 06:02:06 DEBUG : file1: reading active writers 2021/03/23 06:02:06 DEBUG : : Looking for writers 2021/03/23 06:02:06 DEBUG : dir: reading active writers 2021/03/23 06:02:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/23 06:02:06 DEBUG : dir: Looking for writers 2021/03/23 06:02:06 DEBUG : file1: reading active writers 2021/03/23 06:02:06 DEBUG : : Looking for writers 2021/03/23 06:02:06 DEBUG : dir: reading active writers 2021/03/23 06:02:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/23 06:02:07 DEBUG : dir: Looking for writers 2021/03/23 06:02:07 DEBUG : file1: reading active writers 2021/03/23 06:02:07 DEBUG : : Looking for writers 2021/03/23 06:02:07 DEBUG : dir: reading active writers 2021/03/23 06:02:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/23 06:02:07 DEBUG : dir/file1: vfs cache: starting upload 2021/03/23 06:02:07 DEBUG : dir: Looking for writers 2021/03/23 06:02:07 DEBUG : file1: reading active writers 2021/03/23 06:02:07 DEBUG : : Looking for writers 2021/03/23 06:02:07 DEBUG : dir: reading active writers 2021/03/23 06:02:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/23 06:02:07 DEBUG : dir: Looking for writers 2021/03/23 06:02:07 DEBUG : file1: reading active writers 2021/03/23 06:02:07 DEBUG : : Looking for writers 2021/03/23 06:02:07 DEBUG : dir: reading active writers 2021/03/23 06:02:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/23 06:02:07 DEBUG : dir: Looking for writers 2021/03/23 06:02:07 DEBUG : file1: reading active writers 2021/03/23 06:02:07 DEBUG : : Looking for writers 2021/03/23 06:02:07 DEBUG : dir: reading active writers 2021/03/23 06:02:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/03/23 06:02:08 DEBUG : dir: Looking for writers 2021/03/23 06:02:08 DEBUG : file1: reading active writers 2021/03/23 06:02:08 DEBUG : : Looking for writers 2021/03/23 06:02:08 DEBUG : dir: reading active writers 2021/03/23 06:02:08 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/03/23 06:02:09 INFO : dir/file1: Copied (replaced existing) 2021/03/23 06:02:09 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/03/23 06:02:09 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/03/23 06:02:09 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:09 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/03/23 06:02:09 DEBUG : dir: Looking for writers 2021/03/23 06:02:09 DEBUG : file1: reading active writers 2021/03/23 06:02:09 DEBUG : : Looking for writers 2021/03/23 06:02:09 DEBUG : dir: reading active writers 2021/03/23 06:02:09 DEBUG : >WaitForWriters: 2021/03/23 06:02:09 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/03/23 06:02:09 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:09 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:09 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:09 DEBUG : dir/file1(0xc0010747c0): _readAt: size=512, off=0 2021/03/23 06:02:09 DEBUG : dir/file1(0xc0010747c0): openPending: 2021/03/23 06:02:09 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/23 06:02:09 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:09 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:09 DEBUG : dir/file1(0xc0010747c0): >openPending: err= 2021/03/23 06:02:09 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/23 06:02:09 DEBUG : dir/file1(0xc0010747c0): >_readAt: n=14, err=EOF 2021/03/23 06:02:09 DEBUG : dir/file1(0xc0010747c0): close: 2021/03/23 06:02:09 DEBUG : dir/file1: vfs cache: setting modification time to 2021-03-23 06:02:07 +0000 UTC 2021/03/23 06:02:09 DEBUG : dir/file1(0xc0010747c0): >close: err= 2021/03/23 06:02:09 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:09 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/23 06:02:09 DEBUG : newLeaf: Updating file with newLeaf 0xc0010c0540 2021/03/23 06:02:09 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:09 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:09 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/23 06:02:09 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/03/23 06:02:09 DEBUG : dir/file1: Updating file with dir/file1 0xc0010c0540 2021/03/23 06:02:09 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/23 06:02:09 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/03/23 06:02:16 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/23 06:02:16 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:16 DEBUG : dir/file1(0xc001074fc0): openPending: 2021/03/23 06:02:16 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/23 06:02:16 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:16 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:16 DEBUG : dir/file1(0xc001074fc0): >openPending: err= 2021/03/23 06:02:16 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/23 06:02:16 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:16 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:16 DEBUG : dir/file1(0xc001074fc0): _writeAt: size=25, off=0 2021/03/23 06:02:16 DEBUG : dir/file1(0xc001074fc0): >_writeAt: n=25, err= 2021/03/23 06:02:16 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:16 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/23 06:02:16 DEBUG : newLeaf: Updating file with newLeaf 0xc0010c0540 2021/03/23 06:02:16 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:16 DEBUG : newLeaf(0xc001074fc0): close: 2021/03/23 06:02:16 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/23 06:02:16 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-23 06:02:16.577500405 +0000 UTC m=+164.215410080 2021/03/23 06:02:16 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/23 06:02:16 DEBUG : newLeaf(0xc001074fc0): >close: err= 2021/03/23 06:02:16 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:16 DEBUG : dir: Looking for writers 2021/03/23 06:02:16 DEBUG : : Looking for writers 2021/03/23 06:02:16 DEBUG : dir: reading active writers 2021/03/23 06:02:16 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/23 06:02:16 DEBUG : dir: Looking for writers 2021/03/23 06:02:16 DEBUG : : Looking for writers 2021/03/23 06:02:16 DEBUG : dir: reading active writers 2021/03/23 06:02:16 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/23 06:02:16 DEBUG : dir: Looking for writers 2021/03/23 06:02:16 DEBUG : : Looking for writers 2021/03/23 06:02:16 DEBUG : dir: reading active writers 2021/03/23 06:02:16 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/23 06:02:16 DEBUG : dir: Looking for writers 2021/03/23 06:02:16 DEBUG : : Looking for writers 2021/03/23 06:02:16 DEBUG : dir: reading active writers 2021/03/23 06:02:16 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/23 06:02:16 DEBUG : newLeaf: vfs cache: starting upload 2021/03/23 06:02:16 DEBUG : dir: Looking for writers 2021/03/23 06:02:16 DEBUG : : Looking for writers 2021/03/23 06:02:16 DEBUG : dir: reading active writers 2021/03/23 06:02:16 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/23 06:02:17 DEBUG : dir: Looking for writers 2021/03/23 06:02:17 DEBUG : : Looking for writers 2021/03/23 06:02:17 DEBUG : dir: reading active writers 2021/03/23 06:02:17 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:17 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/23 06:02:17 INFO : newLeaf: Copied (replaced existing) 2021/03/23 06:02:17 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/23 06:02:17 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/23 06:02:17 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:17 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/23 06:02:17 DEBUG : dir: Looking for writers 2021/03/23 06:02:17 DEBUG : : Looking for writers 2021/03/23 06:02:17 DEBUG : dir: reading active writers 2021/03/23 06:02:17 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:17 DEBUG : >WaitForWriters: 2021/03/23 06:02:17 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:17 DEBUG : dir: Looking for writers 2021/03/23 06:02:17 DEBUG : : Looking for writers 2021/03/23 06:02:17 DEBUG : dir: reading active writers 2021/03/23 06:02:17 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:17 DEBUG : >WaitForWriters: 2021/03/23 06:02:17 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:176: Remote "mega root 'rclone-test-diwiqak1nawiteb5dobizan1'", Local "Local file system at /tmp/rclone003574287", Modify Window "876000h0m0s" 2021/03/23 06:02:17 INFO : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': poll-interval is not supported by this remote 2021/03/23 06:02:17 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:17 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:17 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/23 06:02:17 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:17 DEBUG : dir: Looking for writers 2021/03/23 06:02:17 DEBUG : file1: reading active writers 2021/03/23 06:02:17 DEBUG : : Looking for writers 2021/03/23 06:02:17 DEBUG : dir: reading active writers 2021/03/23 06:02:17 DEBUG : >WaitForWriters: 2021/03/23 06:02:18 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:18 DEBUG : newLeaf: Updating file with newLeaf 0xc0010c0f00 2021/03/23 06:02:18 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:18 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/03/23 06:02:25 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/23 06:02:25 DEBUG : dir/file1: Updating file with dir/file1 0xc0010c0f00 2021/03/23 06:02:25 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/23 06:02:25 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/03/23 06:02:32 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/23 06:02:32 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:32 DEBUG : dir/file1(0xc001436600): openPending: 2021/03/23 06:02:32 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/23 06:02:32 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:32 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:32 DEBUG : dir/file1(0xc001436600): >openPending: err= 2021/03/23 06:02:32 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/23 06:02:32 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:32 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:32 DEBUG : dir/file1(0xc001436600): _writeAt: size=25, off=0 2021/03/23 06:02:32 DEBUG : dir/file1(0xc001436600): >_writeAt: n=25, err= 2021/03/23 06:02:32 INFO : newLeaf: Deleted 2021/03/23 06:02:32 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:32 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/23 06:02:32 DEBUG : newLeaf: Updating file with newLeaf 0xc0010c0f00 2021/03/23 06:02:32 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:32 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:32 DEBUG : newLeaf(0xc001436600): close: 2021/03/23 06:02:32 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/23 06:02:32 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-23 06:02:32.262223297 +0000 UTC m=+179.900132966 2021/03/23 06:02:32 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/23 06:02:32 DEBUG : newLeaf(0xc001436600): >close: err= 2021/03/23 06:02:32 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:32 DEBUG : dir: Looking for writers 2021/03/23 06:02:32 DEBUG : : Looking for writers 2021/03/23 06:02:32 DEBUG : dir: reading active writers 2021/03/23 06:02:32 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/23 06:02:32 DEBUG : dir: Looking for writers 2021/03/23 06:02:32 DEBUG : : Looking for writers 2021/03/23 06:02:32 DEBUG : dir: reading active writers 2021/03/23 06:02:32 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/23 06:02:32 DEBUG : dir: Looking for writers 2021/03/23 06:02:32 DEBUG : : Looking for writers 2021/03/23 06:02:32 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:32 DEBUG : dir: reading active writers 2021/03/23 06:02:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/23 06:02:32 DEBUG : dir: Looking for writers 2021/03/23 06:02:32 DEBUG : : Looking for writers 2021/03/23 06:02:32 DEBUG : dir: reading active writers 2021/03/23 06:02:32 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/23 06:02:32 DEBUG : newLeaf: vfs cache: starting upload 2021/03/23 06:02:32 DEBUG : dir: Looking for writers 2021/03/23 06:02:32 DEBUG : : Looking for writers 2021/03/23 06:02:32 DEBUG : dir: reading active writers 2021/03/23 06:02:32 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/23 06:02:32 INFO : newLeaf: Copied (replaced existing) 2021/03/23 06:02:32 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/23 06:02:32 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/23 06:02:32 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:32 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/23 06:02:32 DEBUG : dir: Looking for writers 2021/03/23 06:02:32 DEBUG : : Looking for writers 2021/03/23 06:02:32 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:32 DEBUG : dir: reading active writers 2021/03/23 06:02:32 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:293: Sleeping for 6s just to make sure 2021/03/23 06:02:39 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:39 DEBUG : dir: Looking for writers 2021/03/23 06:02:39 DEBUG : : Looking for writers 2021/03/23 06:02:39 DEBUG : dir: reading active writers 2021/03/23 06:02:39 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:39 DEBUG : >WaitForWriters: 2021/03/23 06:02:39 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:176: Remote "mega root 'rclone-test-diwiqak1nawiteb5dobizan1'", Local "Local file system at /tmp/rclone003574287", Modify Window "876000h0m0s" 2021/03/23 06:02:40 INFO : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': poll-interval is not supported by this remote 2021/03/23 06:02:40 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:40 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:40 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:40 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/23 06:02:42 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/03/23 06:02:42 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:42 DEBUG : dir/file1(0xc001437380): openPending: 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:42 DEBUG : dir/file1(0xc001437380): >openPending: err= 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/23 06:02:42 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:42 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:42 DEBUG : dir/file1(0xc001437380): _writeAt: size=14, off=0 2021/03/23 06:02:42 DEBUG : dir/file1(0xc001437380): >_writeAt: n=14, err= 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/23 06:02:42 DEBUG : dir/file1(0xc001437380): close: 2021/03/23 06:02:42 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/03/23 06:02:42 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/03/23 06:02:42 DEBUG : dir/file1(0xc001437380): >close: err= 2021/03/23 06:02:42 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:42 DEBUG : dir: Looking for writers 2021/03/23 06:02:42 DEBUG : file1: reading active writers 2021/03/23 06:02:42 DEBUG : : Looking for writers 2021/03/23 06:02:42 DEBUG : dir: reading active writers 2021/03/23 06:02:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/23 06:02:42 DEBUG : dir: Looking for writers 2021/03/23 06:02:42 DEBUG : file1: reading active writers 2021/03/23 06:02:42 DEBUG : : Looking for writers 2021/03/23 06:02:42 DEBUG : dir: reading active writers 2021/03/23 06:02:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/23 06:02:42 DEBUG : dir: Looking for writers 2021/03/23 06:02:42 DEBUG : file1: reading active writers 2021/03/23 06:02:42 DEBUG : : Looking for writers 2021/03/23 06:02:42 DEBUG : dir: reading active writers 2021/03/23 06:02:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/23 06:02:42 DEBUG : dir: Looking for writers 2021/03/23 06:02:42 DEBUG : file1: reading active writers 2021/03/23 06:02:42 DEBUG : : Looking for writers 2021/03/23 06:02:42 DEBUG : dir: reading active writers 2021/03/23 06:02:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: starting upload 2021/03/23 06:02:42 DEBUG : dir: Looking for writers 2021/03/23 06:02:42 DEBUG : file1: reading active writers 2021/03/23 06:02:42 DEBUG : : Looking for writers 2021/03/23 06:02:42 DEBUG : dir: reading active writers 2021/03/23 06:02:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/23 06:02:42 DEBUG : dir: Looking for writers 2021/03/23 06:02:42 DEBUG : file1: reading active writers 2021/03/23 06:02:42 DEBUG : : Looking for writers 2021/03/23 06:02:42 DEBUG : dir: reading active writers 2021/03/23 06:02:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/23 06:02:42 INFO : dir/file1: Copied (replaced existing) 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/03/23 06:02:42 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/03/23 06:02:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:42 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/03/23 06:02:42 DEBUG : dir: Looking for writers 2021/03/23 06:02:42 DEBUG : file1: reading active writers 2021/03/23 06:02:42 DEBUG : : Looking for writers 2021/03/23 06:02:42 DEBUG : dir: reading active writers 2021/03/23 06:02:42 DEBUG : >WaitForWriters: 2021/03/23 06:02:42 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/03/23 06:02:42 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:42 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:42 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:42 DEBUG : dir/file1(0xc0015b4400): _readAt: size=512, off=0 2021/03/23 06:02:42 DEBUG : dir/file1(0xc0015b4400): openPending: 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:42 DEBUG : dir/file1(0xc0015b4400): >openPending: err= 2021/03/23 06:02:42 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/03/23 06:02:42 DEBUG : dir/file1(0xc0015b4400): >_readAt: n=14, err=EOF 2021/03/23 06:02:42 DEBUG : dir/file1(0xc0015b4400): close: 2021/03/23 06:02:42 DEBUG : dir/file1: vfs cache: setting modification time to 2021-03-23 06:02:42 +0000 UTC 2021/03/23 06:02:42 DEBUG : dir/file1(0xc0015b4400): >close: err= 2021/03/23 06:02:42 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:42 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/23 06:02:42 DEBUG : newLeaf: Updating file with newLeaf 0xc0010c1740 2021/03/23 06:02:42 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:42 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:43 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/23 06:02:43 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/03/23 06:02:43 DEBUG : dir/file1: Updating file with dir/file1 0xc0010c1740 2021/03/23 06:02:43 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/23 06:02:43 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/03/23 06:02:50 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/23 06:02:50 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:50 DEBUG : dir/file1(0xc0015623c0): openPending: 2021/03/23 06:02:50 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/23 06:02:50 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:50 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:50 DEBUG : dir/file1(0xc0015623c0): >openPending: err= 2021/03/23 06:02:50 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/23 06:02:50 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:50 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:50 DEBUG : dir/file1(0xc0015623c0): _writeAt: size=25, off=0 2021/03/23 06:02:50 DEBUG : dir/file1(0xc0015623c0): >_writeAt: n=25, err= 2021/03/23 06:02:50 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:50 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/23 06:02:50 DEBUG : newLeaf: Updating file with newLeaf 0xc0010c1740 2021/03/23 06:02:50 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:50 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:50 DEBUG : newLeaf(0xc0015623c0): close: 2021/03/23 06:02:50 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/23 06:02:50 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-23 06:02:50.247149299 +0000 UTC m=+197.885058980 2021/03/23 06:02:50 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/23 06:02:50 DEBUG : newLeaf(0xc0015623c0): >close: err= 2021/03/23 06:02:50 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:50 DEBUG : dir: Looking for writers 2021/03/23 06:02:50 DEBUG : : Looking for writers 2021/03/23 06:02:50 DEBUG : dir: reading active writers 2021/03/23 06:02:50 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:50 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/23 06:02:50 DEBUG : dir: Looking for writers 2021/03/23 06:02:50 DEBUG : : Looking for writers 2021/03/23 06:02:50 DEBUG : dir: reading active writers 2021/03/23 06:02:50 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:50 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/23 06:02:50 DEBUG : dir: Looking for writers 2021/03/23 06:02:50 DEBUG : : Looking for writers 2021/03/23 06:02:50 DEBUG : dir: reading active writers 2021/03/23 06:02:50 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:50 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/23 06:02:50 DEBUG : dir: Looking for writers 2021/03/23 06:02:50 DEBUG : : Looking for writers 2021/03/23 06:02:50 DEBUG : dir: reading active writers 2021/03/23 06:02:50 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:50 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/23 06:02:50 DEBUG : newLeaf: vfs cache: starting upload 2021/03/23 06:02:50 DEBUG : dir: Looking for writers 2021/03/23 06:02:50 DEBUG : : Looking for writers 2021/03/23 06:02:50 DEBUG : dir: reading active writers 2021/03/23 06:02:50 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:50 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/23 06:02:50 DEBUG : dir: Looking for writers 2021/03/23 06:02:50 DEBUG : : Looking for writers 2021/03/23 06:02:50 DEBUG : dir: reading active writers 2021/03/23 06:02:50 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:50 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/03/23 06:02:50 INFO : newLeaf: Copied (replaced existing) 2021/03/23 06:02:50 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/23 06:02:50 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/23 06:02:50 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:50 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/23 06:02:51 DEBUG : dir: Looking for writers 2021/03/23 06:02:51 DEBUG : : Looking for writers 2021/03/23 06:02:51 DEBUG : dir: reading active writers 2021/03/23 06:02:51 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:51 DEBUG : >WaitForWriters: 2021/03/23 06:02:51 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:51 DEBUG : dir: Looking for writers 2021/03/23 06:02:51 DEBUG : : Looking for writers 2021/03/23 06:02:51 DEBUG : dir: reading active writers 2021/03/23 06:02:51 DEBUG : newLeaf: reading active writers 2021/03/23 06:02:51 DEBUG : >WaitForWriters: 2021/03/23 06:02:51 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:176: Remote "mega root 'rclone-test-diwiqak1nawiteb5dobizan1'", Local "Local file system at /tmp/rclone003574287", Modify Window "876000h0m0s" 2021/03/23 06:02:51 INFO : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': poll-interval is not supported by this remote 2021/03/23 06:02:51 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:51 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:51 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-diwiqak1nawiteb5dobizan1" 2021/03/23 06:02:51 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/03/23 06:02:53 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:02:53 DEBUG : dir: Looking for writers 2021/03/23 06:02:53 DEBUG : file1: reading active writers 2021/03/23 06:02:53 DEBUG : : Looking for writers 2021/03/23 06:02:53 DEBUG : dir: reading active writers 2021/03/23 06:02:53 DEBUG : >WaitForWriters: 2021/03/23 06:02:53 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/03/23 06:02:53 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:02:53 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:02:53 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:02:53 DEBUG : dir/file1(0xc0015b5440): _readAt: size=512, off=0 2021/03/23 06:02:53 DEBUG : dir/file1(0xc0015b5440): openPending: 2021/03/23 06:02:53 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/03/23 06:02:53 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:02:53 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:02:53 DEBUG : dir/file1(0xc0015b5440): >openPending: err= 2021/03/23 06:02:53 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2021/03/23 06:02:53 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2021/03/23 06:02:53 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2021/03/23 06:02:53 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2021/03/23 06:02:54 DEBUG : dir/file1(0xc0015b5440): >_readAt: n=14, err=EOF 2021/03/23 06:02:54 DEBUG : dir/file1(0xc0015b5440): close: 2021/03/23 06:02:54 DEBUG : dir/file1: vfs cache: setting modification time to 2021-03-23 06:02:53 +0000 UTC 2021/03/23 06:02:54 DEBUG : dir/file1(0xc0015b5440): >close: err= 2021/03/23 06:02:54 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:02:54 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/23 06:02:54 DEBUG : newLeaf: Updating file with newLeaf 0xc0015f23c0 2021/03/23 06:02:54 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:02:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:02:56 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/03/23 06:02:56 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/03/23 06:02:56 DEBUG : dir/file1: Updating file with dir/file1 0xc0015f23c0 2021/03/23 06:02:56 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/03/23 06:02:56 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/03/23 06:03:03 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/03/23 06:03:03 DEBUG : dir/file1: newRWFileHandle: 2021/03/23 06:03:03 DEBUG : dir/file1(0xc0015b5dc0): openPending: 2021/03/23 06:03:03 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/03/23 06:03:03 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/03/23 06:03:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/03/23 06:03:03 DEBUG : dir/file1(0xc0015b5dc0): >openPending: err= 2021/03/23 06:03:03 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/03/23 06:03:03 DEBUG : dir/file1: >newRWFileHandle: err= 2021/03/23 06:03:03 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/03/23 06:03:03 DEBUG : dir/file1(0xc0015b5dc0): _writeAt: size=25, off=0 2021/03/23 06:03:03 DEBUG : dir/file1(0xc0015b5dc0): >_writeAt: n=25, err= 2021/03/23 06:03:03 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/03/23 06:03:03 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/03/23 06:03:03 DEBUG : newLeaf: Updating file with newLeaf 0xc0015f23c0 2021/03/23 06:03:03 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/03/23 06:03:03 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:03:03 DEBUG : newLeaf(0xc0015b5dc0): close: 2021/03/23 06:03:03 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/03/23 06:03:03 DEBUG : newLeaf: vfs cache: setting modification time to 2021-03-23 06:03:03.333589297 +0000 UTC m=+210.971498996 2021/03/23 06:03:03 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/03/23 06:03:03 DEBUG : newLeaf(0xc0015b5dc0): >close: err= 2021/03/23 06:03:03 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:03:03 DEBUG : dir: Looking for writers 2021/03/23 06:03:03 DEBUG : : Looking for writers 2021/03/23 06:03:03 DEBUG : dir: reading active writers 2021/03/23 06:03:03 DEBUG : newLeaf: reading active writers 2021/03/23 06:03:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/03/23 06:03:03 DEBUG : dir: Looking for writers 2021/03/23 06:03:03 DEBUG : : Looking for writers 2021/03/23 06:03:03 DEBUG : dir: reading active writers 2021/03/23 06:03:03 DEBUG : newLeaf: reading active writers 2021/03/23 06:03:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/03/23 06:03:03 DEBUG : dir: Looking for writers 2021/03/23 06:03:03 DEBUG : : Looking for writers 2021/03/23 06:03:03 DEBUG : dir: reading active writers 2021/03/23 06:03:03 DEBUG : newLeaf: reading active writers 2021/03/23 06:03:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/03/23 06:03:03 DEBUG : dir: Looking for writers 2021/03/23 06:03:03 DEBUG : : Looking for writers 2021/03/23 06:03:03 DEBUG : dir: reading active writers 2021/03/23 06:03:03 DEBUG : newLeaf: reading active writers 2021/03/23 06:03:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/03/23 06:03:03 DEBUG : newLeaf: vfs cache: starting upload 2021/03/23 06:03:03 DEBUG : dir: Looking for writers 2021/03/23 06:03:03 DEBUG : : Looking for writers 2021/03/23 06:03:03 DEBUG : dir: reading active writers 2021/03/23 06:03:03 DEBUG : newLeaf: reading active writers 2021/03/23 06:03:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/03/23 06:03:03 INFO : newLeaf: Copied (replaced existing) 2021/03/23 06:03:03 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/03/23 06:03:03 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/03/23 06:03:03 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/03/23 06:03:03 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/03/23 06:03:03 DEBUG : dir: Looking for writers 2021/03/23 06:03:03 DEBUG : : Looking for writers 2021/03/23 06:03:03 DEBUG : dir: reading active writers 2021/03/23 06:03:03 DEBUG : newLeaf: reading active writers 2021/03/23 06:03:03 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:293: Sleeping for 6s just to make sure 2021/03/23 06:03:10 DEBUG : WaitForWriters: timeout=10s 2021/03/23 06:03:10 DEBUG : dir: Looking for writers 2021/03/23 06:03:10 DEBUG : : Looking for writers 2021/03/23 06:03:10 DEBUG : dir: reading active writers 2021/03/23 06:03:10 DEBUG : newLeaf: reading active writers 2021/03/23 06:03:10 DEBUG : >WaitForWriters: 2021/03/23 06:03:10 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (94.58s) --- FAIL: TestFileRename/off,forceCache=false (15.16s) --- FAIL: TestFileRename/minimal,forceCache=false (15.12s) --- FAIL: TestFileRename/minimal,forceCache=true (10.90s) --- FAIL: TestFileRename/writes,forceCache=false (22.40s) --- FAIL: TestFileRename/writes,forceCache=true (11.15s) --- FAIL: TestFileRename/full,forceCache=false (19.85s) FAIL 2021/03/23 06:03:11 DEBUG : mega root 'rclone-test-diwiqak1nawiteb5dobizan1': 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 3m38.81863835s (try 2/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]