"./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) 2022/02/10 06:23:44 DEBUG : Creating backend with remote "TestMega:rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:23:44 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2022/02/10 06:23:55 DEBUG : Creating backend with remote "/tmp/rclone4137426612" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:181: Remote "mega root 'rclone-test-budevuv0zitiqex6debunub2'", Local "Local file system at /tmp/rclone4137426612", Modify Window "876000h0m0s" 2022/02/10 06:23:55 INFO : mega root 'rclone-test-budevuv0zitiqex6debunub2': poll-interval is not supported by this remote 2022/02/10 06:23:55 NOTICE: mega root 'rclone-test-budevuv0zitiqex6debunub2': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/02/10 06:23:56 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:23:56 DEBUG : dir: Looking for writers 2022/02/10 06:23:56 DEBUG : file1: reading active writers 2022/02/10 06:23:56 DEBUG : : Looking for writers 2022/02/10 06:23:56 DEBUG : dir: reading active writers 2022/02/10 06:23:56 DEBUG : >WaitForWriters: 2022/02/10 06:23:56 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:23:56 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dc0c0 2022/02/10 06:23:56 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:23:56 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 run.go:342 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 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2022/02/10 06:24:04 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/02/10 06:24:04 DEBUG : dir/file1: Updating file with dir/file1 0xc0009dc0c0 2022/02/10 06:24:04 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/02/10 06:24:04 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 run.go:342 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 run.go:342 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 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2022/02/10 06:24:11 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/02/10 06:24:11 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2022/02/10 06:24:11 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:24:11 DEBUG : dir/file1: File is currently open, delaying rename 0xc0009dc0c0 2022/02/10 06:24:11 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:24:11 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:24:11 DEBUG : mega root 'rclone-test-budevuv0zitiqex6debunub2': File to upload is small (25 bytes), uploading instead of streaming 2022/02/10 06:24:12 INFO : dir/file1: Copied (new) 2022/02/10 06:24:12 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:24:12 DEBUG : newLeaf: Running delayed rename now 2022/02/10 06:24:12 INFO : newLeaf: Deleted 2022/02/10 06:24:13 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:24:13 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dc0c0 2022/02/10 06:24:13 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:13 DEBUG : dir: Looking for writers 2022/02/10 06:24:13 DEBUG : : Looking for writers 2022/02/10 06:24:13 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:13 DEBUG : dir: reading active writers 2022/02/10 06:24:13 DEBUG : >WaitForWriters: 2022/02/10 06:24:13 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:13 DEBUG : dir: Looking for writers 2022/02/10 06:24:13 DEBUG : : Looking for writers 2022/02/10 06:24:13 DEBUG : dir: reading active writers 2022/02/10 06:24:13 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:13 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:181: Remote "mega root 'rclone-test-budevuv0zitiqex6debunub2'", Local "Local file system at /tmp/rclone4137426612", Modify Window "876000h0m0s" 2022/02/10 06:24:13 INFO : mega root 'rclone-test-budevuv0zitiqex6debunub2': poll-interval is not supported by this remote 2022/02/10 06:24:13 NOTICE: mega root 'rclone-test-budevuv0zitiqex6debunub2': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/02/10 06:24:13 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/02/10 06:24:13 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:13 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:13 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:13 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:13 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/02/10 06:24:14 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:14 DEBUG : dir: Looking for writers 2022/02/10 06:24:14 DEBUG : file1: reading active writers 2022/02/10 06:24:14 DEBUG : : Looking for writers 2022/02/10 06:24:14 DEBUG : dir: reading active writers 2022/02/10 06:24:14 DEBUG : >WaitForWriters: 2022/02/10 06:24:14 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:24:14 DEBUG : newLeaf: Updating file with newLeaf 0xc00354a9c0 2022/02/10 06:24:14 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:24:14 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 run.go:342 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 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "file1" 2022/02/10 06:24:22 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/02/10 06:24:22 DEBUG : dir/file1: Updating file with dir/file1 0xc00354a9c0 2022/02/10 06:24:22 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/02/10 06:24:22 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 run.go:342 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 run.go:342 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 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2022/02/10 06:24:29 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/02/10 06:24:29 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2022/02/10 06:24:29 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:24:29 DEBUG : dir/file1: File is currently open, delaying rename 0xc00354a9c0 2022/02/10 06:24:29 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:24:29 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:24:29 DEBUG : mega root 'rclone-test-budevuv0zitiqex6debunub2': File to upload is small (25 bytes), uploading instead of streaming 2022/02/10 06:24:29 INFO : dir/file1: Copied (new) 2022/02/10 06:24:29 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:24:29 DEBUG : newLeaf: Running delayed rename now 2022/02/10 06:24:29 INFO : newLeaf: Deleted 2022/02/10 06:24:30 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:24:30 DEBUG : newLeaf: Updating file with newLeaf 0xc00354a9c0 2022/02/10 06:24:30 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:30 DEBUG : dir: Looking for writers 2022/02/10 06:24:30 DEBUG : : Looking for writers 2022/02/10 06:24:30 DEBUG : dir: reading active writers 2022/02/10 06:24:30 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:30 DEBUG : >WaitForWriters: 2022/02/10 06:24:30 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:30 DEBUG : dir: Looking for writers 2022/02/10 06:24:30 DEBUG : : Looking for writers 2022/02/10 06:24:30 DEBUG : dir: reading active writers 2022/02/10 06:24:30 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:30 DEBUG : >WaitForWriters: 2022/02/10 06:24:30 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:181: Remote "mega root 'rclone-test-budevuv0zitiqex6debunub2'", Local "Local file system at /tmp/rclone4137426612", Modify Window "876000h0m0s" 2022/02/10 06:24:31 INFO : mega root 'rclone-test-budevuv0zitiqex6debunub2': poll-interval is not supported by this remote 2022/02/10 06:24:31 NOTICE: mega root 'rclone-test-budevuv0zitiqex6debunub2': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/02/10 06:24:31 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/02/10 06:24:31 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:31 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:31 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:31 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:31 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/02/10 06:24:31 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2022/02/10 06:24:31 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:24:31 DEBUG : dir/file1(0xc000aa6e00): openPending: 2022/02/10 06:24:31 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/02/10 06:24:31 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:24:31 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:24:31 DEBUG : dir/file1(0xc000aa6e00): >openPending: err= 2022/02/10 06:24:31 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/02/10 06:24:31 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:24:31 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:24:31 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:24:31 DEBUG : dir/file1(0xc000aa6e00): _writeAt: size=14, off=0 2022/02/10 06:24:31 DEBUG : dir/file1(0xc000aa6e00): >_writeAt: n=14, err= 2022/02/10 06:24:31 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/02/10 06:24:31 DEBUG : dir/file1(0xc000aa6e00): close: 2022/02/10 06:24:31 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/02/10 06:24:31 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/02/10 06:24:31 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/02/10 06:24:31 DEBUG : dir/file1(0xc000aa6e00): >close: err= 2022/02/10 06:24:31 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:31 DEBUG : dir: Looking for writers 2022/02/10 06:24:31 DEBUG : file1: reading active writers 2022/02/10 06:24:31 DEBUG : : Looking for writers 2022/02/10 06:24:31 DEBUG : dir: reading active writers 2022/02/10 06:24:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/02/10 06:24:31 DEBUG : dir: Looking for writers 2022/02/10 06:24:31 DEBUG : file1: reading active writers 2022/02/10 06:24:31 DEBUG : : Looking for writers 2022/02/10 06:24:31 DEBUG : dir: reading active writers 2022/02/10 06:24:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/02/10 06:24:31 DEBUG : dir: Looking for writers 2022/02/10 06:24:31 DEBUG : file1: reading active writers 2022/02/10 06:24:31 DEBUG : : Looking for writers 2022/02/10 06:24:31 DEBUG : dir: reading active writers 2022/02/10 06:24:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/02/10 06:24:31 DEBUG : dir: Looking for writers 2022/02/10 06:24:31 DEBUG : file1: reading active writers 2022/02/10 06:24:31 DEBUG : : Looking for writers 2022/02/10 06:24:31 DEBUG : dir: reading active writers 2022/02/10 06:24:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/02/10 06:24:31 DEBUG : dir/file1: vfs cache: starting upload 2022/02/10 06:24:31 DEBUG : dir: Looking for writers 2022/02/10 06:24:31 DEBUG : file1: reading active writers 2022/02/10 06:24:31 DEBUG : : Looking for writers 2022/02/10 06:24:31 DEBUG : dir: reading active writers 2022/02/10 06:24:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/02/10 06:24:31 DEBUG : dir: Looking for writers 2022/02/10 06:24:31 DEBUG : file1: reading active writers 2022/02/10 06:24:31 DEBUG : : Looking for writers 2022/02/10 06:24:31 DEBUG : dir: reading active writers 2022/02/10 06:24:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/02/10 06:24:32 DEBUG : dir: Looking for writers 2022/02/10 06:24:32 DEBUG : file1: reading active writers 2022/02/10 06:24:32 DEBUG : : Looking for writers 2022/02/10 06:24:32 DEBUG : dir: reading active writers 2022/02/10 06:24:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/02/10 06:24:32 INFO : dir/file1: Copied (replaced existing) 2022/02/10 06:24:32 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/02/10 06:24:32 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2022/02/10 06:24:32 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:24:32 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/02/10 06:24:32 DEBUG : dir: Looking for writers 2022/02/10 06:24:32 DEBUG : file1: reading active writers 2022/02/10 06:24:32 DEBUG : : Looking for writers 2022/02/10 06:24:32 DEBUG : dir: reading active writers 2022/02/10 06:24:32 DEBUG : >WaitForWriters: 2022/02/10 06:24:32 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/02/10 06:24:32 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:24:32 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:24:32 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:24:32 DEBUG : dir/file1(0xc00357fec0): _readAt: size=512, off=0 2022/02/10 06:24:32 DEBUG : dir/file1(0xc00357fec0): openPending: 2022/02/10 06:24:32 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/02/10 06:24:32 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:24:32 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:24:32 DEBUG : dir/file1(0xc00357fec0): >openPending: err= 2022/02/10 06:24:32 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/02/10 06:24:32 DEBUG : dir/file1(0xc00357fec0): >_readAt: n=14, err=EOF 2022/02/10 06:24:32 DEBUG : dir/file1(0xc00357fec0): close: 2022/02/10 06:24:32 DEBUG : dir/file1: vfs cache: setting modification time to 2022-02-10 06:24:31 +0000 UTC 2022/02/10 06:24:32 DEBUG : dir/file1(0xc00357fec0): >close: err= 2022/02/10 06:24:34 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:24:34 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/02/10 06:24:34 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dc900 2022/02/10 06:24:34 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:24:34 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:24:34 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/02/10 06:24:34 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/02/10 06:24:34 DEBUG : dir/file1: Updating file with dir/file1 0xc0009dc900 2022/02/10 06:24:34 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/02/10 06:24:34 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 run.go:342 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 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2022/02/10 06:24:41 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/02/10 06:24:41 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:24:41 DEBUG : dir/file1(0xc000c50280): openPending: 2022/02/10 06:24:41 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/02/10 06:24:41 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:24:41 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:24:41 DEBUG : dir/file1(0xc000c50280): >openPending: err= 2022/02/10 06:24:41 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/02/10 06:24:41 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:24:41 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:24:41 DEBUG : dir/file1(0xc000c50280): _writeAt: size=25, off=0 2022/02/10 06:24:41 DEBUG : dir/file1(0xc000c50280): >_writeAt: n=25, err= 2022/02/10 06:24:42 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:24:42 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/02/10 06:24:42 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dc900 2022/02/10 06:24:42 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:24:42 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:24:42 DEBUG : newLeaf(0xc000c50280): close: 2022/02/10 06:24:42 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/02/10 06:24:42 DEBUG : newLeaf: vfs cache: setting modification time to 2022-02-10 06:24:41.5040577 +0000 UTC m=+57.503853936 2022/02/10 06:24:42 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/02/10 06:24:42 DEBUG : newLeaf(0xc000c50280): >close: err= 2022/02/10 06:24:42 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:42 DEBUG : dir: Looking for writers 2022/02/10 06:24:42 DEBUG : : Looking for writers 2022/02/10 06:24:42 DEBUG : dir: reading active writers 2022/02/10 06:24:42 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/02/10 06:24:42 DEBUG : dir: Looking for writers 2022/02/10 06:24:42 DEBUG : : Looking for writers 2022/02/10 06:24:42 DEBUG : dir: reading active writers 2022/02/10 06:24:42 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/02/10 06:24:42 DEBUG : dir: Looking for writers 2022/02/10 06:24:42 DEBUG : : Looking for writers 2022/02/10 06:24:42 DEBUG : dir: reading active writers 2022/02/10 06:24:42 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/02/10 06:24:42 DEBUG : dir: Looking for writers 2022/02/10 06:24:42 DEBUG : : Looking for writers 2022/02/10 06:24:42 DEBUG : dir: reading active writers 2022/02/10 06:24:42 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/02/10 06:24:42 DEBUG : newLeaf: vfs cache: starting upload 2022/02/10 06:24:42 DEBUG : dir: Looking for writers 2022/02/10 06:24:42 DEBUG : : Looking for writers 2022/02/10 06:24:42 DEBUG : dir: reading active writers 2022/02/10 06:24:42 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/02/10 06:24:42 DEBUG : dir: Looking for writers 2022/02/10 06:24:42 DEBUG : : Looking for writers 2022/02/10 06:24:42 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:42 DEBUG : dir: reading active writers 2022/02/10 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/02/10 06:24:42 DEBUG : dir: Looking for writers 2022/02/10 06:24:42 DEBUG : : Looking for writers 2022/02/10 06:24:42 DEBUG : dir: reading active writers 2022/02/10 06:24:42 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/02/10 06:24:42 INFO : newLeaf: Copied (replaced existing) 2022/02/10 06:24:42 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/02/10 06:24:42 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/02/10 06:24:42 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:24:42 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/02/10 06:24:43 DEBUG : dir: Looking for writers 2022/02/10 06:24:43 DEBUG : : Looking for writers 2022/02/10 06:24:43 DEBUG : dir: reading active writers 2022/02/10 06:24:43 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:43 DEBUG : >WaitForWriters: 2022/02/10 06:24:43 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:43 DEBUG : dir: Looking for writers 2022/02/10 06:24:43 DEBUG : : Looking for writers 2022/02/10 06:24:43 DEBUG : dir: reading active writers 2022/02/10 06:24:43 DEBUG : newLeaf: reading active writers 2022/02/10 06:24:43 DEBUG : >WaitForWriters: 2022/02/10 06:24:43 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:181: Remote "mega root 'rclone-test-budevuv0zitiqex6debunub2'", Local "Local file system at /tmp/rclone4137426612", Modify Window "876000h0m0s" 2022/02/10 06:24:44 INFO : mega root 'rclone-test-budevuv0zitiqex6debunub2': poll-interval is not supported by this remote 2022/02/10 06:24:44 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/02/10 06:24:44 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:44 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:44 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:44 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:24:44 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/02/10 06:24:44 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:24:44 DEBUG : dir: Looking for writers 2022/02/10 06:24:44 DEBUG : file1: reading active writers 2022/02/10 06:24:44 DEBUG : : Looking for writers 2022/02/10 06:24:44 DEBUG : dir: reading active writers 2022/02/10 06:24:44 DEBUG : >WaitForWriters: 2022/02/10 06:24:45 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:24:45 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dcb40 2022/02/10 06:24:45 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:24:45 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 run.go:342 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 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "file1" 2022/02/10 06:24:53 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/02/10 06:24:53 DEBUG : dir/file1: Updating file with dir/file1 0xc0009dcb40 2022/02/10 06:24:53 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/02/10 06:24:53 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 run.go:342 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 run.go:342 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 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2022/02/10 06:25:00 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/02/10 06:25:00 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:25:00 DEBUG : dir/file1(0xc000d8a5c0): openPending: 2022/02/10 06:25:00 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/02/10 06:25:00 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:25:00 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:00 DEBUG : dir/file1(0xc000d8a5c0): >openPending: err= 2022/02/10 06:25:00 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/02/10 06:25:00 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:25:00 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:25:00 DEBUG : dir/file1(0xc000d8a5c0): _writeAt: size=25, off=0 2022/02/10 06:25:00 DEBUG : dir/file1(0xc000d8a5c0): >_writeAt: n=25, err= 2022/02/10 06:25:00 INFO : newLeaf: Deleted 2022/02/10 06:25:01 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:25:01 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/02/10 06:25:01 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dcb40 2022/02/10 06:25:01 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:25:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:01 DEBUG : newLeaf(0xc000d8a5c0): close: 2022/02/10 06:25:01 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/02/10 06:25:01 DEBUG : newLeaf: vfs cache: setting modification time to 2022-02-10 06:25:00.3707956 +0000 UTC m=+76.370591874 2022/02/10 06:25:01 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/02/10 06:25:01 DEBUG : newLeaf(0xc000d8a5c0): >close: err= 2022/02/10 06:25:01 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:01 DEBUG : dir: Looking for writers 2022/02/10 06:25:01 DEBUG : : Looking for writers 2022/02/10 06:25:01 DEBUG : dir: reading active writers 2022/02/10 06:25:01 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/02/10 06:25:01 DEBUG : dir: Looking for writers 2022/02/10 06:25:01 DEBUG : : Looking for writers 2022/02/10 06:25:01 DEBUG : dir: reading active writers 2022/02/10 06:25:01 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/02/10 06:25:01 DEBUG : dir: Looking for writers 2022/02/10 06:25:01 DEBUG : : Looking for writers 2022/02/10 06:25:01 DEBUG : dir: reading active writers 2022/02/10 06:25:01 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/02/10 06:25:01 DEBUG : dir: Looking for writers 2022/02/10 06:25:01 DEBUG : : Looking for writers 2022/02/10 06:25:01 DEBUG : dir: reading active writers 2022/02/10 06:25:01 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/02/10 06:25:01 DEBUG : newLeaf: vfs cache: starting upload 2022/02/10 06:25:01 DEBUG : dir: Looking for writers 2022/02/10 06:25:01 DEBUG : : Looking for writers 2022/02/10 06:25:01 DEBUG : dir: reading active writers 2022/02/10 06:25:01 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/02/10 06:25:01 DEBUG : dir: Looking for writers 2022/02/10 06:25:01 DEBUG : : Looking for writers 2022/02/10 06:25:01 DEBUG : dir: reading active writers 2022/02/10 06:25:01 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/02/10 06:25:01 DEBUG : dir: Looking for writers 2022/02/10 06:25:01 DEBUG : : Looking for writers 2022/02/10 06:25:01 DEBUG : dir: reading active writers 2022/02/10 06:25:01 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/02/10 06:25:02 DEBUG : dir: Looking for writers 2022/02/10 06:25:02 DEBUG : : Looking for writers 2022/02/10 06:25:02 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:02 DEBUG : dir: reading active writers 2022/02/10 06:25:02 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/02/10 06:25:02 INFO : newLeaf: Copied (replaced existing) 2022/02/10 06:25:02 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/02/10 06:25:02 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/02/10 06:25:02 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:02 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/02/10 06:25:03 DEBUG : dir: Looking for writers 2022/02/10 06:25:03 DEBUG : : Looking for writers 2022/02/10 06:25:03 DEBUG : dir: reading active writers 2022/02/10 06:25:03 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:03 DEBUG : >WaitForWriters: 2022/02/10 06:25:03 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:03 DEBUG : dir: Looking for writers 2022/02/10 06:25:03 DEBUG : : Looking for writers 2022/02/10 06:25:03 DEBUG : dir: reading active writers 2022/02/10 06:25:03 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:03 DEBUG : >WaitForWriters: 2022/02/10 06:25:03 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:181: Remote "mega root 'rclone-test-budevuv0zitiqex6debunub2'", Local "Local file system at /tmp/rclone4137426612", Modify Window "876000h0m0s" 2022/02/10 06:25:04 INFO : mega root 'rclone-test-budevuv0zitiqex6debunub2': poll-interval is not supported by this remote 2022/02/10 06:25:04 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/02/10 06:25:04 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:04 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:04 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:04 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:04 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/02/10 06:25:04 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2022/02/10 06:25:04 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:25:04 DEBUG : dir/file1(0xc000d28c80): openPending: 2022/02/10 06:25:04 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/02/10 06:25:04 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:25:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:04 DEBUG : dir/file1(0xc000d28c80): >openPending: err= 2022/02/10 06:25:04 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/02/10 06:25:04 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:25:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:04 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:25:04 DEBUG : dir/file1(0xc000d28c80): _writeAt: size=14, off=0 2022/02/10 06:25:04 DEBUG : dir/file1(0xc000d28c80): >_writeAt: n=14, err= 2022/02/10 06:25:04 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/02/10 06:25:04 DEBUG : dir/file1(0xc000d28c80): close: 2022/02/10 06:25:04 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/02/10 06:25:04 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/02/10 06:25:04 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/02/10 06:25:04 DEBUG : dir/file1(0xc000d28c80): >close: err= 2022/02/10 06:25:04 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:04 DEBUG : dir: Looking for writers 2022/02/10 06:25:04 DEBUG : file1: reading active writers 2022/02/10 06:25:04 DEBUG : : Looking for writers 2022/02/10 06:25:04 DEBUG : dir: reading active writers 2022/02/10 06:25:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/02/10 06:25:04 DEBUG : dir: Looking for writers 2022/02/10 06:25:04 DEBUG : file1: reading active writers 2022/02/10 06:25:04 DEBUG : : Looking for writers 2022/02/10 06:25:04 DEBUG : dir: reading active writers 2022/02/10 06:25:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/02/10 06:25:04 DEBUG : dir: Looking for writers 2022/02/10 06:25:04 DEBUG : file1: reading active writers 2022/02/10 06:25:04 DEBUG : : Looking for writers 2022/02/10 06:25:04 DEBUG : dir: reading active writers 2022/02/10 06:25:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/02/10 06:25:04 DEBUG : dir: Looking for writers 2022/02/10 06:25:04 DEBUG : file1: reading active writers 2022/02/10 06:25:04 DEBUG : : Looking for writers 2022/02/10 06:25:04 DEBUG : dir: reading active writers 2022/02/10 06:25:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/02/10 06:25:04 DEBUG : dir/file1: vfs cache: starting upload 2022/02/10 06:25:04 DEBUG : dir: Looking for writers 2022/02/10 06:25:04 DEBUG : file1: reading active writers 2022/02/10 06:25:04 DEBUG : : Looking for writers 2022/02/10 06:25:04 DEBUG : dir: reading active writers 2022/02/10 06:25:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/02/10 06:25:05 DEBUG : dir: Looking for writers 2022/02/10 06:25:05 DEBUG : file1: reading active writers 2022/02/10 06:25:05 DEBUG : : Looking for writers 2022/02/10 06:25:05 DEBUG : dir: reading active writers 2022/02/10 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/02/10 06:25:05 DEBUG : dir: Looking for writers 2022/02/10 06:25:05 DEBUG : file1: reading active writers 2022/02/10 06:25:05 DEBUG : : Looking for writers 2022/02/10 06:25:05 DEBUG : dir: reading active writers 2022/02/10 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/02/10 06:25:05 INFO : dir/file1: Copied (replaced existing) 2022/02/10 06:25:05 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/02/10 06:25:05 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2022/02/10 06:25:05 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:05 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/02/10 06:25:06 DEBUG : dir: Looking for writers 2022/02/10 06:25:06 DEBUG : file1: reading active writers 2022/02/10 06:25:06 DEBUG : : Looking for writers 2022/02/10 06:25:06 DEBUG : dir: reading active writers 2022/02/10 06:25:06 DEBUG : >WaitForWriters: 2022/02/10 06:25:06 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/02/10 06:25:06 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:25:06 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:25:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:25:06 DEBUG : dir/file1(0xc000c9f600): _readAt: size=512, off=0 2022/02/10 06:25:06 DEBUG : dir/file1(0xc000c9f600): openPending: 2022/02/10 06:25:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/02/10 06:25:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:25:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:06 DEBUG : dir/file1(0xc000c9f600): >openPending: err= 2022/02/10 06:25:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/02/10 06:25:06 DEBUG : dir/file1(0xc000c9f600): >_readAt: n=14, err=EOF 2022/02/10 06:25:06 DEBUG : dir/file1(0xc000c9f600): close: 2022/02/10 06:25:06 DEBUG : dir/file1: vfs cache: setting modification time to 2022-02-10 06:25:05 +0000 UTC 2022/02/10 06:25:06 DEBUG : dir/file1(0xc000c9f600): >close: err= 2022/02/10 06:25:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:25:06 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/02/10 06:25:06 DEBUG : newLeaf: Updating file with newLeaf 0xc000b63740 2022/02/10 06:25:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:25:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:07 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/02/10 06:25:07 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/02/10 06:25:07 DEBUG : dir/file1: Updating file with dir/file1 0xc000b63740 2022/02/10 06:25:07 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/02/10 06:25:07 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 run.go:342 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 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2022/02/10 06:25:14 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/02/10 06:25:14 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:25:14 DEBUG : dir/file1(0xc000d760c0): openPending: 2022/02/10 06:25:14 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/02/10 06:25:14 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:25:14 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:14 DEBUG : dir/file1(0xc000d760c0): >openPending: err= 2022/02/10 06:25:14 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/02/10 06:25:14 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:25:14 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:25:14 DEBUG : dir/file1(0xc000d760c0): _writeAt: size=25, off=0 2022/02/10 06:25:14 DEBUG : dir/file1(0xc000d760c0): >_writeAt: n=25, err= 2022/02/10 06:25:15 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:25:15 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/02/10 06:25:15 DEBUG : newLeaf: Updating file with newLeaf 0xc000b63740 2022/02/10 06:25:15 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:25:15 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:15 DEBUG : newLeaf(0xc000d760c0): close: 2022/02/10 06:25:15 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/02/10 06:25:15 DEBUG : newLeaf: vfs cache: setting modification time to 2022-02-10 06:25:14.568758963 +0000 UTC m=+90.568555227 2022/02/10 06:25:15 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/02/10 06:25:15 DEBUG : newLeaf(0xc000d760c0): >close: err= 2022/02/10 06:25:15 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:15 DEBUG : dir: Looking for writers 2022/02/10 06:25:15 DEBUG : : Looking for writers 2022/02/10 06:25:15 DEBUG : dir: reading active writers 2022/02/10 06:25:15 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/02/10 06:25:15 DEBUG : dir: Looking for writers 2022/02/10 06:25:15 DEBUG : : Looking for writers 2022/02/10 06:25:15 DEBUG : dir: reading active writers 2022/02/10 06:25:15 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/02/10 06:25:15 DEBUG : dir: Looking for writers 2022/02/10 06:25:15 DEBUG : : Looking for writers 2022/02/10 06:25:15 DEBUG : dir: reading active writers 2022/02/10 06:25:15 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/02/10 06:25:15 DEBUG : dir: Looking for writers 2022/02/10 06:25:15 DEBUG : : Looking for writers 2022/02/10 06:25:15 DEBUG : dir: reading active writers 2022/02/10 06:25:15 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/02/10 06:25:15 DEBUG : newLeaf: vfs cache: starting upload 2022/02/10 06:25:15 DEBUG : dir: Looking for writers 2022/02/10 06:25:15 DEBUG : : Looking for writers 2022/02/10 06:25:15 DEBUG : dir: reading active writers 2022/02/10 06:25:15 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/02/10 06:25:15 DEBUG : dir: Looking for writers 2022/02/10 06:25:15 DEBUG : : Looking for writers 2022/02/10 06:25:15 DEBUG : dir: reading active writers 2022/02/10 06:25:15 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/02/10 06:25:15 DEBUG : dir: Looking for writers 2022/02/10 06:25:15 DEBUG : : Looking for writers 2022/02/10 06:25:15 DEBUG : dir: reading active writers 2022/02/10 06:25:15 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/02/10 06:25:16 INFO : newLeaf: Copied (replaced existing) 2022/02/10 06:25:16 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/02/10 06:25:16 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/02/10 06:25:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:16 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/02/10 06:25:16 DEBUG : dir: Looking for writers 2022/02/10 06:25:16 DEBUG : : Looking for writers 2022/02/10 06:25:16 DEBUG : dir: reading active writers 2022/02/10 06:25:16 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:16 DEBUG : >WaitForWriters: 2022/02/10 06:25:16 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:16 DEBUG : dir: Looking for writers 2022/02/10 06:25:16 DEBUG : : Looking for writers 2022/02/10 06:25:16 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:16 DEBUG : dir: reading active writers 2022/02/10 06:25:16 DEBUG : >WaitForWriters: 2022/02/10 06:25:16 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:181: Remote "mega root 'rclone-test-budevuv0zitiqex6debunub2'", Local "Local file system at /tmp/rclone4137426612", Modify Window "876000h0m0s" 2022/02/10 06:25:17 INFO : mega root 'rclone-test-budevuv0zitiqex6debunub2': poll-interval is not supported by this remote 2022/02/10 06:25:17 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/02/10 06:25:17 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:17 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-budevuv0zitiqex6debunub2" 2022/02/10 06:25:17 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/02/10 06:25:17 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:17 DEBUG : dir: Looking for writers 2022/02/10 06:25:17 DEBUG : file1: reading active writers 2022/02/10 06:25:17 DEBUG : : Looking for writers 2022/02/10 06:25:17 DEBUG : dir: reading active writers 2022/02/10 06:25:17 DEBUG : >WaitForWriters: 2022/02/10 06:25:17 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/02/10 06:25:17 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:25:17 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:25:17 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:25:17 DEBUG : dir/file1(0xc000e08bc0): _readAt: size=512, off=0 2022/02/10 06:25:17 DEBUG : dir/file1(0xc000e08bc0): openPending: 2022/02/10 06:25:17 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/02/10 06:25:17 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:25:17 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:17 DEBUG : dir/file1(0xc000e08bc0): >openPending: err= 2022/02/10 06:25:17 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2022/02/10 06:25:17 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/02/10 06:25:17 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/02/10 06:25:17 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/02/10 06:25:18 DEBUG : dir/file1(0xc000e08bc0): >_readAt: n=14, err=EOF 2022/02/10 06:25:18 DEBUG : dir/file1(0xc000e08bc0): close: 2022/02/10 06:25:18 DEBUG : dir/file1: vfs cache: setting modification time to 2022-02-10 06:25:17 +0000 UTC 2022/02/10 06:25:18 DEBUG : dir/file1(0xc000e08bc0): >close: err= 2022/02/10 06:25:18 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:25:18 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/02/10 06:25:18 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dda40 2022/02/10 06:25:18 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:25:18 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:19 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/02/10 06:25:19 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/02/10 06:25:19 DEBUG : dir/file1: Updating file with dir/file1 0xc0009dda40 2022/02/10 06:25:19 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/02/10 06:25:19 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 run.go:342 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 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2022/02/10 06:25:26 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/02/10 06:25:26 DEBUG : dir/file1: newRWFileHandle: 2022/02/10 06:25:26 DEBUG : dir/file1(0xc000ecc280): openPending: 2022/02/10 06:25:26 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/02/10 06:25:26 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/02/10 06:25:26 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/02/10 06:25:26 DEBUG : dir/file1(0xc000ecc280): >openPending: err= 2022/02/10 06:25:26 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/02/10 06:25:26 DEBUG : dir/file1: >newRWFileHandle: err= 2022/02/10 06:25:26 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/02/10 06:25:26 DEBUG : dir/file1(0xc000ecc280): _writeAt: size=25, off=0 2022/02/10 06:25:26 DEBUG : dir/file1(0xc000ecc280): >_writeAt: n=25, err= 2022/02/10 06:25:26 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/02/10 06:25:26 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/02/10 06:25:26 DEBUG : newLeaf: Updating file with newLeaf 0xc0009dda40 2022/02/10 06:25:26 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/02/10 06:25:26 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:26 DEBUG : newLeaf(0xc000ecc280): close: 2022/02/10 06:25:26 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/02/10 06:25:26 DEBUG : newLeaf: vfs cache: setting modification time to 2022-02-10 06:25:26.15343672 +0000 UTC m=+102.153232985 2022/02/10 06:25:26 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/02/10 06:25:26 DEBUG : newLeaf(0xc000ecc280): >close: err= 2022/02/10 06:25:26 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:26 DEBUG : dir: Looking for writers 2022/02/10 06:25:26 DEBUG : : Looking for writers 2022/02/10 06:25:26 DEBUG : dir: reading active writers 2022/02/10 06:25:26 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/02/10 06:25:26 DEBUG : dir: Looking for writers 2022/02/10 06:25:26 DEBUG : : Looking for writers 2022/02/10 06:25:26 DEBUG : dir: reading active writers 2022/02/10 06:25:26 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/02/10 06:25:26 DEBUG : dir: Looking for writers 2022/02/10 06:25:26 DEBUG : : Looking for writers 2022/02/10 06:25:26 DEBUG : dir: reading active writers 2022/02/10 06:25:26 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/02/10 06:25:26 DEBUG : dir: Looking for writers 2022/02/10 06:25:26 DEBUG : : Looking for writers 2022/02/10 06:25:26 DEBUG : dir: reading active writers 2022/02/10 06:25:26 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/02/10 06:25:26 DEBUG : newLeaf: vfs cache: starting upload 2022/02/10 06:25:26 DEBUG : dir: Looking for writers 2022/02/10 06:25:26 DEBUG : : Looking for writers 2022/02/10 06:25:26 DEBUG : dir: reading active writers 2022/02/10 06:25:26 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/02/10 06:25:26 DEBUG : dir: Looking for writers 2022/02/10 06:25:26 DEBUG : : Looking for writers 2022/02/10 06:25:26 DEBUG : dir: reading active writers 2022/02/10 06:25:26 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/02/10 06:25:27 DEBUG : dir: Looking for writers 2022/02/10 06:25:27 DEBUG : : Looking for writers 2022/02/10 06:25:27 DEBUG : dir: reading active writers 2022/02/10 06:25:27 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/02/10 06:25:27 INFO : newLeaf: Copied (replaced existing) 2022/02/10 06:25:27 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/02/10 06:25:27 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/02/10 06:25:27 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/02/10 06:25:27 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/02/10 06:25:27 DEBUG : dir: Looking for writers 2022/02/10 06:25:27 DEBUG : : Looking for writers 2022/02/10 06:25:27 DEBUG : dir: reading active writers 2022/02/10 06:25:27 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:27 DEBUG : >WaitForWriters: 2022/02/10 06:25:27 DEBUG : WaitForWriters: timeout=30s 2022/02/10 06:25:27 DEBUG : dir: Looking for writers 2022/02/10 06:25:27 DEBUG : : Looking for writers 2022/02/10 06:25:27 DEBUG : dir: reading active writers 2022/02/10 06:25:27 DEBUG : newLeaf: reading active writers 2022/02/10 06:25:27 DEBUG : >WaitForWriters: 2022/02/10 06:25:27 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (93.41s) --- FAIL: TestFileRename/off,forceCache=false (18.66s) --- FAIL: TestFileRename/minimal,forceCache=false (17.46s) --- FAIL: TestFileRename/minimal,forceCache=true (12.96s) --- FAIL: TestFileRename/writes,forceCache=false (20.27s) --- FAIL: TestFileRename/writes,forceCache=true (12.88s) --- FAIL: TestFileRename/full,forceCache=false (11.18s) FAIL 2022/02/10 06:25:28 DEBUG : mega root 'rclone-test-budevuv0zitiqex6debunub2': Purge remote "./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Finished ERROR in 1m45.197936215s (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]