"./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 3/5) 2021/04/05 05:30:07 DEBUG : Creating backend with remote "TestMega:rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:30:18 DEBUG : Creating backend with remote "/tmp/rclone429725074" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:176: Remote "mega root 'rclone-test-hegihot9vedohuh9fajegel3'", Local "Local file system at /tmp/rclone429725074", Modify Window "876000h0m0s" 2021/04/05 05:30:18 INFO : mega root 'rclone-test-hegihot9vedohuh9fajegel3': poll-interval is not supported by this remote 2021/04/05 05:30:18 NOTICE: mega root 'rclone-test-hegihot9vedohuh9fajegel3': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/04/05 05:30:19 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:30:19 DEBUG : dir: Looking for writers 2021/04/05 05:30:19 DEBUG : file1: reading active writers 2021/04/05 05:30:19 DEBUG : : Looking for writers 2021/04/05 05:30:19 DEBUG : dir: reading active writers 2021/04/05 05:30:19 DEBUG : >WaitForWriters: 2021/04/05 05:30:21 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:30:21 DEBUG : newLeaf: Updating file with newLeaf 0xc002662600 2021/04/05 05:30:21 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:30:21 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2021/04/05 05:30:28 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/04/05 05:30:28 DEBUG : dir/file1: Updating file with dir/file1 0xc002662600 2021/04/05 05:30:28 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/04/05 05:30:28 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2021/04/05 05:30:35 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/04/05 05:30:35 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/04/05 05:30:35 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:30:35 DEBUG : dir/file1: File is currently open, delaying rename 0xc002662600 2021/04/05 05:30:35 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:30:35 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:30:35 DEBUG : mega root 'rclone-test-hegihot9vedohuh9fajegel3': File to upload is small (25 bytes), uploading instead of streaming 2021/04/05 05:30:35 INFO : dir/file1: Copied (new) 2021/04/05 05:30:35 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:30:35 DEBUG : newLeaf: Running delayed rename now 2021/04/05 05:30:35 INFO : newLeaf: Deleted 2021/04/05 05:30:35 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:30:35 DEBUG : newLeaf: Updating file with newLeaf 0xc002662600 2021/04/05 05:30:35 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:30:35 DEBUG : dir: Looking for writers 2021/04/05 05:30:35 DEBUG : : Looking for writers 2021/04/05 05:30:35 DEBUG : dir: reading active writers 2021/04/05 05:30:35 DEBUG : newLeaf: reading active writers 2021/04/05 05:30:35 DEBUG : >WaitForWriters: 2021/04/05 05:30:35 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:30:35 DEBUG : dir: Looking for writers 2021/04/05 05:30:35 DEBUG : : Looking for writers 2021/04/05 05:30:35 DEBUG : newLeaf: reading active writers 2021/04/05 05:30:35 DEBUG : dir: reading active writers 2021/04/05 05:30:35 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:176: Remote "mega root 'rclone-test-hegihot9vedohuh9fajegel3'", Local "Local file system at /tmp/rclone429725074", Modify Window "876000h0m0s" 2021/04/05 05:30:38 INFO : mega root 'rclone-test-hegihot9vedohuh9fajegel3': poll-interval is not supported by this remote 2021/04/05 05:30:38 NOTICE: mega root 'rclone-test-hegihot9vedohuh9fajegel3': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/04/05 05:30:38 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:30:38 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:30:38 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:30:38 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/04/05 05:30:38 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:30:38 DEBUG : dir: Looking for writers 2021/04/05 05:30:38 DEBUG : file1: reading active writers 2021/04/05 05:30:38 DEBUG : : Looking for writers 2021/04/05 05:30:38 DEBUG : dir: reading active writers 2021/04/05 05:30:38 DEBUG : >WaitForWriters: 2021/04/05 05:30:40 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:30:40 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a1980 2021/04/05 05:30:40 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:30:40 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "file1" 2021/04/05 05:30:47 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/04/05 05:30:47 DEBUG : dir/file1: Updating file with dir/file1 0xc0001a1980 2021/04/05 05:30:47 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/04/05 05:30:47 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2021/04/05 05:30:54 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/04/05 05:30:54 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/04/05 05:30:54 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:30:54 DEBUG : dir/file1: File is currently open, delaying rename 0xc0001a1980 2021/04/05 05:30:54 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:30:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:30:54 DEBUG : mega root 'rclone-test-hegihot9vedohuh9fajegel3': File to upload is small (25 bytes), uploading instead of streaming 2021/04/05 05:30:54 INFO : dir/file1: Copied (new) 2021/04/05 05:30:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:30:54 DEBUG : newLeaf: Running delayed rename now 2021/04/05 05:30:54 INFO : newLeaf: Deleted 2021/04/05 05:30:57 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:30:57 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a1980 2021/04/05 05:30:57 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:30:57 DEBUG : dir: Looking for writers 2021/04/05 05:30:57 DEBUG : : Looking for writers 2021/04/05 05:30:57 DEBUG : dir: reading active writers 2021/04/05 05:30:57 DEBUG : newLeaf: reading active writers 2021/04/05 05:30:57 DEBUG : >WaitForWriters: 2021/04/05 05:30:57 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:30:57 DEBUG : dir: Looking for writers 2021/04/05 05:30:57 DEBUG : : Looking for writers 2021/04/05 05:30:57 DEBUG : dir: reading active writers 2021/04/05 05:30:57 DEBUG : newLeaf: reading active writers 2021/04/05 05:30:57 DEBUG : >WaitForWriters: 2021/04/05 05:30:57 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:176: Remote "mega root 'rclone-test-hegihot9vedohuh9fajegel3'", Local "Local file system at /tmp/rclone429725074", Modify Window "876000h0m0s" 2021/04/05 05:30:59 INFO : mega root 'rclone-test-hegihot9vedohuh9fajegel3': poll-interval is not supported by this remote 2021/04/05 05:30:59 NOTICE: mega root 'rclone-test-hegihot9vedohuh9fajegel3': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/04/05 05:30:59 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:30:59 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:30:59 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:30:59 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/04/05 05:31:03 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/04/05 05:31:03 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:31:03 DEBUG : dir/file1(0xc001622800): openPending: 2021/04/05 05:31:03 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/04/05 05:31:03 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:31:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:03 DEBUG : dir/file1(0xc001622800): >openPending: err= 2021/04/05 05:31:03 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/04/05 05:31:03 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:31:03 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:03 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:31:03 DEBUG : dir/file1(0xc001622800): _writeAt: size=14, off=0 2021/04/05 05:31:03 DEBUG : dir/file1(0xc001622800): >_writeAt: n=14, err= 2021/04/05 05:31:03 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/04/05 05:31:03 DEBUG : dir/file1(0xc001622800): close: 2021/04/05 05:31:03 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/04/05 05:31:03 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/04/05 05:31:03 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/04/05 05:31:03 DEBUG : dir/file1(0xc001622800): >close: err= 2021/04/05 05:31:03 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:03 DEBUG : dir: Looking for writers 2021/04/05 05:31:03 DEBUG : file1: reading active writers 2021/04/05 05:31:03 DEBUG : : Looking for writers 2021/04/05 05:31:03 DEBUG : dir: reading active writers 2021/04/05 05:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/04/05 05:31:03 DEBUG : dir: Looking for writers 2021/04/05 05:31:03 DEBUG : file1: reading active writers 2021/04/05 05:31:03 DEBUG : : Looking for writers 2021/04/05 05:31:03 DEBUG : dir: reading active writers 2021/04/05 05:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/04/05 05:31:03 DEBUG : dir: Looking for writers 2021/04/05 05:31:03 DEBUG : file1: reading active writers 2021/04/05 05:31:03 DEBUG : : Looking for writers 2021/04/05 05:31:03 DEBUG : dir: reading active writers 2021/04/05 05:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/04/05 05:31:03 DEBUG : dir: Looking for writers 2021/04/05 05:31:03 DEBUG : file1: reading active writers 2021/04/05 05:31:03 DEBUG : : Looking for writers 2021/04/05 05:31:03 DEBUG : dir: reading active writers 2021/04/05 05:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/04/05 05:31:03 DEBUG : dir/file1: vfs cache: starting upload 2021/04/05 05:31:03 DEBUG : dir: Looking for writers 2021/04/05 05:31:03 DEBUG : file1: reading active writers 2021/04/05 05:31:03 DEBUG : : Looking for writers 2021/04/05 05:31:03 DEBUG : dir: reading active writers 2021/04/05 05:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/04/05 05:31:03 DEBUG : dir: Looking for writers 2021/04/05 05:31:03 DEBUG : file1: reading active writers 2021/04/05 05:31:03 DEBUG : : Looking for writers 2021/04/05 05:31:03 DEBUG : dir: reading active writers 2021/04/05 05:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/04/05 05:31:03 DEBUG : dir: Looking for writers 2021/04/05 05:31:03 DEBUG : file1: reading active writers 2021/04/05 05:31:03 DEBUG : : Looking for writers 2021/04/05 05:31:03 DEBUG : dir: reading active writers 2021/04/05 05:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/04/05 05:31:04 DEBUG : dir: Looking for writers 2021/04/05 05:31:04 DEBUG : file1: reading active writers 2021/04/05 05:31:04 DEBUG : : Looking for writers 2021/04/05 05:31:04 DEBUG : dir: reading active writers 2021/04/05 05:31:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/04/05 05:31:05 INFO : dir/file1: Copied (replaced existing) 2021/04/05 05:31:05 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/04/05 05:31:05 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/04/05 05:31:05 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:05 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/04/05 05:31:05 DEBUG : dir: Looking for writers 2021/04/05 05:31:05 DEBUG : file1: reading active writers 2021/04/05 05:31:05 DEBUG : : Looking for writers 2021/04/05 05:31:05 DEBUG : dir: reading active writers 2021/04/05 05:31:05 DEBUG : >WaitForWriters: 2021/04/05 05:31:05 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/04/05 05:31:05 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:31:05 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:31:05 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:31:05 DEBUG : dir/file1(0xc001692980): _readAt: size=512, off=0 2021/04/05 05:31:05 DEBUG : dir/file1(0xc001692980): openPending: 2021/04/05 05:31:05 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/04/05 05:31:05 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:31:05 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:05 DEBUG : dir/file1(0xc001692980): >openPending: err= 2021/04/05 05:31:05 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/04/05 05:31:05 DEBUG : dir/file1(0xc001692980): >_readAt: n=14, err=EOF 2021/04/05 05:31:05 DEBUG : dir/file1(0xc001692980): close: 2021/04/05 05:31:05 DEBUG : dir/file1: vfs cache: setting modification time to 2021-04-05 05:31:04 +0000 UTC 2021/04/05 05:31:05 DEBUG : dir/file1(0xc001692980): >close: err= 2021/04/05 05:31:07 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:31:07 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/04/05 05:31:07 DEBUG : newLeaf: Updating file with newLeaf 0xc002663980 2021/04/05 05:31:07 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:31:07 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:09 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/04/05 05:31:09 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/04/05 05:31:09 DEBUG : dir/file1: Updating file with dir/file1 0xc002663980 2021/04/05 05:31:09 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/04/05 05:31:09 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2021/04/05 05:31:16 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/04/05 05:31:16 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:31:16 DEBUG : dir/file1(0xc0016931c0): openPending: 2021/04/05 05:31:16 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/04/05 05:31:16 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:31:16 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:16 DEBUG : dir/file1(0xc0016931c0): >openPending: err= 2021/04/05 05:31:16 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/04/05 05:31:16 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:31:16 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:31:16 DEBUG : dir/file1(0xc0016931c0): _writeAt: size=25, off=0 2021/04/05 05:31:16 DEBUG : dir/file1(0xc0016931c0): >_writeAt: n=25, err= 2021/04/05 05:31:16 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:31:16 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/04/05 05:31:16 DEBUG : newLeaf: Updating file with newLeaf 0xc002663980 2021/04/05 05:31:16 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:31:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:16 DEBUG : newLeaf(0xc0016931c0): close: 2021/04/05 05:31:16 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/04/05 05:31:16 DEBUG : newLeaf: vfs cache: setting modification time to 2021-04-05 05:31:16.409324896 +0000 UTC m=+69.588920515 2021/04/05 05:31:16 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/04/05 05:31:16 DEBUG : newLeaf(0xc0016931c0): >close: err= 2021/04/05 05:31:16 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:16 DEBUG : dir: Looking for writers 2021/04/05 05:31:16 DEBUG : : Looking for writers 2021/04/05 05:31:16 DEBUG : dir: reading active writers 2021/04/05 05:31:16 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/04/05 05:31:16 DEBUG : dir: Looking for writers 2021/04/05 05:31:16 DEBUG : : Looking for writers 2021/04/05 05:31:16 DEBUG : dir: reading active writers 2021/04/05 05:31:16 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/04/05 05:31:16 DEBUG : dir: Looking for writers 2021/04/05 05:31:16 DEBUG : : Looking for writers 2021/04/05 05:31:16 DEBUG : dir: reading active writers 2021/04/05 05:31:16 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/04/05 05:31:16 DEBUG : dir: Looking for writers 2021/04/05 05:31:16 DEBUG : : Looking for writers 2021/04/05 05:31:16 DEBUG : dir: reading active writers 2021/04/05 05:31:16 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/04/05 05:31:16 DEBUG : newLeaf: vfs cache: starting upload 2021/04/05 05:31:16 DEBUG : dir: Looking for writers 2021/04/05 05:31:16 DEBUG : : Looking for writers 2021/04/05 05:31:16 DEBUG : dir: reading active writers 2021/04/05 05:31:16 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/04/05 05:31:16 DEBUG : dir: Looking for writers 2021/04/05 05:31:16 DEBUG : : Looking for writers 2021/04/05 05:31:16 DEBUG : dir: reading active writers 2021/04/05 05:31:16 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/04/05 05:31:16 INFO : newLeaf: Copied (replaced existing) 2021/04/05 05:31:16 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/04/05 05:31:16 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/04/05 05:31:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:16 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/04/05 05:31:17 DEBUG : dir: Looking for writers 2021/04/05 05:31:17 DEBUG : : Looking for writers 2021/04/05 05:31:17 DEBUG : dir: reading active writers 2021/04/05 05:31:17 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:17 DEBUG : >WaitForWriters: 2021/04/05 05:31:17 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:17 DEBUG : dir: Looking for writers 2021/04/05 05:31:17 DEBUG : : Looking for writers 2021/04/05 05:31:17 DEBUG : dir: reading active writers 2021/04/05 05:31:17 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:17 DEBUG : >WaitForWriters: 2021/04/05 05:31:17 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:176: Remote "mega root 'rclone-test-hegihot9vedohuh9fajegel3'", Local "Local file system at /tmp/rclone429725074", Modify Window "876000h0m0s" 2021/04/05 05:31:17 INFO : mega root 'rclone-test-hegihot9vedohuh9fajegel3': poll-interval is not supported by this remote 2021/04/05 05:31:17 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:31:17 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:31:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:31:17 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/04/05 05:31:19 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:19 DEBUG : dir: Looking for writers 2021/04/05 05:31:19 DEBUG : file1: reading active writers 2021/04/05 05:31:19 DEBUG : : Looking for writers 2021/04/05 05:31:19 DEBUG : dir: reading active writers 2021/04/05 05:31:19 DEBUG : >WaitForWriters: 2021/04/05 05:31:19 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:31:19 DEBUG : newLeaf: Updating file with newLeaf 0xc001798900 2021/04/05 05:31:19 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:31:19 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "file1" 2021/04/05 05:31:26 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/04/05 05:31:26 DEBUG : dir/file1: Updating file with dir/file1 0xc001798900 2021/04/05 05:31:26 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/04/05 05:31: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 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2021/04/05 05:31:33 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/04/05 05:31:33 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:31:33 DEBUG : dir/file1(0xc001c790c0): openPending: 2021/04/05 05:31:33 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/04/05 05:31:33 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:31:33 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:33 DEBUG : dir/file1(0xc001c790c0): >openPending: err= 2021/04/05 05:31:33 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/04/05 05:31:33 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:31:33 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:31:33 DEBUG : dir/file1(0xc001c790c0): _writeAt: size=25, off=0 2021/04/05 05:31:33 DEBUG : dir/file1(0xc001c790c0): >_writeAt: n=25, err= 2021/04/05 05:31:34 INFO : newLeaf: Deleted 2021/04/05 05:31:34 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:31:34 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/04/05 05:31:34 DEBUG : newLeaf: Updating file with newLeaf 0xc001798900 2021/04/05 05:31:34 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:31:34 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:34 DEBUG : newLeaf(0xc001c790c0): close: 2021/04/05 05:31:34 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/04/05 05:31:34 DEBUG : newLeaf: vfs cache: setting modification time to 2021-04-05 05:31:33.954741105 +0000 UTC m=+87.134336733 2021/04/05 05:31:34 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/04/05 05:31:34 DEBUG : newLeaf(0xc001c790c0): >close: err= 2021/04/05 05:31:34 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:34 DEBUG : dir: Looking for writers 2021/04/05 05:31:34 DEBUG : : Looking for writers 2021/04/05 05:31:34 DEBUG : dir: reading active writers 2021/04/05 05:31:34 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/04/05 05:31:34 DEBUG : dir: Looking for writers 2021/04/05 05:31:34 DEBUG : : Looking for writers 2021/04/05 05:31:34 DEBUG : dir: reading active writers 2021/04/05 05:31:34 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/04/05 05:31:34 DEBUG : dir: Looking for writers 2021/04/05 05:31:34 DEBUG : : Looking for writers 2021/04/05 05:31:34 DEBUG : dir: reading active writers 2021/04/05 05:31:34 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/04/05 05:31:34 DEBUG : dir: Looking for writers 2021/04/05 05:31:34 DEBUG : : Looking for writers 2021/04/05 05:31:34 DEBUG : dir: reading active writers 2021/04/05 05:31:34 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/04/05 05:31:34 DEBUG : newLeaf: vfs cache: starting upload 2021/04/05 05:31:34 DEBUG : dir: Looking for writers 2021/04/05 05:31:34 DEBUG : : Looking for writers 2021/04/05 05:31:34 DEBUG : dir: reading active writers 2021/04/05 05:31:34 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/04/05 05:31:34 DEBUG : dir: Looking for writers 2021/04/05 05:31:34 DEBUG : : Looking for writers 2021/04/05 05:31:34 DEBUG : dir: reading active writers 2021/04/05 05:31:34 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/04/05 05:31:34 DEBUG : dir: Looking for writers 2021/04/05 05:31:34 DEBUG : : Looking for writers 2021/04/05 05:31:34 DEBUG : dir: reading active writers 2021/04/05 05:31:34 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/04/05 05:31:35 DEBUG : dir: Looking for writers 2021/04/05 05:31:35 DEBUG : : Looking for writers 2021/04/05 05:31:35 DEBUG : dir: reading active writers 2021/04/05 05:31:35 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:35 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/04/05 05:31:36 INFO : newLeaf: Copied (replaced existing) 2021/04/05 05:31:36 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/04/05 05:31:36 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/04/05 05:31:36 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:36 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/04/05 05:31:36 DEBUG : dir: Looking for writers 2021/04/05 05:31:36 DEBUG : : Looking for writers 2021/04/05 05:31:36 DEBUG : dir: reading active writers 2021/04/05 05:31:36 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:36 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:293: Sleeping for 6s just to make sure 2021/04/05 05:31:43 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:43 DEBUG : dir: Looking for writers 2021/04/05 05:31:43 DEBUG : : Looking for writers 2021/04/05 05:31:43 DEBUG : dir: reading active writers 2021/04/05 05:31:43 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:43 DEBUG : >WaitForWriters: 2021/04/05 05:31:43 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:176: Remote "mega root 'rclone-test-hegihot9vedohuh9fajegel3'", Local "Local file system at /tmp/rclone429725074", Modify Window "876000h0m0s" 2021/04/05 05:31:43 INFO : mega root 'rclone-test-hegihot9vedohuh9fajegel3': poll-interval is not supported by this remote 2021/04/05 05:31:43 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:31:43 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:31:43 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:31:43 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/04/05 05:31:43 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/04/05 05:31:43 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:31:43 DEBUG : dir/file1(0xc001e80480): openPending: 2021/04/05 05:31:43 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/04/05 05:31:43 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:31:43 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:43 DEBUG : dir/file1(0xc001e80480): >openPending: err= 2021/04/05 05:31:43 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/04/05 05:31:43 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:31:43 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:43 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:31:43 DEBUG : dir/file1(0xc001e80480): _writeAt: size=14, off=0 2021/04/05 05:31:43 DEBUG : dir/file1(0xc001e80480): >_writeAt: n=14, err= 2021/04/05 05:31:43 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/04/05 05:31:43 DEBUG : dir/file1(0xc001e80480): close: 2021/04/05 05:31:43 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/04/05 05:31:43 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/04/05 05:31:43 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/04/05 05:31:43 DEBUG : dir/file1(0xc001e80480): >close: err= 2021/04/05 05:31:43 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:43 DEBUG : dir: Looking for writers 2021/04/05 05:31:43 DEBUG : file1: reading active writers 2021/04/05 05:31:43 DEBUG : : Looking for writers 2021/04/05 05:31:43 DEBUG : dir: reading active writers 2021/04/05 05:31:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/04/05 05:31:43 DEBUG : dir: Looking for writers 2021/04/05 05:31:43 DEBUG : file1: reading active writers 2021/04/05 05:31:43 DEBUG : : Looking for writers 2021/04/05 05:31:43 DEBUG : dir: reading active writers 2021/04/05 05:31:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/04/05 05:31:43 DEBUG : dir: Looking for writers 2021/04/05 05:31:43 DEBUG : file1: reading active writers 2021/04/05 05:31:43 DEBUG : : Looking for writers 2021/04/05 05:31:43 DEBUG : dir: reading active writers 2021/04/05 05:31:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/04/05 05:31:44 DEBUG : dir: Looking for writers 2021/04/05 05:31:44 DEBUG : file1: reading active writers 2021/04/05 05:31:44 DEBUG : : Looking for writers 2021/04/05 05:31:44 DEBUG : dir: reading active writers 2021/04/05 05:31:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/04/05 05:31:44 DEBUG : dir/file1: vfs cache: starting upload 2021/04/05 05:31:44 DEBUG : dir: Looking for writers 2021/04/05 05:31:44 DEBUG : file1: reading active writers 2021/04/05 05:31:44 DEBUG : : Looking for writers 2021/04/05 05:31:44 DEBUG : dir: reading active writers 2021/04/05 05:31:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/04/05 05:31:44 DEBUG : dir: Looking for writers 2021/04/05 05:31:44 DEBUG : file1: reading active writers 2021/04/05 05:31:44 DEBUG : : Looking for writers 2021/04/05 05:31:44 DEBUG : dir: reading active writers 2021/04/05 05:31:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/04/05 05:31:44 DEBUG : dir: Looking for writers 2021/04/05 05:31:44 DEBUG : file1: reading active writers 2021/04/05 05:31:44 DEBUG : : Looking for writers 2021/04/05 05:31:44 DEBUG : dir: reading active writers 2021/04/05 05:31:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/04/05 05:31:45 DEBUG : dir: Looking for writers 2021/04/05 05:31:45 DEBUG : file1: reading active writers 2021/04/05 05:31:45 DEBUG : : Looking for writers 2021/04/05 05:31:45 DEBUG : dir: reading active writers 2021/04/05 05:31:45 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/04/05 05:31:46 INFO : dir/file1: Copied (replaced existing) 2021/04/05 05:31:46 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/04/05 05:31:46 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/04/05 05:31:46 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:46 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/04/05 05:31:46 DEBUG : dir: Looking for writers 2021/04/05 05:31:46 DEBUG : file1: reading active writers 2021/04/05 05:31:46 DEBUG : : Looking for writers 2021/04/05 05:31:46 DEBUG : dir: reading active writers 2021/04/05 05:31:46 DEBUG : >WaitForWriters: 2021/04/05 05:31:46 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/04/05 05:31:46 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:31:46 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:31:46 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:31:46 DEBUG : dir/file1(0xc001e80700): _readAt: size=512, off=0 2021/04/05 05:31:46 DEBUG : dir/file1(0xc001e80700): openPending: 2021/04/05 05:31:46 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/04/05 05:31:46 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:31:46 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:46 DEBUG : dir/file1(0xc001e80700): >openPending: err= 2021/04/05 05:31:46 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/04/05 05:31:46 DEBUG : dir/file1(0xc001e80700): >_readAt: n=14, err=EOF 2021/04/05 05:31:46 DEBUG : dir/file1(0xc001e80700): close: 2021/04/05 05:31:46 DEBUG : dir/file1: vfs cache: setting modification time to 2021-04-05 05:31:44 +0000 UTC 2021/04/05 05:31:46 DEBUG : dir/file1(0xc001e80700): >close: err= 2021/04/05 05:31:48 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:31:48 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/04/05 05:31:48 DEBUG : newLeaf: Updating file with newLeaf 0xc0017995c0 2021/04/05 05:31:48 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:31:48 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:48 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/04/05 05:31:48 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/04/05 05:31:48 DEBUG : dir/file1: Updating file with dir/file1 0xc0017995c0 2021/04/05 05:31:48 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/04/05 05:31:48 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2021/04/05 05:31:55 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/04/05 05:31:55 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:31:55 DEBUG : dir/file1(0xc001f12e80): openPending: 2021/04/05 05:31:55 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/04/05 05:31:55 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:31:55 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:31:55 DEBUG : dir/file1(0xc001f12e80): >openPending: err= 2021/04/05 05:31:55 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/04/05 05:31:55 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:31:55 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:31:55 DEBUG : dir/file1(0xc001f12e80): _writeAt: size=25, off=0 2021/04/05 05:31:55 DEBUG : dir/file1(0xc001f12e80): >_writeAt: n=25, err= 2021/04/05 05:31:55 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:31:55 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/04/05 05:31:55 DEBUG : newLeaf: Updating file with newLeaf 0xc0017995c0 2021/04/05 05:31:55 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:31:55 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:55 DEBUG : newLeaf(0xc001f12e80): close: 2021/04/05 05:31:55 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/04/05 05:31:55 DEBUG : newLeaf: vfs cache: setting modification time to 2021-04-05 05:31:55.537487341 +0000 UTC m=+108.717082969 2021/04/05 05:31:55 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/04/05 05:31:55 DEBUG : newLeaf(0xc001f12e80): >close: err= 2021/04/05 05:31:55 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:55 DEBUG : dir: Looking for writers 2021/04/05 05:31:55 DEBUG : : Looking for writers 2021/04/05 05:31:55 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:55 DEBUG : dir: reading active writers 2021/04/05 05:31:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/04/05 05:31:55 DEBUG : dir: Looking for writers 2021/04/05 05:31:55 DEBUG : : Looking for writers 2021/04/05 05:31:55 DEBUG : dir: reading active writers 2021/04/05 05:31:55 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/04/05 05:31:55 DEBUG : dir: Looking for writers 2021/04/05 05:31:55 DEBUG : : Looking for writers 2021/04/05 05:31:55 DEBUG : dir: reading active writers 2021/04/05 05:31:55 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/04/05 05:31:55 DEBUG : dir: Looking for writers 2021/04/05 05:31:55 DEBUG : : Looking for writers 2021/04/05 05:31:55 DEBUG : dir: reading active writers 2021/04/05 05:31:55 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/04/05 05:31:55 DEBUG : newLeaf: vfs cache: starting upload 2021/04/05 05:31:55 DEBUG : dir: Looking for writers 2021/04/05 05:31:55 DEBUG : : Looking for writers 2021/04/05 05:31:55 DEBUG : dir: reading active writers 2021/04/05 05:31:55 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/04/05 05:31:56 DEBUG : dir: Looking for writers 2021/04/05 05:31:56 DEBUG : : Looking for writers 2021/04/05 05:31:56 DEBUG : dir: reading active writers 2021/04/05 05:31:56 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/04/05 05:31:56 DEBUG : dir: Looking for writers 2021/04/05 05:31:56 DEBUG : : Looking for writers 2021/04/05 05:31:56 DEBUG : dir: reading active writers 2021/04/05 05:31:56 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/04/05 05:31:56 DEBUG : dir: Looking for writers 2021/04/05 05:31:56 DEBUG : : Looking for writers 2021/04/05 05:31:56 DEBUG : dir: reading active writers 2021/04/05 05:31:56 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/04/05 05:31:57 DEBUG : dir: Looking for writers 2021/04/05 05:31:57 DEBUG : : Looking for writers 2021/04/05 05:31:57 DEBUG : dir: reading active writers 2021/04/05 05:31:57 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/04/05 05:31:58 DEBUG : dir: Looking for writers 2021/04/05 05:31:58 DEBUG : : Looking for writers 2021/04/05 05:31:58 DEBUG : dir: reading active writers 2021/04/05 05:31:58 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2021/04/05 05:31:59 INFO : newLeaf: Copied (replaced existing) 2021/04/05 05:31:59 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/04/05 05:31:59 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/04/05 05:31:59 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:31:59 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/04/05 05:31:59 DEBUG : dir: Looking for writers 2021/04/05 05:31:59 DEBUG : : Looking for writers 2021/04/05 05:31:59 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:59 DEBUG : dir: reading active writers 2021/04/05 05:31:59 DEBUG : >WaitForWriters: 2021/04/05 05:31:59 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:31:59 DEBUG : dir: Looking for writers 2021/04/05 05:31:59 DEBUG : : Looking for writers 2021/04/05 05:31:59 DEBUG : dir: reading active writers 2021/04/05 05:31:59 DEBUG : newLeaf: reading active writers 2021/04/05 05:31:59 DEBUG : >WaitForWriters: 2021/04/05 05:31:59 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:176: Remote "mega root 'rclone-test-hegihot9vedohuh9fajegel3'", Local "Local file system at /tmp/rclone429725074", Modify Window "876000h0m0s" 2021/04/05 05:32:00 INFO : mega root 'rclone-test-hegihot9vedohuh9fajegel3': poll-interval is not supported by this remote 2021/04/05 05:32:00 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:32:00 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:32:00 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-hegihot9vedohuh9fajegel3" 2021/04/05 05:32:00 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/04/05 05:32:04 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:32:04 DEBUG : dir: Looking for writers 2021/04/05 05:32:04 DEBUG : file1: reading active writers 2021/04/05 05:32:04 DEBUG : : Looking for writers 2021/04/05 05:32:04 DEBUG : dir: reading active writers 2021/04/05 05:32:04 DEBUG : >WaitForWriters: 2021/04/05 05:32:04 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/04/05 05:32:04 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:32:04 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:32:04 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:32:04 DEBUG : dir/file1(0xc001fd6040): _readAt: size=512, off=0 2021/04/05 05:32:04 DEBUG : dir/file1(0xc001fd6040): openPending: 2021/04/05 05:32:04 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/04/05 05:32:04 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:32:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:32:04 DEBUG : dir/file1(0xc001fd6040): >openPending: err= 2021/04/05 05:32:04 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2021/04/05 05:32:04 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2021/04/05 05:32:04 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2021/04/05 05:32:04 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2021/04/05 05:32:05 DEBUG : dir/file1(0xc001fd6040): >_readAt: n=14, err=EOF 2021/04/05 05:32:05 DEBUG : dir/file1(0xc001fd6040): close: 2021/04/05 05:32:05 DEBUG : dir/file1: vfs cache: setting modification time to 2021-04-05 05:32:02 +0000 UTC 2021/04/05 05:32:05 DEBUG : dir/file1(0xc001fd6040): >close: err= 2021/04/05 05:32:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:32:06 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/04/05 05:32:06 DEBUG : newLeaf: Updating file with newLeaf 0xc001f44840 2021/04/05 05:32:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:32:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:32:08 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/04/05 05:32:08 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/04/05 05:32:08 DEBUG : dir/file1: Updating file with dir/file1 0xc001f44840 2021/04/05 05:32:08 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/04/05 05:32:08 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2021/04/05 05:32:15 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/04/05 05:32:15 DEBUG : dir/file1: newRWFileHandle: 2021/04/05 05:32:15 DEBUG : dir/file1(0xc00206aa40): openPending: 2021/04/05 05:32:15 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/04/05 05:32:15 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/04/05 05:32:15 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/04/05 05:32:15 DEBUG : dir/file1(0xc00206aa40): >openPending: err= 2021/04/05 05:32:15 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/04/05 05:32:15 DEBUG : dir/file1: >newRWFileHandle: err= 2021/04/05 05:32:15 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/04/05 05:32:15 DEBUG : dir/file1(0xc00206aa40): _writeAt: size=25, off=0 2021/04/05 05:32:15 DEBUG : dir/file1(0xc00206aa40): >_writeAt: n=25, err= 2021/04/05 05:32:15 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/04/05 05:32:15 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/04/05 05:32:15 DEBUG : newLeaf: Updating file with newLeaf 0xc001f44840 2021/04/05 05:32:15 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/04/05 05:32:15 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:32:15 DEBUG : newLeaf(0xc00206aa40): close: 2021/04/05 05:32:15 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/04/05 05:32:15 DEBUG : newLeaf: vfs cache: setting modification time to 2021-04-05 05:32:15.443428198 +0000 UTC m=+128.623023816 2021/04/05 05:32:15 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/04/05 05:32:15 DEBUG : newLeaf(0xc00206aa40): >close: err= 2021/04/05 05:32:15 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:32:15 DEBUG : dir: Looking for writers 2021/04/05 05:32:15 DEBUG : : Looking for writers 2021/04/05 05:32:15 DEBUG : dir: reading active writers 2021/04/05 05:32:15 DEBUG : newLeaf: reading active writers 2021/04/05 05:32:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/04/05 05:32:15 DEBUG : dir: Looking for writers 2021/04/05 05:32:15 DEBUG : : Looking for writers 2021/04/05 05:32:15 DEBUG : newLeaf: reading active writers 2021/04/05 05:32:15 DEBUG : dir: reading active writers 2021/04/05 05:32:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/04/05 05:32:15 DEBUG : dir: Looking for writers 2021/04/05 05:32:15 DEBUG : : Looking for writers 2021/04/05 05:32:15 DEBUG : dir: reading active writers 2021/04/05 05:32:15 DEBUG : newLeaf: reading active writers 2021/04/05 05:32:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/04/05 05:32:15 DEBUG : dir: Looking for writers 2021/04/05 05:32:15 DEBUG : : Looking for writers 2021/04/05 05:32:15 DEBUG : dir: reading active writers 2021/04/05 05:32:15 DEBUG : newLeaf: reading active writers 2021/04/05 05:32:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/04/05 05:32:15 DEBUG : newLeaf: vfs cache: starting upload 2021/04/05 05:32:15 DEBUG : dir: Looking for writers 2021/04/05 05:32:15 DEBUG : : Looking for writers 2021/04/05 05:32:15 DEBUG : dir: reading active writers 2021/04/05 05:32:15 DEBUG : newLeaf: reading active writers 2021/04/05 05:32:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/04/05 05:32:15 INFO : newLeaf: Copied (replaced existing) 2021/04/05 05:32:15 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/04/05 05:32:15 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/04/05 05:32:15 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/04/05 05:32:15 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/04/05 05:32:15 DEBUG : dir: Looking for writers 2021/04/05 05:32:15 DEBUG : : Looking for writers 2021/04/05 05:32:15 DEBUG : newLeaf: reading active writers 2021/04/05 05:32:15 DEBUG : dir: reading active writers 2021/04/05 05:32:15 DEBUG : >WaitForWriters: fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:293: Sleeping for 6s just to make sure 2021/04/05 05:32:22 DEBUG : WaitForWriters: timeout=10s 2021/04/05 05:32:22 DEBUG : dir: Looking for writers 2021/04/05 05:32:22 DEBUG : : Looking for writers 2021/04/05 05:32:22 DEBUG : dir: reading active writers 2021/04/05 05:32:22 DEBUG : newLeaf: reading active writers 2021/04/05 05:32:22 DEBUG : >WaitForWriters: 2021/04/05 05:32:22 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (124.36s) --- FAIL: TestFileRename/off,forceCache=false (19.27s) --- FAIL: TestFileRename/minimal,forceCache=false (21.06s) --- FAIL: TestFileRename/minimal,forceCache=true (18.37s) --- FAIL: TestFileRename/writes,forceCache=false (26.24s) --- FAIL: TestFileRename/writes,forceCache=true (16.51s) --- FAIL: TestFileRename/full,forceCache=false (22.92s) FAIL 2021/04/05 05:32:23 DEBUG : mega root 'rclone-test-hegihot9vedohuh9fajegel3': 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 2m16.524306746s (try 3/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]