"./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) 2021/11/13 06:38:50 DEBUG : Creating backend with remote "TestMega:rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:38:50 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2021/11/13 06:38:57 DEBUG : Creating backend with remote "/tmp/rclone3917998335" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:181: Remote "mega root 'rclone-test-mejagut5gezubag5gahizag7'", Local "Local file system at /tmp/rclone3917998335", Modify Window "876000h0m0s" 2021/11/13 06:38:57 INFO : mega root 'rclone-test-mejagut5gezubag5gahizag7': poll-interval is not supported by this remote 2021/11/13 06:38:57 NOTICE: mega root 'rclone-test-mejagut5gezubag5gahizag7': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/11/13 06:38:58 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:38:58 DEBUG : dir: Looking for writers 2021/11/13 06:38:58 DEBUG : file1: reading active writers 2021/11/13 06:38:58 DEBUG : : Looking for writers 2021/11/13 06:38:58 DEBUG : dir: reading active writers 2021/11/13 06:38:58 DEBUG : >WaitForWriters: 2021/11/13 06:38:59 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:38:59 DEBUG : newLeaf: Updating file with newLeaf 0xc00300a540 2021/11/13 06:38:59 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:38:59 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" 2021/11/13 06:39:07 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:39:07 DEBUG : dir/file1: Updating file with dir/file1 0xc00300a540 2021/11/13 06:39:07 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:39: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/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" 2021/11/13 06:39:14 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:39:14 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/11/13 06:39:14 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:14 DEBUG : dir/file1: File is currently open, delaying rename 0xc00300a540 2021/11/13 06:39:14 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:39:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:14 DEBUG : mega root 'rclone-test-mejagut5gezubag5gahizag7': File to upload is small (25 bytes), uploading instead of streaming 2021/11/13 06:39:14 INFO : dir/file1: Copied (new) 2021/11/13 06:39:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:14 DEBUG : newLeaf: Running delayed rename now 2021/11/13 06:39:14 INFO : newLeaf: Deleted 2021/11/13 06:39:15 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:39:15 DEBUG : newLeaf: Updating file with newLeaf 0xc00300a540 2021/11/13 06:39:15 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:15 DEBUG : dir: Looking for writers 2021/11/13 06:39:15 DEBUG : : Looking for writers 2021/11/13 06:39:15 DEBUG : dir: reading active writers 2021/11/13 06:39:15 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:15 DEBUG : >WaitForWriters: 2021/11/13 06:39:15 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:15 DEBUG : dir: Looking for writers 2021/11/13 06:39:15 DEBUG : : Looking for writers 2021/11/13 06:39:15 DEBUG : dir: reading active writers 2021/11/13 06:39:15 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:15 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:181: Remote "mega root 'rclone-test-mejagut5gezubag5gahizag7'", Local "Local file system at /tmp/rclone3917998335", Modify Window "876000h0m0s" 2021/11/13 06:39:15 INFO : mega root 'rclone-test-mejagut5gezubag5gahizag7': poll-interval is not supported by this remote 2021/11/13 06:39:15 NOTICE: mega root 'rclone-test-mejagut5gezubag5gahizag7': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/11/13 06:39:15 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:39:15 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:15 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:15 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:15 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:15 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/11/13 06:39:16 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:16 DEBUG : dir: Looking for writers 2021/11/13 06:39:16 DEBUG : file1: reading active writers 2021/11/13 06:39:16 DEBUG : : Looking for writers 2021/11/13 06:39:16 DEBUG : dir: reading active writers 2021/11/13 06:39:16 DEBUG : >WaitForWriters: 2021/11/13 06:39:17 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:39:17 DEBUG : newLeaf: Updating file with newLeaf 0xc0002718c0 2021/11/13 06:39:17 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:39:17 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:18 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:39:18 DEBUG : dir/file1: Updating file with dir/file1 0xc0002718c0 2021/11/13 06:39:18 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:39:18 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) 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" 2021/11/13 06:39:25 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:39:25 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/11/13 06:39:25 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:25 DEBUG : dir/file1: File is currently open, delaying rename 0xc0002718c0 2021/11/13 06:39:25 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:39:25 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:25 DEBUG : mega root 'rclone-test-mejagut5gezubag5gahizag7': File to upload is small (25 bytes), uploading instead of streaming 2021/11/13 06:39:25 INFO : dir/file1: Copied (new) 2021/11/13 06:39:25 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:25 DEBUG : newLeaf: Running delayed rename now 2021/11/13 06:39:26 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:39:26 DEBUG : newLeaf: Updating file with newLeaf 0xc0002718c0 2021/11/13 06:39:26 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:26 DEBUG : dir: Looking for writers 2021/11/13 06:39:26 DEBUG : : Looking for writers 2021/11/13 06:39:26 DEBUG : dir: reading active writers 2021/11/13 06:39:26 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:26 DEBUG : >WaitForWriters: 2021/11/13 06:39:26 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:26 DEBUG : dir: Looking for writers 2021/11/13 06:39:26 DEBUG : : Looking for writers 2021/11/13 06:39:26 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:26 DEBUG : dir: reading active writers 2021/11/13 06:39:26 DEBUG : >WaitForWriters: 2021/11/13 06:39:26 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:181: Remote "mega root 'rclone-test-mejagut5gezubag5gahizag7'", Local "Local file system at /tmp/rclone3917998335", Modify Window "876000h0m0s" 2021/11/13 06:39:26 INFO : mega root 'rclone-test-mejagut5gezubag5gahizag7': poll-interval is not supported by this remote 2021/11/13 06:39:26 NOTICE: mega root 'rclone-test-mejagut5gezubag5gahizag7': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/11/13 06:39:26 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:39:26 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:26 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:26 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:26 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:26 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/11/13 06:39:27 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/11/13 06:39:27 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:39:27 DEBUG : dir/file1(0xc0030baf00): openPending: 2021/11/13 06:39:27 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:39:27 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:39:27 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:27 DEBUG : dir/file1(0xc0030baf00): >openPending: err= 2021/11/13 06:39:27 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:39:27 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:39:27 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:27 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:39:27 DEBUG : dir/file1(0xc0030baf00): _writeAt: size=14, off=0 2021/11/13 06:39:27 DEBUG : dir/file1(0xc0030baf00): >_writeAt: n=14, err= 2021/11/13 06:39:27 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:39:27 DEBUG : dir/file1(0xc0030baf00): close: 2021/11/13 06:39:27 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:39:27 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:39:27 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/11/13 06:39:27 DEBUG : dir/file1(0xc0030baf00): >close: err= 2021/11/13 06:39:27 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:27 DEBUG : dir: Looking for writers 2021/11/13 06:39:27 DEBUG : file1: reading active writers 2021/11/13 06:39:27 DEBUG : : Looking for writers 2021/11/13 06:39:27 DEBUG : dir: reading active writers 2021/11/13 06:39:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:39:27 DEBUG : dir: Looking for writers 2021/11/13 06:39:27 DEBUG : file1: reading active writers 2021/11/13 06:39:27 DEBUG : : Looking for writers 2021/11/13 06:39:27 DEBUG : dir: reading active writers 2021/11/13 06:39:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:39:27 DEBUG : dir: Looking for writers 2021/11/13 06:39:27 DEBUG : file1: reading active writers 2021/11/13 06:39:27 DEBUG : : Looking for writers 2021/11/13 06:39:27 DEBUG : dir: reading active writers 2021/11/13 06:39:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:39:27 DEBUG : dir: Looking for writers 2021/11/13 06:39:27 DEBUG : file1: reading active writers 2021/11/13 06:39:27 DEBUG : : Looking for writers 2021/11/13 06:39:27 DEBUG : dir: reading active writers 2021/11/13 06:39:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:39:27 DEBUG : dir/file1: vfs cache: starting upload 2021/11/13 06:39:27 DEBUG : dir: Looking for writers 2021/11/13 06:39:27 DEBUG : file1: reading active writers 2021/11/13 06:39:27 DEBUG : : Looking for writers 2021/11/13 06:39:27 DEBUG : dir: reading active writers 2021/11/13 06:39:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:39:27 DEBUG : dir: Looking for writers 2021/11/13 06:39:27 DEBUG : file1: reading active writers 2021/11/13 06:39:27 DEBUG : : Looking for writers 2021/11/13 06:39:27 DEBUG : dir: reading active writers 2021/11/13 06:39:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:39:27 DEBUG : dir: Looking for writers 2021/11/13 06:39:27 DEBUG : file1: reading active writers 2021/11/13 06:39:27 DEBUG : : Looking for writers 2021/11/13 06:39:27 DEBUG : dir: reading active writers 2021/11/13 06:39:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/11/13 06:39:28 INFO : dir/file1: Copied (replaced existing) 2021/11/13 06:39:28 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/11/13 06:39:28 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/11/13 06:39:28 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:28 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/11/13 06:39:28 DEBUG : dir: Looking for writers 2021/11/13 06:39:28 DEBUG : file1: reading active writers 2021/11/13 06:39:28 DEBUG : : Looking for writers 2021/11/13 06:39:28 DEBUG : dir: reading active writers 2021/11/13 06:39:28 DEBUG : >WaitForWriters: 2021/11/13 06:39:28 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/11/13 06:39:28 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:39:28 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:39:28 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:39:28 DEBUG : dir/file1(0xc000906500): _readAt: size=512, off=0 2021/11/13 06:39:28 DEBUG : dir/file1(0xc000906500): openPending: 2021/11/13 06:39:28 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:39:28 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:39:28 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:28 DEBUG : dir/file1(0xc000906500): >openPending: err= 2021/11/13 06:39:28 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:39:28 DEBUG : dir/file1(0xc000906500): >_readAt: n=14, err=EOF 2021/11/13 06:39:28 DEBUG : dir/file1(0xc000906500): close: 2021/11/13 06:39:28 DEBUG : dir/file1: vfs cache: setting modification time to 2021-11-13 06:39:27 +0000 UTC 2021/11/13 06:39:28 DEBUG : dir/file1(0xc000906500): >close: err= 2021/11/13 06:39:29 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:39:29 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:39:29 DEBUG : newLeaf: Updating file with newLeaf 0xc00300a180 2021/11/13 06:39:29 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:39:29 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:30 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:39:30 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/11/13 06:39:30 DEBUG : dir/file1: Updating file with dir/file1 0xc00300a180 2021/11/13 06:39:30 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:39:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 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" 2021/11/13 06:39:37 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:39:37 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:39:37 DEBUG : dir/file1(0xc000906b80): openPending: 2021/11/13 06:39:37 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:39:37 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:39:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:37 DEBUG : dir/file1(0xc000906b80): >openPending: err= 2021/11/13 06:39:37 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:39:37 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:39:37 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:39:37 DEBUG : dir/file1(0xc000906b80): _writeAt: size=25, off=0 2021/11/13 06:39:37 DEBUG : dir/file1(0xc000906b80): >_writeAt: n=25, err= 2021/11/13 06:39:37 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:39:37 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:39:37 DEBUG : newLeaf: Updating file with newLeaf 0xc00300a180 2021/11/13 06:39:37 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:39:37 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:37 DEBUG : newLeaf(0xc000906b80): close: 2021/11/13 06:39:37 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:39:37 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:39:37.34717939 +0000 UTC m=+47.143567653 2021/11/13 06:39:37 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:39:37 DEBUG : newLeaf(0xc000906b80): >close: err= 2021/11/13 06:39:37 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:37 DEBUG : dir: Looking for writers 2021/11/13 06:39:37 DEBUG : : Looking for writers 2021/11/13 06:39:37 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:37 DEBUG : dir: reading active writers 2021/11/13 06:39:37 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:39:37 DEBUG : dir: Looking for writers 2021/11/13 06:39:37 DEBUG : : Looking for writers 2021/11/13 06:39:37 DEBUG : dir: reading active writers 2021/11/13 06:39:37 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:37 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:39:37 DEBUG : dir: Looking for writers 2021/11/13 06:39:37 DEBUG : : Looking for writers 2021/11/13 06:39:37 DEBUG : dir: reading active writers 2021/11/13 06:39:37 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:37 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:39:37 DEBUG : dir: Looking for writers 2021/11/13 06:39:37 DEBUG : : Looking for writers 2021/11/13 06:39:37 DEBUG : dir: reading active writers 2021/11/13 06:39:37 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:37 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:39:37 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:39:37 DEBUG : dir: Looking for writers 2021/11/13 06:39:37 DEBUG : : Looking for writers 2021/11/13 06:39:37 DEBUG : dir: reading active writers 2021/11/13 06:39:37 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:37 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:39:37 DEBUG : dir: Looking for writers 2021/11/13 06:39:37 DEBUG : : Looking for writers 2021/11/13 06:39:37 DEBUG : dir: reading active writers 2021/11/13 06:39:37 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:37 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:39:38 DEBUG : dir: Looking for writers 2021/11/13 06:39:38 DEBUG : : Looking for writers 2021/11/13 06:39:38 DEBUG : dir: reading active writers 2021/11/13 06:39:38 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/11/13 06:39:38 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:39:38 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:39:38 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:39:38 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:38 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:39:38 DEBUG : dir: Looking for writers 2021/11/13 06:39:38 DEBUG : : Looking for writers 2021/11/13 06:39:38 DEBUG : dir: reading active writers 2021/11/13 06:39:38 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:38 DEBUG : >WaitForWriters: 2021/11/13 06:39:38 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:38 DEBUG : dir: Looking for writers 2021/11/13 06:39:38 DEBUG : : Looking for writers 2021/11/13 06:39:38 DEBUG : dir: reading active writers 2021/11/13 06:39:38 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:38 DEBUG : >WaitForWriters: 2021/11/13 06:39:38 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:181: Remote "mega root 'rclone-test-mejagut5gezubag5gahizag7'", Local "Local file system at /tmp/rclone3917998335", Modify Window "876000h0m0s" 2021/11/13 06:39:40 INFO : mega root 'rclone-test-mejagut5gezubag5gahizag7': poll-interval is not supported by this remote 2021/11/13 06:39:40 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:39:40 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:40 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:40 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:40 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:40 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/11/13 06:39:40 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:40 DEBUG : dir: Looking for writers 2021/11/13 06:39:40 DEBUG : file1: reading active writers 2021/11/13 06:39:40 DEBUG : : Looking for writers 2021/11/13 06:39:40 DEBUG : dir: reading active writers 2021/11/13 06:39:40 DEBUG : >WaitForWriters: 2021/11/13 06:39:41 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:39:41 DEBUG : newLeaf: Updating file with newLeaf 0xc000271bc0 2021/11/13 06:39:41 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:39:41 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" 2021/11/13 06:39:49 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:39:49 DEBUG : dir/file1: Updating file with dir/file1 0xc000271bc0 2021/11/13 06:39:49 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:39:49 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" 2021/11/13 06:39:56 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:39:56 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:39:56 DEBUG : dir/file1(0xc0033bed80): openPending: 2021/11/13 06:39:56 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:39:56 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:39:56 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:56 DEBUG : dir/file1(0xc0033bed80): >openPending: err= 2021/11/13 06:39:56 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:39:56 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:39:56 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:39:56 DEBUG : dir/file1(0xc0033bed80): _writeAt: size=25, off=0 2021/11/13 06:39:56 DEBUG : dir/file1(0xc0033bed80): >_writeAt: n=25, err= 2021/11/13 06:39:56 INFO : newLeaf: Deleted 2021/11/13 06:39:57 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:39:57 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:39:57 DEBUG : newLeaf: Updating file with newLeaf 0xc000271bc0 2021/11/13 06:39:57 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:39:57 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:57 DEBUG : newLeaf(0xc0033bed80): close: 2021/11/13 06:39:57 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:39:57 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:39:56.223330927 +0000 UTC m=+66.019719191 2021/11/13 06:39:57 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:39:57 DEBUG : newLeaf(0xc0033bed80): >close: err= 2021/11/13 06:39:57 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:39:57 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:39:57 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:39:57 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:39:57 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:39:57 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:39:57 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : >WaitForWriters: 2021/11/13 06:39:57 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:57 DEBUG : dir: Looking for writers 2021/11/13 06:39:57 DEBUG : : Looking for writers 2021/11/13 06:39:57 DEBUG : dir: reading active writers 2021/11/13 06:39:57 DEBUG : newLeaf: reading active writers 2021/11/13 06:39:57 DEBUG : >WaitForWriters: 2021/11/13 06:39:57 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:181: Remote "mega root 'rclone-test-mejagut5gezubag5gahizag7'", Local "Local file system at /tmp/rclone3917998335", Modify Window "876000h0m0s" 2021/11/13 06:39:58 INFO : mega root 'rclone-test-mejagut5gezubag5gahizag7': poll-interval is not supported by this remote 2021/11/13 06:39:58 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:39:58 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:58 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:58 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:58 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:39:58 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/11/13 06:39:59 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/11/13 06:39:59 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:39:59 DEBUG : dir/file1(0xc00051a600): openPending: 2021/11/13 06:39:59 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:39:59 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:39:59 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:59 DEBUG : dir/file1(0xc00051a600): >openPending: err= 2021/11/13 06:39:59 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:39:59 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:39:59 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:39:59 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:39:59 DEBUG : dir/file1(0xc00051a600): _writeAt: size=14, off=0 2021/11/13 06:39:59 DEBUG : dir/file1(0xc00051a600): >_writeAt: n=14, err= 2021/11/13 06:39:59 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:39:59 DEBUG : dir/file1(0xc00051a600): close: 2021/11/13 06:39:59 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:39:59 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/11/13 06:39:59 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/11/13 06:39:59 DEBUG : dir/file1(0xc00051a600): >close: err= 2021/11/13 06:39:59 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:39:59 DEBUG : dir: Looking for writers 2021/11/13 06:39:59 DEBUG : file1: reading active writers 2021/11/13 06:39:59 DEBUG : : Looking for writers 2021/11/13 06:39:59 DEBUG : dir: reading active writers 2021/11/13 06:39:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:39:59 DEBUG : dir: Looking for writers 2021/11/13 06:39:59 DEBUG : file1: reading active writers 2021/11/13 06:39:59 DEBUG : : Looking for writers 2021/11/13 06:39:59 DEBUG : dir: reading active writers 2021/11/13 06:39:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:39:59 DEBUG : dir: Looking for writers 2021/11/13 06:39:59 DEBUG : file1: reading active writers 2021/11/13 06:39:59 DEBUG : : Looking for writers 2021/11/13 06:39:59 DEBUG : dir: reading active writers 2021/11/13 06:39:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:39:59 DEBUG : dir: Looking for writers 2021/11/13 06:39:59 DEBUG : file1: reading active writers 2021/11/13 06:39:59 DEBUG : : Looking for writers 2021/11/13 06:39:59 DEBUG : dir: reading active writers 2021/11/13 06:39:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:39:59 DEBUG : dir/file1: vfs cache: starting upload 2021/11/13 06:39:59 DEBUG : dir: Looking for writers 2021/11/13 06:39:59 DEBUG : file1: reading active writers 2021/11/13 06:39:59 DEBUG : : Looking for writers 2021/11/13 06:39:59 DEBUG : dir: reading active writers 2021/11/13 06:39:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:39:59 DEBUG : dir: Looking for writers 2021/11/13 06:39:59 DEBUG : file1: reading active writers 2021/11/13 06:39:59 DEBUG : : Looking for writers 2021/11/13 06:39:59 DEBUG : dir: reading active writers 2021/11/13 06:39:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:39:59 DEBUG : dir: Looking for writers 2021/11/13 06:39:59 DEBUG : file1: reading active writers 2021/11/13 06:39:59 DEBUG : : Looking for writers 2021/11/13 06:39:59 DEBUG : dir: reading active writers 2021/11/13 06:39:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/11/13 06:40:00 INFO : dir/file1: Copied (replaced existing) 2021/11/13 06:40:00 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/11/13 06:40:00 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/11/13 06:40:00 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:40:00 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/11/13 06:40:00 DEBUG : dir: Looking for writers 2021/11/13 06:40:00 DEBUG : file1: reading active writers 2021/11/13 06:40:00 DEBUG : : Looking for writers 2021/11/13 06:40:00 DEBUG : dir: reading active writers 2021/11/13 06:40:00 DEBUG : >WaitForWriters: 2021/11/13 06:40:00 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/11/13 06:40:00 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:40:00 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:40:00 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:40:00 DEBUG : dir/file1(0xc00051ae00): _readAt: size=512, off=0 2021/11/13 06:40:00 DEBUG : dir/file1(0xc00051ae00): openPending: 2021/11/13 06:40:00 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:40:00 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:40:00 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:40:00 DEBUG : dir/file1(0xc00051ae00): >openPending: err= 2021/11/13 06:40:00 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/11/13 06:40:00 DEBUG : dir/file1(0xc00051ae00): >_readAt: n=14, err=EOF 2021/11/13 06:40:00 DEBUG : dir/file1(0xc00051ae00): close: 2021/11/13 06:40:00 DEBUG : dir/file1: vfs cache: setting modification time to 2021-11-13 06:39:59 +0000 UTC 2021/11/13 06:40:00 DEBUG : dir/file1(0xc00051ae00): >close: err= 2021/11/13 06:40:00 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:40:00 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:40:00 DEBUG : newLeaf: Updating file with newLeaf 0xc00300b440 2021/11/13 06:40:00 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:40:00 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:40:01 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:40:01 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/11/13 06:40:01 DEBUG : dir/file1: Updating file with dir/file1 0xc00300b440 2021/11/13 06:40:01 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:40:01 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" 2021/11/13 06:40:08 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:40:08 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:40:08 DEBUG : dir/file1(0xc00051bc00): openPending: 2021/11/13 06:40:08 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:40:08 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:40:08 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:40:08 DEBUG : dir/file1(0xc00051bc00): >openPending: err= 2021/11/13 06:40:08 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:40:08 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:40:08 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:40:08 DEBUG : dir/file1(0xc00051bc00): _writeAt: size=25, off=0 2021/11/13 06:40:08 DEBUG : dir/file1(0xc00051bc00): >_writeAt: n=25, err= 2021/11/13 06:40:09 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:40:09 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:40:09 DEBUG : newLeaf: Updating file with newLeaf 0xc00300b440 2021/11/13 06:40:09 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:40:09 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:40:09 DEBUG : newLeaf(0xc00051bc00): close: 2021/11/13 06:40:09 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:40:09 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:40:08.963127975 +0000 UTC m=+78.759516248 2021/11/13 06:40:09 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:40:09 DEBUG : newLeaf(0xc00051bc00): >close: err= 2021/11/13 06:40:09 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:40:09 DEBUG : dir: Looking for writers 2021/11/13 06:40:09 DEBUG : : Looking for writers 2021/11/13 06:40:09 DEBUG : dir: reading active writers 2021/11/13 06:40:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:40:09 DEBUG : dir: Looking for writers 2021/11/13 06:40:09 DEBUG : : Looking for writers 2021/11/13 06:40:09 DEBUG : dir: reading active writers 2021/11/13 06:40:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:40:09 DEBUG : dir: Looking for writers 2021/11/13 06:40:09 DEBUG : : Looking for writers 2021/11/13 06:40:09 DEBUG : dir: reading active writers 2021/11/13 06:40:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:40:09 DEBUG : dir: Looking for writers 2021/11/13 06:40:09 DEBUG : : Looking for writers 2021/11/13 06:40:09 DEBUG : dir: reading active writers 2021/11/13 06:40:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:40:09 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:40:09 DEBUG : dir: Looking for writers 2021/11/13 06:40:09 DEBUG : : Looking for writers 2021/11/13 06:40:09 DEBUG : dir: reading active writers 2021/11/13 06:40:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:40:09 DEBUG : dir: Looking for writers 2021/11/13 06:40:09 DEBUG : : Looking for writers 2021/11/13 06:40:09 DEBUG : dir: reading active writers 2021/11/13 06:40:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:40:09 DEBUG : dir: Looking for writers 2021/11/13 06:40:09 DEBUG : : Looking for writers 2021/11/13 06:40:09 DEBUG : dir: reading active writers 2021/11/13 06:40:09 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/11/13 06:40:10 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:40:10 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:40:10 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:40:10 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:40:10 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:40:10 DEBUG : dir: Looking for writers 2021/11/13 06:40:10 DEBUG : : Looking for writers 2021/11/13 06:40:10 DEBUG : dir: reading active writers 2021/11/13 06:40:10 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:10 DEBUG : >WaitForWriters: 2021/11/13 06:40:10 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:40:10 DEBUG : dir: Looking for writers 2021/11/13 06:40:10 DEBUG : : Looking for writers 2021/11/13 06:40:10 DEBUG : dir: reading active writers 2021/11/13 06:40:10 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:10 DEBUG : >WaitForWriters: 2021/11/13 06:40:10 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:181: Remote "mega root 'rclone-test-mejagut5gezubag5gahizag7'", Local "Local file system at /tmp/rclone3917998335", Modify Window "876000h0m0s" 2021/11/13 06:40:11 INFO : mega root 'rclone-test-mejagut5gezubag5gahizag7': poll-interval is not supported by this remote 2021/11/13 06:40:11 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/11/13 06:40:11 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:40:11 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:40:11 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:40:11 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-mejagut5gezubag5gahizag7" 2021/11/13 06:40:11 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/11/13 06:40:11 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:40:11 DEBUG : dir: Looking for writers 2021/11/13 06:40:11 DEBUG : file1: reading active writers 2021/11/13 06:40:11 DEBUG : : Looking for writers 2021/11/13 06:40:11 DEBUG : dir: reading active writers 2021/11/13 06:40:11 DEBUG : >WaitForWriters: 2021/11/13 06:40:11 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/11/13 06:40:11 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:40:11 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:40:11 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:40:11 DEBUG : dir/file1(0xc000682f40): _readAt: size=512, off=0 2021/11/13 06:40:11 DEBUG : dir/file1(0xc000682f40): openPending: 2021/11/13 06:40:11 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/11/13 06:40:11 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:40:11 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:40:11 DEBUG : dir/file1(0xc000682f40): >openPending: err= 2021/11/13 06:40:11 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2021/11/13 06:40:11 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2021/11/13 06:40:11 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2021/11/13 06:40:11 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2021/11/13 06:40:12 DEBUG : dir/file1(0xc000682f40): >_readAt: n=14, err=EOF 2021/11/13 06:40:12 DEBUG : dir/file1(0xc000682f40): close: 2021/11/13 06:40:12 DEBUG : dir/file1: vfs cache: setting modification time to 2021-11-13 06:40:11 +0000 UTC 2021/11/13 06:40:12 DEBUG : dir/file1(0xc000682f40): >close: err= 2021/11/13 06:40:12 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:40:12 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:40:12 DEBUG : newLeaf: Updating file with newLeaf 0xc00300ba40 2021/11/13 06:40:12 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:40:12 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:40:15 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/11/13 06:40:15 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/11/13 06:40:15 DEBUG : dir/file1: Updating file with dir/file1 0xc00300ba40 2021/11/13 06:40:15 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/11/13 06:40:15 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 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" 2021/11/13 06:40:22 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/11/13 06:40:22 DEBUG : dir/file1: newRWFileHandle: 2021/11/13 06:40:22 DEBUG : dir/file1(0xc0006838c0): openPending: 2021/11/13 06:40:22 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/11/13 06:40:22 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/11/13 06:40:22 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/11/13 06:40:22 DEBUG : dir/file1(0xc0006838c0): >openPending: err= 2021/11/13 06:40:22 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/11/13 06:40:22 DEBUG : dir/file1: >newRWFileHandle: err= 2021/11/13 06:40:22 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/11/13 06:40:22 DEBUG : dir/file1(0xc0006838c0): _writeAt: size=25, off=0 2021/11/13 06:40:22 DEBUG : dir/file1(0xc0006838c0): >_writeAt: n=25, err= 2021/11/13 06:40:22 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/11/13 06:40:22 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/11/13 06:40:22 DEBUG : newLeaf: Updating file with newLeaf 0xc00300ba40 2021/11/13 06:40:22 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/11/13 06:40:22 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:40:22 DEBUG : newLeaf(0xc0006838c0): close: 2021/11/13 06:40:22 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/11/13 06:40:22 DEBUG : newLeaf: vfs cache: setting modification time to 2021-11-13 06:40:22.063773224 +0000 UTC m=+91.860161497 2021/11/13 06:40:22 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/11/13 06:40:22 DEBUG : newLeaf(0xc0006838c0): >close: err= 2021/11/13 06:40:22 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:40:22 DEBUG : dir: Looking for writers 2021/11/13 06:40:22 DEBUG : : Looking for writers 2021/11/13 06:40:22 DEBUG : dir: reading active writers 2021/11/13 06:40:22 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/11/13 06:40:22 DEBUG : dir: Looking for writers 2021/11/13 06:40:22 DEBUG : : Looking for writers 2021/11/13 06:40:22 DEBUG : dir: reading active writers 2021/11/13 06:40:22 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/11/13 06:40:22 DEBUG : dir: Looking for writers 2021/11/13 06:40:22 DEBUG : : Looking for writers 2021/11/13 06:40:22 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:22 DEBUG : dir: reading active writers 2021/11/13 06:40:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/11/13 06:40:22 DEBUG : dir: Looking for writers 2021/11/13 06:40:22 DEBUG : : Looking for writers 2021/11/13 06:40:22 DEBUG : dir: reading active writers 2021/11/13 06:40:22 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/11/13 06:40:22 DEBUG : newLeaf: vfs cache: starting upload 2021/11/13 06:40:22 DEBUG : dir: Looking for writers 2021/11/13 06:40:22 DEBUG : : Looking for writers 2021/11/13 06:40:22 DEBUG : dir: reading active writers 2021/11/13 06:40:22 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/11/13 06:40:23 DEBUG : dir: Looking for writers 2021/11/13 06:40:23 DEBUG : : Looking for writers 2021/11/13 06:40:23 DEBUG : dir: reading active writers 2021/11/13 06:40:23 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:23 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/11/13 06:40:23 INFO : newLeaf: Copied (replaced existing) 2021/11/13 06:40:23 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/11/13 06:40:23 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/11/13 06:40:23 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/11/13 06:40:23 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/11/13 06:40:23 DEBUG : dir: Looking for writers 2021/11/13 06:40:23 DEBUG : : Looking for writers 2021/11/13 06:40:23 DEBUG : dir: reading active writers 2021/11/13 06:40:23 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:23 DEBUG : >WaitForWriters: 2021/11/13 06:40:23 DEBUG : WaitForWriters: timeout=30s 2021/11/13 06:40:23 DEBUG : dir: Looking for writers 2021/11/13 06:40:23 DEBUG : : Looking for writers 2021/11/13 06:40:23 DEBUG : newLeaf: reading active writers 2021/11/13 06:40:23 DEBUG : dir: reading active writers 2021/11/13 06:40:23 DEBUG : >WaitForWriters: 2021/11/13 06:40:23 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (86.73s) --- FAIL: TestFileRename/off,forceCache=false (18.59s) --- FAIL: TestFileRename/minimal,forceCache=false (10.55s) --- FAIL: TestFileRename/minimal,forceCache=true (13.52s) --- FAIL: TestFileRename/writes,forceCache=false (18.50s) --- FAIL: TestFileRename/writes,forceCache=true (12.73s) --- FAIL: TestFileRename/full,forceCache=false (12.84s) FAIL 2021/11/13 06:40:24 DEBUG : mega root 'rclone-test-mejagut5gezubag5gahizag7': 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 1m34.294886124s (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]