"./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 4/5) 2022/03/02 06:23:21 DEBUG : Creating backend with remote "TestMega:rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:23:21 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2022/03/02 06:23:29 DEBUG : Creating backend with remote "/tmp/rclone2691360717" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:181: Remote "mega root 'rclone-test-bugobaw9momoxek3vununic1'", Local "Local file system at /tmp/rclone2691360717", Modify Window "876000h0m0s" 2022/03/02 06:23:29 INFO : mega root 'rclone-test-bugobaw9momoxek3vununic1': poll-interval is not supported by this remote 2022/03/02 06:23:29 NOTICE: mega root 'rclone-test-bugobaw9momoxek3vununic1': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/03/02 06:23:30 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:23:30 DEBUG : dir: Looking for writers 2022/03/02 06:23:30 DEBUG : file1: reading active writers 2022/03/02 06:23:30 DEBUG : : Looking for writers 2022/03/02 06:23:30 DEBUG : dir: reading active writers 2022/03/02 06:23:30 DEBUG : >WaitForWriters: 2022/03/02 06:23:31 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:23:31 DEBUG : newLeaf: Updating file with newLeaf 0xc00026e3c0 2022/03/02 06:23:31 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:23:31 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:23:31 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/03/02 06:23:31 DEBUG : dir/file1: Updating file with dir/file1 0xc00026e3c0 2022/03/02 06:23:31 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/03/02 06:23:31 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) 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/03/02 06:23:38 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/03/02 06:23:38 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2022/03/02 06:23:38 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:23:38 DEBUG : dir/file1: File is currently open, delaying rename 0xc00026e3c0 2022/03/02 06:23:38 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:23:38 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:23:38 DEBUG : mega root 'rclone-test-bugobaw9momoxek3vununic1': File to upload is small (25 bytes), uploading instead of streaming 2022/03/02 06:23:41 INFO : dir/file1: Copied (new) 2022/03/02 06:23:41 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:23:41 DEBUG : newLeaf: Running delayed rename now 2022/03/02 06:23:41 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:23:41 DEBUG : newLeaf: Updating file with newLeaf 0xc00026e3c0 2022/03/02 06:23:41 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:23:41 DEBUG : dir: Looking for writers 2022/03/02 06:23:41 DEBUG : : Looking for writers 2022/03/02 06:23:41 DEBUG : newLeaf: reading active writers 2022/03/02 06:23:41 DEBUG : dir: reading active writers 2022/03/02 06:23:41 DEBUG : >WaitForWriters: 2022/03/02 06:23:41 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:23:41 DEBUG : dir: Looking for writers 2022/03/02 06:23:41 DEBUG : : Looking for writers 2022/03/02 06:23:41 DEBUG : dir: reading active writers 2022/03/02 06:23:41 DEBUG : newLeaf: reading active writers 2022/03/02 06:23:41 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:181: Remote "mega root 'rclone-test-bugobaw9momoxek3vununic1'", Local "Local file system at /tmp/rclone2691360717", Modify Window "876000h0m0s" 2022/03/02 06:23:42 INFO : mega root 'rclone-test-bugobaw9momoxek3vununic1': poll-interval is not supported by this remote 2022/03/02 06:23:42 NOTICE: mega root 'rclone-test-bugobaw9momoxek3vununic1': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/03/02 06:23:42 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/03/02 06:23:42 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:23:42 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:23:42 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:23:42 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:23:42 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/03/02 06:23:43 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:23:43 DEBUG : dir: Looking for writers 2022/03/02 06:23:43 DEBUG : file1: reading active writers 2022/03/02 06:23:43 DEBUG : : Looking for writers 2022/03/02 06:23:43 DEBUG : dir: reading active writers 2022/03/02 06:23:43 DEBUG : >WaitForWriters: 2022/03/02 06:23:44 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:23:44 DEBUG : newLeaf: Updating file with newLeaf 0xc00026ee40 2022/03/02 06:23:44 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:23:44 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/03/02 06:23:51 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/03/02 06:23:51 DEBUG : dir/file1: Updating file with dir/file1 0xc00026ee40 2022/03/02 06:23:51 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/03/02 06:23:51 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/03/02 06:23:58 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/03/02 06:23:58 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2022/03/02 06:23:58 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:23:58 DEBUG : dir/file1: File is currently open, delaying rename 0xc00026ee40 2022/03/02 06:23:58 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:23:58 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:23:58 DEBUG : mega root 'rclone-test-bugobaw9momoxek3vununic1': File to upload is small (25 bytes), uploading instead of streaming 2022/03/02 06:23:58 INFO : dir/file1: Copied (new) 2022/03/02 06:23:58 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:23:58 DEBUG : newLeaf: Running delayed rename now 2022/03/02 06:23:58 INFO : newLeaf: Deleted 2022/03/02 06:24:01 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:01 DEBUG : newLeaf: Updating file with newLeaf 0xc00026ee40 2022/03/02 06:24:01 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:01 DEBUG : dir: Looking for writers 2022/03/02 06:24:01 DEBUG : : Looking for writers 2022/03/02 06:24:01 DEBUG : dir: reading active writers 2022/03/02 06:24:01 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:01 DEBUG : >WaitForWriters: 2022/03/02 06:24:01 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:01 DEBUG : dir: Looking for writers 2022/03/02 06:24:01 DEBUG : : Looking for writers 2022/03/02 06:24:01 DEBUG : dir: reading active writers 2022/03/02 06:24:01 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:01 DEBUG : >WaitForWriters: 2022/03/02 06:24:01 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:181: Remote "mega root 'rclone-test-bugobaw9momoxek3vununic1'", Local "Local file system at /tmp/rclone2691360717", Modify Window "876000h0m0s" 2022/03/02 06:24:02 INFO : mega root 'rclone-test-bugobaw9momoxek3vununic1': poll-interval is not supported by this remote 2022/03/02 06:24:02 NOTICE: mega root 'rclone-test-bugobaw9momoxek3vununic1': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/03/02 06:24:02 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/03/02 06:24:02 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:02 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:02 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:02 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:02 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/03/02 06:24:03 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2022/03/02 06:24:03 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:03 DEBUG : dir/file1(0xc0027d6800): openPending: 2022/03/02 06:24:03 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/03/02 06:24:03 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:03 DEBUG : dir/file1(0xc0027d6800): >openPending: err= 2022/03/02 06:24:03 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/03/02 06:24:03 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:03 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:03 DEBUG : dir/file1(0xc0027d6800): _writeAt: size=14, off=0 2022/03/02 06:24:03 DEBUG : dir/file1(0xc0027d6800): >_writeAt: n=14, err= 2022/03/02 06:24:03 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/03/02 06:24:03 DEBUG : dir/file1(0xc0027d6800): close: 2022/03/02 06:24:03 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/03/02 06:24:03 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/03/02 06:24:03 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/03/02 06:24:03 DEBUG : dir/file1(0xc0027d6800): >close: err= 2022/03/02 06:24:03 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:03 DEBUG : dir: Looking for writers 2022/03/02 06:24:03 DEBUG : file1: reading active writers 2022/03/02 06:24:03 DEBUG : : Looking for writers 2022/03/02 06:24:03 DEBUG : dir: reading active writers 2022/03/02 06:24:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/03/02 06:24:03 DEBUG : dir: Looking for writers 2022/03/02 06:24:03 DEBUG : file1: reading active writers 2022/03/02 06:24:03 DEBUG : : Looking for writers 2022/03/02 06:24:03 DEBUG : dir: reading active writers 2022/03/02 06:24:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/03/02 06:24:03 DEBUG : dir: Looking for writers 2022/03/02 06:24:03 DEBUG : file1: reading active writers 2022/03/02 06:24:03 DEBUG : : Looking for writers 2022/03/02 06:24:03 DEBUG : dir: reading active writers 2022/03/02 06:24:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/03/02 06:24:03 DEBUG : dir: Looking for writers 2022/03/02 06:24:03 DEBUG : file1: reading active writers 2022/03/02 06:24:03 DEBUG : : Looking for writers 2022/03/02 06:24:03 DEBUG : dir: reading active writers 2022/03/02 06:24:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/03/02 06:24:03 DEBUG : dir/file1: vfs cache: starting upload 2022/03/02 06:24:03 DEBUG : dir: Looking for writers 2022/03/02 06:24:03 DEBUG : file1: reading active writers 2022/03/02 06:24:03 DEBUG : : Looking for writers 2022/03/02 06:24:03 DEBUG : dir: reading active writers 2022/03/02 06:24:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/03/02 06:24:03 DEBUG : dir: Looking for writers 2022/03/02 06:24:03 DEBUG : file1: reading active writers 2022/03/02 06:24:03 DEBUG : : Looking for writers 2022/03/02 06:24:03 DEBUG : dir: reading active writers 2022/03/02 06:24:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/03/02 06:24:03 DEBUG : dir: Looking for writers 2022/03/02 06:24:03 DEBUG : file1: reading active writers 2022/03/02 06:24:03 DEBUG : : Looking for writers 2022/03/02 06:24:03 DEBUG : dir: reading active writers 2022/03/02 06:24:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/03/02 06:24:04 DEBUG : dir: Looking for writers 2022/03/02 06:24:04 DEBUG : file1: reading active writers 2022/03/02 06:24:04 DEBUG : : Looking for writers 2022/03/02 06:24:04 DEBUG : dir: reading active writers 2022/03/02 06:24:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/03/02 06:24:05 DEBUG : dir: Looking for writers 2022/03/02 06:24:05 DEBUG : file1: reading active writers 2022/03/02 06:24:05 DEBUG : : Looking for writers 2022/03/02 06:24:05 DEBUG : dir: reading active writers 2022/03/02 06:24:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/03/02 06:24:05 INFO : dir/file1: Copied (replaced existing) 2022/03/02 06:24:05 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/03/02 06:24:05 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2022/03/02 06:24:05 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:05 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/03/02 06:24:06 DEBUG : dir: Looking for writers 2022/03/02 06:24:06 DEBUG : file1: reading active writers 2022/03/02 06:24:06 DEBUG : : Looking for writers 2022/03/02 06:24:06 DEBUG : dir: reading active writers 2022/03/02 06:24:06 DEBUG : >WaitForWriters: 2022/03/02 06:24:06 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/03/02 06:24:06 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:06 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:06 DEBUG : dir/file1(0xc00262f8c0): _readAt: size=512, off=0 2022/03/02 06:24:06 DEBUG : dir/file1(0xc00262f8c0): openPending: 2022/03/02 06:24:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/03/02 06:24:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:06 DEBUG : dir/file1(0xc00262f8c0): >openPending: err= 2022/03/02 06:24:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/03/02 06:24:06 DEBUG : dir/file1(0xc00262f8c0): >_readAt: n=14, err=EOF 2022/03/02 06:24:06 DEBUG : dir/file1(0xc00262f8c0): close: 2022/03/02 06:24:06 DEBUG : dir/file1: vfs cache: setting modification time to 2022-03-02 06:24:03 +0000 UTC 2022/03/02 06:24:06 DEBUG : dir/file1(0xc00262f8c0): >close: err= 2022/03/02 06:24:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:06 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/03/02 06:24:06 DEBUG : newLeaf: Updating file with newLeaf 0xc00026f380 2022/03/02 06:24:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:24:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:07 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/03/02 06:24:07 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/03/02 06:24:07 DEBUG : dir/file1: Updating file with dir/file1 0xc00026f380 2022/03/02 06:24:07 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/03/02 06:24: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/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/03/02 06:24:14 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/03/02 06:24:14 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:14 DEBUG : dir/file1(0xc0027d76c0): openPending: 2022/03/02 06:24:14 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/03/02 06:24:14 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:14 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:14 DEBUG : dir/file1(0xc0027d76c0): >openPending: err= 2022/03/02 06:24:14 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/03/02 06:24:14 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:14 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:14 DEBUG : dir/file1(0xc0027d76c0): _writeAt: size=25, off=0 2022/03/02 06:24:14 DEBUG : dir/file1(0xc0027d76c0): >_writeAt: n=25, err= 2022/03/02 06:24:14 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:14 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/03/02 06:24:14 DEBUG : newLeaf: Updating file with newLeaf 0xc00026f380 2022/03/02 06:24:14 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:24:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:14 DEBUG : newLeaf(0xc0027d76c0): close: 2022/03/02 06:24:14 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/03/02 06:24:14 DEBUG : newLeaf: vfs cache: setting modification time to 2022-03-02 06:24:14.381416191 +0000 UTC m=+53.048714686 2022/03/02 06:24:14 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/03/02 06:24:14 DEBUG : newLeaf(0xc0027d76c0): >close: err= 2022/03/02 06:24:14 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:14 DEBUG : dir: Looking for writers 2022/03/02 06:24:14 DEBUG : : Looking for writers 2022/03/02 06:24:14 DEBUG : dir: reading active writers 2022/03/02 06:24:14 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/03/02 06:24:14 DEBUG : dir: Looking for writers 2022/03/02 06:24:14 DEBUG : : Looking for writers 2022/03/02 06:24:14 DEBUG : dir: reading active writers 2022/03/02 06:24:14 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/03/02 06:24:14 DEBUG : dir: Looking for writers 2022/03/02 06:24:14 DEBUG : : Looking for writers 2022/03/02 06:24:14 DEBUG : dir: reading active writers 2022/03/02 06:24:14 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/03/02 06:24:14 DEBUG : dir: Looking for writers 2022/03/02 06:24:14 DEBUG : : Looking for writers 2022/03/02 06:24:14 DEBUG : dir: reading active writers 2022/03/02 06:24:14 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/03/02 06:24:14 DEBUG : newLeaf: vfs cache: starting upload 2022/03/02 06:24:14 DEBUG : dir: Looking for writers 2022/03/02 06:24:14 DEBUG : : Looking for writers 2022/03/02 06:24:14 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:14 DEBUG : dir: reading active writers 2022/03/02 06:24:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/03/02 06:24:15 DEBUG : dir: Looking for writers 2022/03/02 06:24:15 DEBUG : : Looking for writers 2022/03/02 06:24:15 DEBUG : dir: reading active writers 2022/03/02 06:24:15 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/03/02 06:24:15 DEBUG : dir: Looking for writers 2022/03/02 06:24:15 DEBUG : : Looking for writers 2022/03/02 06:24:15 DEBUG : dir: reading active writers 2022/03/02 06:24:15 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/03/02 06:24:16 DEBUG : dir: Looking for writers 2022/03/02 06:24:16 DEBUG : : Looking for writers 2022/03/02 06:24:16 DEBUG : dir: reading active writers 2022/03/02 06:24:16 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/03/02 06:24:16 INFO : newLeaf: Copied (replaced existing) 2022/03/02 06:24:16 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/03/02 06:24:16 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/03/02 06:24:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:16 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/03/02 06:24:17 DEBUG : dir: Looking for writers 2022/03/02 06:24:17 DEBUG : : Looking for writers 2022/03/02 06:24:17 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:17 DEBUG : dir: reading active writers 2022/03/02 06:24:17 DEBUG : >WaitForWriters: 2022/03/02 06:24:17 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:17 DEBUG : dir: Looking for writers 2022/03/02 06:24:17 DEBUG : : Looking for writers 2022/03/02 06:24:17 DEBUG : dir: reading active writers 2022/03/02 06:24:17 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:17 DEBUG : >WaitForWriters: 2022/03/02 06:24:17 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:181: Remote "mega root 'rclone-test-bugobaw9momoxek3vununic1'", Local "Local file system at /tmp/rclone2691360717", Modify Window "876000h0m0s" 2022/03/02 06:24:17 INFO : mega root 'rclone-test-bugobaw9momoxek3vununic1': poll-interval is not supported by this remote 2022/03/02 06:24:17 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/03/02 06:24:17 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:17 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:17 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/03/02 06:24:18 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:18 DEBUG : dir: Looking for writers 2022/03/02 06:24:18 DEBUG : file1: reading active writers 2022/03/02 06:24:18 DEBUG : : Looking for writers 2022/03/02 06:24:18 DEBUG : dir: reading active writers 2022/03/02 06:24:18 DEBUG : >WaitForWriters: 2022/03/02 06:24:18 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:18 DEBUG : newLeaf: Updating file with newLeaf 0xc00012dec0 2022/03/02 06:24:18 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:24: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 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/03/02 06:24:26 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/03/02 06:24:26 DEBUG : dir/file1: Updating file with dir/file1 0xc00012dec0 2022/03/02 06:24:26 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/03/02 06:24:26 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/03/02 06:24:33 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/03/02 06:24:33 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:33 DEBUG : dir/file1(0xc002a4a1c0): openPending: 2022/03/02 06:24:33 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/03/02 06:24:33 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:33 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:33 DEBUG : dir/file1(0xc002a4a1c0): >openPending: err= 2022/03/02 06:24:33 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/03/02 06:24:33 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:33 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:33 DEBUG : dir/file1(0xc002a4a1c0): _writeAt: size=25, off=0 2022/03/02 06:24:33 DEBUG : dir/file1(0xc002a4a1c0): >_writeAt: n=25, err= 2022/03/02 06:24:33 INFO : newLeaf: Deleted 2022/03/02 06:24:33 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:33 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/03/02 06:24:33 DEBUG : newLeaf: Updating file with newLeaf 0xc00012dec0 2022/03/02 06:24:33 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:24:33 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:33 DEBUG : newLeaf(0xc002a4a1c0): close: 2022/03/02 06:24:33 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/03/02 06:24:33 DEBUG : newLeaf: vfs cache: setting modification time to 2022-03-02 06:24:33.02167932 +0000 UTC m=+71.688977815 2022/03/02 06:24:33 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/03/02 06:24:33 DEBUG : newLeaf(0xc002a4a1c0): >close: err= 2022/03/02 06:24:33 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:33 DEBUG : dir: Looking for writers 2022/03/02 06:24:33 DEBUG : : Looking for writers 2022/03/02 06:24:33 DEBUG : dir: reading active writers 2022/03/02 06:24:33 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/03/02 06:24:33 DEBUG : dir: Looking for writers 2022/03/02 06:24:33 DEBUG : : Looking for writers 2022/03/02 06:24:33 DEBUG : dir: reading active writers 2022/03/02 06:24:33 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/03/02 06:24:33 DEBUG : dir: Looking for writers 2022/03/02 06:24:33 DEBUG : : Looking for writers 2022/03/02 06:24:33 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:33 DEBUG : dir: reading active writers 2022/03/02 06:24:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/03/02 06:24:33 DEBUG : dir: Looking for writers 2022/03/02 06:24:33 DEBUG : : Looking for writers 2022/03/02 06:24:33 DEBUG : dir: reading active writers 2022/03/02 06:24:33 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/03/02 06:24:33 DEBUG : newLeaf: vfs cache: starting upload 2022/03/02 06:24:33 DEBUG : dir: Looking for writers 2022/03/02 06:24:33 DEBUG : : Looking for writers 2022/03/02 06:24:33 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:33 DEBUG : dir: reading active writers 2022/03/02 06:24:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/03/02 06:24:34 DEBUG : dir: Looking for writers 2022/03/02 06:24:34 DEBUG : : Looking for writers 2022/03/02 06:24:34 DEBUG : dir: reading active writers 2022/03/02 06:24:34 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/03/02 06:24:34 INFO : newLeaf: Copied (replaced existing) 2022/03/02 06:24:34 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/03/02 06:24:34 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/03/02 06:24:34 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:34 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/03/02 06:24:34 DEBUG : dir: Looking for writers 2022/03/02 06:24:34 DEBUG : : Looking for writers 2022/03/02 06:24:34 DEBUG : dir: reading active writers 2022/03/02 06:24:34 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:34 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 2022/03/02 06:24:41 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:41 DEBUG : dir: Looking for writers 2022/03/02 06:24:41 DEBUG : : Looking for writers 2022/03/02 06:24:41 DEBUG : dir: reading active writers 2022/03/02 06:24:41 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:41 DEBUG : >WaitForWriters: 2022/03/02 06:24:41 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:181: Remote "mega root 'rclone-test-bugobaw9momoxek3vununic1'", Local "Local file system at /tmp/rclone2691360717", Modify Window "876000h0m0s" 2022/03/02 06:24:41 INFO : mega root 'rclone-test-bugobaw9momoxek3vununic1': poll-interval is not supported by this remote 2022/03/02 06:24:41 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/03/02 06:24:41 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:41 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:41 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:41 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:41 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/03/02 06:24:42 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2022/03/02 06:24:42 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:42 DEBUG : dir/file1(0xc002b14100): openPending: 2022/03/02 06:24:42 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/03/02 06:24:42 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:42 DEBUG : dir/file1(0xc002b14100): >openPending: err= 2022/03/02 06:24:42 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/03/02 06:24:42 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:42 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:42 DEBUG : dir/file1(0xc002b14100): _writeAt: size=14, off=0 2022/03/02 06:24:42 DEBUG : dir/file1(0xc002b14100): >_writeAt: n=14, err= 2022/03/02 06:24:42 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/03/02 06:24:42 DEBUG : dir/file1(0xc002b14100): close: 2022/03/02 06:24:42 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/03/02 06:24:42 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/03/02 06:24:42 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/03/02 06:24:42 DEBUG : dir/file1(0xc002b14100): >close: err= 2022/03/02 06:24:42 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:42 DEBUG : dir: Looking for writers 2022/03/02 06:24:42 DEBUG : file1: reading active writers 2022/03/02 06:24:42 DEBUG : : Looking for writers 2022/03/02 06:24:42 DEBUG : dir: reading active writers 2022/03/02 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/03/02 06:24:42 DEBUG : dir: Looking for writers 2022/03/02 06:24:42 DEBUG : file1: reading active writers 2022/03/02 06:24:42 DEBUG : : Looking for writers 2022/03/02 06:24:42 DEBUG : dir: reading active writers 2022/03/02 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/03/02 06:24:42 DEBUG : dir: Looking for writers 2022/03/02 06:24:42 DEBUG : file1: reading active writers 2022/03/02 06:24:42 DEBUG : : Looking for writers 2022/03/02 06:24:42 DEBUG : dir: reading active writers 2022/03/02 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/03/02 06:24:42 DEBUG : dir: Looking for writers 2022/03/02 06:24:42 DEBUG : file1: reading active writers 2022/03/02 06:24:42 DEBUG : : Looking for writers 2022/03/02 06:24:42 DEBUG : dir: reading active writers 2022/03/02 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/03/02 06:24:42 DEBUG : dir/file1: vfs cache: starting upload 2022/03/02 06:24:42 DEBUG : dir: Looking for writers 2022/03/02 06:24:42 DEBUG : file1: reading active writers 2022/03/02 06:24:42 DEBUG : : Looking for writers 2022/03/02 06:24:42 DEBUG : dir: reading active writers 2022/03/02 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/03/02 06:24:42 DEBUG : dir: Looking for writers 2022/03/02 06:24:42 DEBUG : file1: reading active writers 2022/03/02 06:24:42 DEBUG : : Looking for writers 2022/03/02 06:24:42 DEBUG : dir: reading active writers 2022/03/02 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/03/02 06:24:42 DEBUG : dir: Looking for writers 2022/03/02 06:24:42 DEBUG : file1: reading active writers 2022/03/02 06:24:42 DEBUG : : Looking for writers 2022/03/02 06:24:42 DEBUG : dir: reading active writers 2022/03/02 06:24:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/03/02 06:24:42 INFO : dir/file1: Copied (replaced existing) 2022/03/02 06:24:42 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/03/02 06:24:42 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2022/03/02 06:24:42 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:42 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/03/02 06:24:43 DEBUG : dir: Looking for writers 2022/03/02 06:24:43 DEBUG : file1: reading active writers 2022/03/02 06:24:43 DEBUG : : Looking for writers 2022/03/02 06:24:43 DEBUG : dir: reading active writers 2022/03/02 06:24:43 DEBUG : >WaitForWriters: 2022/03/02 06:24:43 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/03/02 06:24:43 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:43 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:43 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:43 DEBUG : dir/file1(0xc002a4b940): _readAt: size=512, off=0 2022/03/02 06:24:43 DEBUG : dir/file1(0xc002a4b940): openPending: 2022/03/02 06:24:43 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/03/02 06:24:43 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:43 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:43 DEBUG : dir/file1(0xc002a4b940): >openPending: err= 2022/03/02 06:24:43 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/03/02 06:24:43 DEBUG : dir/file1(0xc002a4b940): >_readAt: n=14, err=EOF 2022/03/02 06:24:43 DEBUG : dir/file1(0xc002a4b940): close: 2022/03/02 06:24:43 DEBUG : dir/file1: vfs cache: setting modification time to 2022-03-02 06:24:42 +0000 UTC 2022/03/02 06:24:43 DEBUG : dir/file1(0xc002a4b940): >close: err= 2022/03/02 06:24:43 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:43 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/03/02 06:24:43 DEBUG : newLeaf: Updating file with newLeaf 0xc002b16180 2022/03/02 06:24:43 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:24:43 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:44 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/03/02 06:24:44 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/03/02 06:24:44 DEBUG : dir/file1: Updating file with dir/file1 0xc002b16180 2022/03/02 06:24:44 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/03/02 06:24: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 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/03/02 06:24:51 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/03/02 06:24:51 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:51 DEBUG : dir/file1(0xc002bbc6c0): openPending: 2022/03/02 06:24:51 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/03/02 06:24:51 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:51 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:51 DEBUG : dir/file1(0xc002bbc6c0): >openPending: err= 2022/03/02 06:24:51 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/03/02 06:24:51 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:51 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:51 DEBUG : dir/file1(0xc002bbc6c0): _writeAt: size=25, off=0 2022/03/02 06:24:51 DEBUG : dir/file1(0xc002bbc6c0): >_writeAt: n=25, err= 2022/03/02 06:24:51 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:51 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/03/02 06:24:51 DEBUG : newLeaf: Updating file with newLeaf 0xc002b16180 2022/03/02 06:24:51 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:24:51 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:51 DEBUG : newLeaf(0xc002bbc6c0): close: 2022/03/02 06:24:51 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/03/02 06:24:51 DEBUG : newLeaf: vfs cache: setting modification time to 2022-03-02 06:24:51.265089069 +0000 UTC m=+89.932387575 2022/03/02 06:24:51 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/03/02 06:24:51 DEBUG : newLeaf(0xc002bbc6c0): >close: err= 2022/03/02 06:24:51 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:51 DEBUG : dir: Looking for writers 2022/03/02 06:24:51 DEBUG : : Looking for writers 2022/03/02 06:24:51 DEBUG : dir: reading active writers 2022/03/02 06:24:51 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/03/02 06:24:51 DEBUG : dir: Looking for writers 2022/03/02 06:24:51 DEBUG : : Looking for writers 2022/03/02 06:24:51 DEBUG : dir: reading active writers 2022/03/02 06:24:51 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/03/02 06:24:51 DEBUG : dir: Looking for writers 2022/03/02 06:24:51 DEBUG : : Looking for writers 2022/03/02 06:24:51 DEBUG : dir: reading active writers 2022/03/02 06:24:51 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/03/02 06:24:51 DEBUG : dir: Looking for writers 2022/03/02 06:24:51 DEBUG : : Looking for writers 2022/03/02 06:24:51 DEBUG : dir: reading active writers 2022/03/02 06:24:51 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/03/02 06:24:51 DEBUG : newLeaf: vfs cache: starting upload 2022/03/02 06:24:52 DEBUG : dir: Looking for writers 2022/03/02 06:24:52 DEBUG : : Looking for writers 2022/03/02 06:24:52 DEBUG : dir: reading active writers 2022/03/02 06:24:52 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/03/02 06:24:52 DEBUG : dir: Looking for writers 2022/03/02 06:24:52 DEBUG : : Looking for writers 2022/03/02 06:24:52 DEBUG : dir: reading active writers 2022/03/02 06:24:52 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/03/02 06:24:52 INFO : newLeaf: Copied (replaced existing) 2022/03/02 06:24:52 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/03/02 06:24:52 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/03/02 06:24:52 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:52 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/03/02 06:24:52 DEBUG : dir: Looking for writers 2022/03/02 06:24:52 DEBUG : : Looking for writers 2022/03/02 06:24:52 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:52 DEBUG : dir: reading active writers 2022/03/02 06:24:52 DEBUG : >WaitForWriters: 2022/03/02 06:24:52 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:52 DEBUG : dir: Looking for writers 2022/03/02 06:24:52 DEBUG : : Looking for writers 2022/03/02 06:24:52 DEBUG : dir: reading active writers 2022/03/02 06:24:52 DEBUG : newLeaf: reading active writers 2022/03/02 06:24:52 DEBUG : >WaitForWriters: 2022/03/02 06:24:52 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:181: Remote "mega root 'rclone-test-bugobaw9momoxek3vununic1'", Local "Local file system at /tmp/rclone2691360717", Modify Window "876000h0m0s" 2022/03/02 06:24:53 INFO : mega root 'rclone-test-bugobaw9momoxek3vununic1': poll-interval is not supported by this remote 2022/03/02 06:24:53 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/03/02 06:24:53 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:53 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:53 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:53 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-bugobaw9momoxek3vununic1" 2022/03/02 06:24:53 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/03/02 06:24:54 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:24:54 DEBUG : dir: Looking for writers 2022/03/02 06:24:54 DEBUG : file1: reading active writers 2022/03/02 06:24:54 DEBUG : : Looking for writers 2022/03/02 06:24:54 DEBUG : dir: reading active writers 2022/03/02 06:24:54 DEBUG : >WaitForWriters: 2022/03/02 06:24:54 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/03/02 06:24:54 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:24:54 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:24:54 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:24:54 DEBUG : dir/file1(0xc002ae5ec0): _readAt: size=512, off=0 2022/03/02 06:24:54 DEBUG : dir/file1(0xc002ae5ec0): openPending: 2022/03/02 06:24:54 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/03/02 06:24:54 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:24:54 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:24:54 DEBUG : dir/file1(0xc002ae5ec0): >openPending: err= 2022/03/02 06:24:54 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2022/03/02 06:24:54 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/03/02 06:24:54 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/03/02 06:24:54 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/03/02 06:24:55 DEBUG : dir/file1(0xc002ae5ec0): >_readAt: n=14, err=EOF 2022/03/02 06:24:55 DEBUG : dir/file1(0xc002ae5ec0): close: 2022/03/02 06:24:55 DEBUG : dir/file1: vfs cache: setting modification time to 2022-03-02 06:24:54 +0000 UTC 2022/03/02 06:24:55 DEBUG : dir/file1(0xc002ae5ec0): >close: err= 2022/03/02 06:24:57 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:24:57 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/03/02 06:24:57 DEBUG : newLeaf: Updating file with newLeaf 0xc002af6a80 2022/03/02 06:24:57 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:24:57 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:24:57 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/03/02 06:24:57 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/03/02 06:24:57 DEBUG : dir/file1: Updating file with dir/file1 0xc002af6a80 2022/03/02 06:24:57 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/03/02 06:24:57 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/03/02 06:25:04 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/03/02 06:25:04 DEBUG : dir/file1: newRWFileHandle: 2022/03/02 06:25:04 DEBUG : dir/file1(0xc002cc2180): openPending: 2022/03/02 06:25:04 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/03/02 06:25:04 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/03/02 06:25:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/03/02 06:25:04 DEBUG : dir/file1(0xc002cc2180): >openPending: err= 2022/03/02 06:25:04 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/03/02 06:25:04 DEBUG : dir/file1: >newRWFileHandle: err= 2022/03/02 06:25:04 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/03/02 06:25:04 DEBUG : dir/file1(0xc002cc2180): _writeAt: size=25, off=0 2022/03/02 06:25:04 DEBUG : dir/file1(0xc002cc2180): >_writeAt: n=25, err= 2022/03/02 06:25:05 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/03/02 06:25:05 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/03/02 06:25:05 DEBUG : newLeaf: Updating file with newLeaf 0xc002af6a80 2022/03/02 06:25:05 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/03/02 06:25:05 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:25:05 DEBUG : newLeaf(0xc002cc2180): close: 2022/03/02 06:25:05 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/03/02 06:25:05 DEBUG : newLeaf: vfs cache: setting modification time to 2022-03-02 06:25:04.853295996 +0000 UTC m=+103.520594491 2022/03/02 06:25:05 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/03/02 06:25:05 DEBUG : newLeaf(0xc002cc2180): >close: err= 2022/03/02 06:25:05 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:25:05 DEBUG : dir: Looking for writers 2022/03/02 06:25:05 DEBUG : : Looking for writers 2022/03/02 06:25:05 DEBUG : dir: reading active writers 2022/03/02 06:25:05 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/03/02 06:25:05 DEBUG : dir: Looking for writers 2022/03/02 06:25:05 DEBUG : : Looking for writers 2022/03/02 06:25:05 DEBUG : dir: reading active writers 2022/03/02 06:25:05 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/03/02 06:25:05 DEBUG : dir: Looking for writers 2022/03/02 06:25:05 DEBUG : : Looking for writers 2022/03/02 06:25:05 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:05 DEBUG : dir: reading active writers 2022/03/02 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/03/02 06:25:05 DEBUG : dir: Looking for writers 2022/03/02 06:25:05 DEBUG : : Looking for writers 2022/03/02 06:25:05 DEBUG : dir: reading active writers 2022/03/02 06:25:05 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/03/02 06:25:05 DEBUG : newLeaf: vfs cache: starting upload 2022/03/02 06:25:05 DEBUG : dir: Looking for writers 2022/03/02 06:25:05 DEBUG : : Looking for writers 2022/03/02 06:25:05 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:05 DEBUG : dir: reading active writers 2022/03/02 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/03/02 06:25:05 DEBUG : dir: Looking for writers 2022/03/02 06:25:05 DEBUG : : Looking for writers 2022/03/02 06:25:05 DEBUG : dir: reading active writers 2022/03/02 06:25:05 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/03/02 06:25:05 DEBUG : dir: Looking for writers 2022/03/02 06:25:05 DEBUG : : Looking for writers 2022/03/02 06:25:05 DEBUG : dir: reading active writers 2022/03/02 06:25:05 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/03/02 06:25:05 INFO : newLeaf: Copied (replaced existing) 2022/03/02 06:25:05 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/03/02 06:25:05 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/03/02 06:25:05 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/03/02 06:25:05 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/03/02 06:25:06 DEBUG : dir: Looking for writers 2022/03/02 06:25:06 DEBUG : : Looking for writers 2022/03/02 06:25:06 DEBUG : dir: reading active writers 2022/03/02 06:25:06 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:06 DEBUG : >WaitForWriters: 2022/03/02 06:25:06 DEBUG : WaitForWriters: timeout=30s 2022/03/02 06:25:06 DEBUG : dir: Looking for writers 2022/03/02 06:25:06 DEBUG : : Looking for writers 2022/03/02 06:25:06 DEBUG : newLeaf: reading active writers 2022/03/02 06:25:06 DEBUG : dir: reading active writers 2022/03/02 06:25:06 DEBUG : >WaitForWriters: 2022/03/02 06:25:06 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (97.09s) --- FAIL: TestFileRename/off,forceCache=false (12.88s) --- FAIL: TestFileRename/minimal,forceCache=false (19.80s) --- FAIL: TestFileRename/minimal,forceCache=true (14.77s) --- FAIL: TestFileRename/writes,forceCache=false (24.43s) --- FAIL: TestFileRename/writes,forceCache=true (11.40s) --- FAIL: TestFileRename/full,forceCache=false (13.81s) FAIL 2022/03/02 06:25:06 DEBUG : mega root 'rclone-test-bugobaw9momoxek3vununic1': 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.810686778s (try 4/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]