"./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) 2020/12/12 05:16:26 DEBUG : Creating backend with remote "TestMega:rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:17:44 DEBUG : Creating backend with remote "/tmp/rclone390065422" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:176: Remote "mega root 'rclone-test-jejeviv0qeyavit6zacuvav0'", Local "Local file system at /tmp/rclone390065422", Modify Window "876000h0m0s" 2020/12/12 05:17:44 INFO : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': poll-interval is not supported by this remote 2020/12/12 05:17:44 NOTICE: mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/12 05:17:45 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:17:45 DEBUG : dir: Looking for writers 2020/12/12 05:17:45 DEBUG : file1: reading active writers 2020/12/12 05:17:45 DEBUG : : Looking for writers 2020/12/12 05:17:45 DEBUG : dir: reading active writers 2020/12/12 05:17:45 DEBUG : >WaitForWriters: 2020/12/12 05:17:45 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:17:45 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a0900 2020/12/12 05:17:45 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:17:45 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2020/12/12 05:17:52 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/12 05:17:52 DEBUG : dir/file1: Updating file with dir/file1 0xc0001a0900 2020/12/12 05:17:52 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/12 05:17:52 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 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:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2020/12/12 05:17:59 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/12 05:17:59 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2020/12/12 05:17:59 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:17:59 DEBUG : dir/file1: File is currently open, delaying rename 0xc0001a0900 2020/12/12 05:17:59 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:17:59 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:17:59 DEBUG : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': File to upload is small (25 bytes), uploading instead of streaming 2020/12/12 05:18:01 INFO : dir/file1: Copied (new) 2020/12/12 05:18:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:18:01 DEBUG : newLeaf: Running delayed rename now 2020/12/12 05:18:01 INFO : newLeaf: Deleted 2020/12/12 05:18:01 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:18:01 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a0900 2020/12/12 05:18:01 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:01 DEBUG : dir: Looking for writers 2020/12/12 05:18:01 DEBUG : : Looking for writers 2020/12/12 05:18:01 DEBUG : dir: reading active writers 2020/12/12 05:18:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:01 DEBUG : >WaitForWriters: 2020/12/12 05:18:01 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:01 DEBUG : dir: Looking for writers 2020/12/12 05:18:01 DEBUG : : Looking for writers 2020/12/12 05:18:01 DEBUG : dir: reading active writers 2020/12/12 05:18:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:01 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:176: Remote "mega root 'rclone-test-jejeviv0qeyavit6zacuvav0'", Local "Local file system at /tmp/rclone390065422", Modify Window "876000h0m0s" 2020/12/12 05:18:04 INFO : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': poll-interval is not supported by this remote 2020/12/12 05:18:04 NOTICE: mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/12 05:18:04 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:04 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:04 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:04 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/12 05:18:04 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:04 DEBUG : dir: Looking for writers 2020/12/12 05:18:04 DEBUG : file1: reading active writers 2020/12/12 05:18:04 DEBUG : : Looking for writers 2020/12/12 05:18:04 DEBUG : dir: reading active writers 2020/12/12 05:18:04 DEBUG : >WaitForWriters: 2020/12/12 05:18:04 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:18:04 DEBUG : newLeaf: Updating file with newLeaf 0xc000022180 2020/12/12 05:18:04 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:18:04 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "file1" 2020/12/12 05:18:11 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/12 05:18:11 DEBUG : dir/file1: Updating file with dir/file1 0xc000022180 2020/12/12 05:18:11 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/12 05:18:11 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 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:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2020/12/12 05:18:18 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/12 05:18:18 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2020/12/12 05:18:18 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:18:18 DEBUG : dir/file1: File is currently open, delaying rename 0xc000022180 2020/12/12 05:18:18 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:18:18 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:18:18 DEBUG : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': File to upload is small (25 bytes), uploading instead of streaming 2020/12/12 05:18:21 INFO : dir/file1: Copied (new) 2020/12/12 05:18:21 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:18:21 DEBUG : newLeaf: Running delayed rename now 2020/12/12 05:18:21 INFO : newLeaf: Deleted 2020/12/12 05:18:23 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:18:23 DEBUG : newLeaf: Updating file with newLeaf 0xc000022180 2020/12/12 05:18:23 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:23 DEBUG : dir: Looking for writers 2020/12/12 05:18:23 DEBUG : : Looking for writers 2020/12/12 05:18:23 DEBUG : dir: reading active writers 2020/12/12 05:18:23 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:23 DEBUG : >WaitForWriters: 2020/12/12 05:18:23 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:23 DEBUG : dir: Looking for writers 2020/12/12 05:18:23 DEBUG : : Looking for writers 2020/12/12 05:18:23 DEBUG : dir: reading active writers 2020/12/12 05:18:23 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:23 DEBUG : >WaitForWriters: 2020/12/12 05:18:23 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:176: Remote "mega root 'rclone-test-jejeviv0qeyavit6zacuvav0'", Local "Local file system at /tmp/rclone390065422", Modify Window "876000h0m0s" 2020/12/12 05:18:24 INFO : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': poll-interval is not supported by this remote 2020/12/12 05:18:24 NOTICE: mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/12 05:18:24 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:24 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:24 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:24 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/12 05:18:26 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2020/12/12 05:18:26 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:18:26 DEBUG : dir/file1(0xc0024f0940): openPending: 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:18:26 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:18:26 DEBUG : dir/file1(0xc0024f0940): >openPending: err= 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/12 05:18:26 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:18:26 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:18:26 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:18:26 DEBUG : dir/file1(0xc0024f0940): _writeAt: size=14, off=0 2020/12/12 05:18:26 DEBUG : dir/file1(0xc0024f0940): >_writeAt: n=14, err= 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/12 05:18:26 DEBUG : dir/file1(0xc0024f0940): close: 2020/12/12 05:18:26 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/12 05:18:26 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2020/12/12 05:18:26 DEBUG : dir/file1(0xc0024f0940): >close: err= 2020/12/12 05:18:26 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:26 DEBUG : dir: Looking for writers 2020/12/12 05:18:26 DEBUG : file1: reading active writers 2020/12/12 05:18:26 DEBUG : : Looking for writers 2020/12/12 05:18:26 DEBUG : dir: reading active writers 2020/12/12 05:18:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/12 05:18:26 DEBUG : dir: Looking for writers 2020/12/12 05:18:26 DEBUG : file1: reading active writers 2020/12/12 05:18:26 DEBUG : : Looking for writers 2020/12/12 05:18:26 DEBUG : dir: reading active writers 2020/12/12 05:18:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/12 05:18:26 DEBUG : dir: Looking for writers 2020/12/12 05:18:26 DEBUG : file1: reading active writers 2020/12/12 05:18:26 DEBUG : : Looking for writers 2020/12/12 05:18:26 DEBUG : dir: reading active writers 2020/12/12 05:18:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/12 05:18:26 DEBUG : dir: Looking for writers 2020/12/12 05:18:26 DEBUG : file1: reading active writers 2020/12/12 05:18:26 DEBUG : : Looking for writers 2020/12/12 05:18:26 DEBUG : dir: reading active writers 2020/12/12 05:18:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: starting upload 2020/12/12 05:18:26 DEBUG : dir: Looking for writers 2020/12/12 05:18:26 DEBUG : file1: reading active writers 2020/12/12 05:18:26 DEBUG : : Looking for writers 2020/12/12 05:18:26 DEBUG : dir: reading active writers 2020/12/12 05:18:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/12 05:18:26 DEBUG : dir: Looking for writers 2020/12/12 05:18:26 DEBUG : file1: reading active writers 2020/12/12 05:18:26 DEBUG : : Looking for writers 2020/12/12 05:18:26 DEBUG : dir: reading active writers 2020/12/12 05:18:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/12 05:18:26 INFO : dir/file1: Copied (replaced existing) 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2020/12/12 05:18:26 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:18:26 INFO : dir/file1: vfs cache: upload succeeded try #1 2020/12/12 05:18:26 DEBUG : dir: Looking for writers 2020/12/12 05:18:26 DEBUG : file1: reading active writers 2020/12/12 05:18:26 DEBUG : : Looking for writers 2020/12/12 05:18:26 DEBUG : dir: reading active writers 2020/12/12 05:18:26 DEBUG : >WaitForWriters: 2020/12/12 05:18:26 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/12 05:18:26 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:18:26 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:18:26 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:18:26 DEBUG : dir/file1(0xc000286ec0): _readAt: size=512, off=0 2020/12/12 05:18:26 DEBUG : dir/file1(0xc000286ec0): openPending: 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:18:26 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:18:26 DEBUG : dir/file1(0xc000286ec0): >openPending: err= 2020/12/12 05:18:26 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/12 05:18:26 DEBUG : dir/file1(0xc000286ec0): >_readAt: n=14, err=EOF 2020/12/12 05:18:26 DEBUG : dir/file1(0xc000286ec0): close: 2020/12/12 05:18:26 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-12 05:18:26 +0000 UTC 2020/12/12 05:18:26 DEBUG : dir/file1(0xc000286ec0): >close: err= 2020/12/12 05:18:28 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:18:28 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/12 05:18:28 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a18c0 2020/12/12 05:18:28 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:18:28 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:18:30 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/12 05:18:30 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/12 05:18:30 DEBUG : dir/file1: Updating file with dir/file1 0xc0001a18c0 2020/12/12 05:18:30 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/12 05:18:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 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:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2020/12/12 05:18:37 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/12 05:18:37 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:18:37 DEBUG : dir/file1(0xc0024f1c80): openPending: 2020/12/12 05:18:37 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/12 05:18:37 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:18:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:18:37 DEBUG : dir/file1(0xc0024f1c80): >openPending: err= 2020/12/12 05:18:37 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/12 05:18:37 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:18:37 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:18:37 DEBUG : dir/file1(0xc0024f1c80): _writeAt: size=25, off=0 2020/12/12 05:18:37 DEBUG : dir/file1(0xc0024f1c80): >_writeAt: n=25, err= 2020/12/12 05:18:38 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:18:38 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/12 05:18:38 DEBUG : newLeaf: Updating file with newLeaf 0xc0001a18c0 2020/12/12 05:18:38 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:18:38 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:18:38 DEBUG : newLeaf(0xc0024f1c80): close: 2020/12/12 05:18:38 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/12 05:18:38 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-12 05:18:37.852852087 +0000 UTC m=+131.529497360 2020/12/12 05:18:38 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/12 05:18:38 DEBUG : newLeaf(0xc0024f1c80): >close: err= 2020/12/12 05:18:38 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:38 DEBUG : dir: Looking for writers 2020/12/12 05:18:38 DEBUG : : Looking for writers 2020/12/12 05:18:38 DEBUG : dir: reading active writers 2020/12/12 05:18:38 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/12 05:18:38 DEBUG : dir: Looking for writers 2020/12/12 05:18:38 DEBUG : : Looking for writers 2020/12/12 05:18:38 DEBUG : dir: reading active writers 2020/12/12 05:18:38 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/12 05:18:38 DEBUG : dir: Looking for writers 2020/12/12 05:18:38 DEBUG : : Looking for writers 2020/12/12 05:18:38 DEBUG : dir: reading active writers 2020/12/12 05:18:38 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/12 05:18:38 DEBUG : dir: Looking for writers 2020/12/12 05:18:38 DEBUG : : Looking for writers 2020/12/12 05:18:38 DEBUG : dir: reading active writers 2020/12/12 05:18:38 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/12 05:18:38 DEBUG : newLeaf: vfs cache: starting upload 2020/12/12 05:18:38 DEBUG : dir: Looking for writers 2020/12/12 05:18:38 DEBUG : : Looking for writers 2020/12/12 05:18:38 DEBUG : dir: reading active writers 2020/12/12 05:18:38 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/12 05:18:38 DEBUG : dir: Looking for writers 2020/12/12 05:18:38 DEBUG : : Looking for writers 2020/12/12 05:18:38 DEBUG : dir: reading active writers 2020/12/12 05:18:38 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/12 05:18:38 DEBUG : dir: Looking for writers 2020/12/12 05:18:38 DEBUG : : Looking for writers 2020/12/12 05:18:38 DEBUG : dir: reading active writers 2020/12/12 05:18:38 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:38 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/12 05:18:39 DEBUG : dir: Looking for writers 2020/12/12 05:18:39 DEBUG : : Looking for writers 2020/12/12 05:18:39 DEBUG : dir: reading active writers 2020/12/12 05:18:39 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:39 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/12 05:18:40 DEBUG : dir: Looking for writers 2020/12/12 05:18:40 DEBUG : : Looking for writers 2020/12/12 05:18:40 DEBUG : dir: reading active writers 2020/12/12 05:18:40 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/12 05:18:40 INFO : newLeaf: Copied (replaced existing) 2020/12/12 05:18:40 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/12 05:18:40 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/12 05:18:40 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:18:40 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/12 05:18:41 DEBUG : dir: Looking for writers 2020/12/12 05:18:41 DEBUG : : Looking for writers 2020/12/12 05:18:41 DEBUG : dir: reading active writers 2020/12/12 05:18:41 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:41 DEBUG : >WaitForWriters: 2020/12/12 05:18:41 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:41 DEBUG : dir: Looking for writers 2020/12/12 05:18:41 DEBUG : : Looking for writers 2020/12/12 05:18:41 DEBUG : dir: reading active writers 2020/12/12 05:18:41 DEBUG : newLeaf: reading active writers 2020/12/12 05:18:41 DEBUG : >WaitForWriters: 2020/12/12 05:18:41 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:176: Remote "mega root 'rclone-test-jejeviv0qeyavit6zacuvav0'", Local "Local file system at /tmp/rclone390065422", Modify Window "876000h0m0s" 2020/12/12 05:18:42 INFO : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': poll-interval is not supported by this remote 2020/12/12 05:18:42 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:42 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:42 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:18:42 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/12 05:18:44 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:18:44 DEBUG : dir: Looking for writers 2020/12/12 05:18:44 DEBUG : file1: reading active writers 2020/12/12 05:18:44 DEBUG : : Looking for writers 2020/12/12 05:18:44 DEBUG : dir: reading active writers 2020/12/12 05:18:44 DEBUG : >WaitForWriters: 2020/12/12 05:18:46 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:18:46 DEBUG : newLeaf: Updating file with newLeaf 0xc000022c00 2020/12/12 05:18:46 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:18:46 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:292 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "file1" 2020/12/12 05:18:54 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/12 05:18:54 DEBUG : dir/file1: Updating file with dir/file1 0xc000022c00 2020/12/12 05:18:54 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/12 05:18:54 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 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:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2020/12/12 05:19:01 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/12 05:19:01 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:19:01 DEBUG : dir/file1(0xc00061f7c0): openPending: 2020/12/12 05:19:01 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/12 05:19:01 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:19:01 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:01 DEBUG : dir/file1(0xc00061f7c0): >openPending: err= 2020/12/12 05:19:01 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/12 05:19:01 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:19:01 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:19:01 DEBUG : dir/file1(0xc00061f7c0): _writeAt: size=25, off=0 2020/12/12 05:19:01 DEBUG : dir/file1(0xc00061f7c0): >_writeAt: n=25, err= 2020/12/12 05:19:01 INFO : newLeaf: Deleted 2020/12/12 05:19:01 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:19:01 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/12 05:19:01 DEBUG : newLeaf: Updating file with newLeaf 0xc000022c00 2020/12/12 05:19:01 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:19:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:01 DEBUG : newLeaf(0xc00061f7c0): close: 2020/12/12 05:19:01 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/12 05:19:01 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-12 05:19:01.106695139 +0000 UTC m=+154.783340408 2020/12/12 05:19:01 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/12 05:19:01 DEBUG : newLeaf(0xc00061f7c0): >close: err= 2020/12/12 05:19:01 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/12 05:19:01 DEBUG : newLeaf: vfs cache: starting upload 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/12 05:19:01 INFO : newLeaf: Copied (replaced existing) 2020/12/12 05:19:01 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/12 05:19:01 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/12 05:19:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:01 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : >WaitForWriters: 2020/12/12 05:19:01 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:01 DEBUG : dir: Looking for writers 2020/12/12 05:19:01 DEBUG : : Looking for writers 2020/12/12 05:19:01 DEBUG : dir: reading active writers 2020/12/12 05:19:01 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:01 DEBUG : >WaitForWriters: 2020/12/12 05:19:01 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:176: Remote "mega root 'rclone-test-jejeviv0qeyavit6zacuvav0'", Local "Local file system at /tmp/rclone390065422", Modify Window "876000h0m0s" 2020/12/12 05:19:02 INFO : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': poll-interval is not supported by this remote 2020/12/12 05:19:02 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:19:02 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:19:02 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:19:02 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/12 05:19:06 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2020/12/12 05:19:06 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:19:06 DEBUG : dir/file1(0xc0007caf40): openPending: 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:06 DEBUG : dir/file1(0xc0007caf40): >openPending: err= 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/12 05:19:06 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:19:06 DEBUG : dir/file1(0xc0007caf40): _writeAt: size=14, off=0 2020/12/12 05:19:06 DEBUG : dir/file1(0xc0007caf40): >_writeAt: n=14, err= 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/12 05:19:06 DEBUG : dir/file1(0xc0007caf40): close: 2020/12/12 05:19:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2020/12/12 05:19:06 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2020/12/12 05:19:06 DEBUG : dir/file1(0xc0007caf40): >close: err= 2020/12/12 05:19:06 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:06 DEBUG : dir: Looking for writers 2020/12/12 05:19:06 DEBUG : file1: reading active writers 2020/12/12 05:19:06 DEBUG : : Looking for writers 2020/12/12 05:19:06 DEBUG : dir: reading active writers 2020/12/12 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/12 05:19:06 DEBUG : dir: Looking for writers 2020/12/12 05:19:06 DEBUG : file1: reading active writers 2020/12/12 05:19:06 DEBUG : : Looking for writers 2020/12/12 05:19:06 DEBUG : dir: reading active writers 2020/12/12 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/12 05:19:06 DEBUG : dir: Looking for writers 2020/12/12 05:19:06 DEBUG : file1: reading active writers 2020/12/12 05:19:06 DEBUG : : Looking for writers 2020/12/12 05:19:06 DEBUG : dir: reading active writers 2020/12/12 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/12 05:19:06 DEBUG : dir: Looking for writers 2020/12/12 05:19:06 DEBUG : file1: reading active writers 2020/12/12 05:19:06 DEBUG : : Looking for writers 2020/12/12 05:19:06 DEBUG : dir: reading active writers 2020/12/12 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: starting upload 2020/12/12 05:19:06 DEBUG : dir: Looking for writers 2020/12/12 05:19:06 DEBUG : file1: reading active writers 2020/12/12 05:19:06 DEBUG : : Looking for writers 2020/12/12 05:19:06 DEBUG : dir: reading active writers 2020/12/12 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/12 05:19:06 DEBUG : dir: Looking for writers 2020/12/12 05:19:06 DEBUG : file1: reading active writers 2020/12/12 05:19:06 DEBUG : : Looking for writers 2020/12/12 05:19:06 DEBUG : dir: reading active writers 2020/12/12 05:19:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/12 05:19:06 INFO : dir/file1: Copied (replaced existing) 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2020/12/12 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:06 INFO : dir/file1: vfs cache: upload succeeded try #1 2020/12/12 05:19:06 DEBUG : dir: Looking for writers 2020/12/12 05:19:06 DEBUG : file1: reading active writers 2020/12/12 05:19:06 DEBUG : : Looking for writers 2020/12/12 05:19:06 DEBUG : dir: reading active writers 2020/12/12 05:19:06 DEBUG : >WaitForWriters: 2020/12/12 05:19:06 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/12 05:19:06 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:19:06 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:19:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:19:06 DEBUG : dir/file1(0xc00083aa40): _readAt: size=512, off=0 2020/12/12 05:19:06 DEBUG : dir/file1(0xc00083aa40): openPending: 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:19:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:06 DEBUG : dir/file1(0xc00083aa40): >openPending: err= 2020/12/12 05:19:06 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2020/12/12 05:19:06 DEBUG : dir/file1(0xc00083aa40): >_readAt: n=14, err=EOF 2020/12/12 05:19:06 DEBUG : dir/file1(0xc00083aa40): close: 2020/12/12 05:19:06 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-12 05:19:06 +0000 UTC 2020/12/12 05:19:06 DEBUG : dir/file1(0xc00083aa40): >close: err= 2020/12/12 05:19:07 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:19:07 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/12 05:19:07 DEBUG : newLeaf: Updating file with newLeaf 0xc000023680 2020/12/12 05:19:07 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:19:07 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:07 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/12 05:19:07 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/12 05:19:07 DEBUG : dir/file1: Updating file with dir/file1 0xc000023680 2020/12/12 05:19:07 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/12 05:19:07 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 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:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2020/12/12 05:19:14 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/12 05:19:14 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:19:14 DEBUG : dir/file1(0xc0007cbf40): openPending: 2020/12/12 05:19:14 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/12 05:19:14 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:19:14 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:14 DEBUG : dir/file1(0xc0007cbf40): >openPending: err= 2020/12/12 05:19:14 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/12 05:19:14 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:19:14 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:19:14 DEBUG : dir/file1(0xc0007cbf40): _writeAt: size=25, off=0 2020/12/12 05:19:14 DEBUG : dir/file1(0xc0007cbf40): >_writeAt: n=25, err= 2020/12/12 05:19:14 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:19:14 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/12 05:19:14 DEBUG : newLeaf: Updating file with newLeaf 0xc000023680 2020/12/12 05:19:14 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:19:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:14 DEBUG : newLeaf(0xc0007cbf40): close: 2020/12/12 05:19:14 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/12 05:19:14 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-12 05:19:14.240800275 +0000 UTC m=+167.917445532 2020/12/12 05:19:14 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/12 05:19:14 DEBUG : newLeaf(0xc0007cbf40): >close: err= 2020/12/12 05:19:14 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:14 DEBUG : dir: Looking for writers 2020/12/12 05:19:14 DEBUG : : Looking for writers 2020/12/12 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:14 DEBUG : dir: reading active writers 2020/12/12 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/12 05:19:14 DEBUG : dir: Looking for writers 2020/12/12 05:19:14 DEBUG : : Looking for writers 2020/12/12 05:19:14 DEBUG : dir: reading active writers 2020/12/12 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/12 05:19:14 DEBUG : dir: Looking for writers 2020/12/12 05:19:14 DEBUG : : Looking for writers 2020/12/12 05:19:14 DEBUG : dir: reading active writers 2020/12/12 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/12 05:19:14 DEBUG : dir: Looking for writers 2020/12/12 05:19:14 DEBUG : : Looking for writers 2020/12/12 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:14 DEBUG : dir: reading active writers 2020/12/12 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/12 05:19:14 DEBUG : newLeaf: vfs cache: starting upload 2020/12/12 05:19:14 DEBUG : dir: Looking for writers 2020/12/12 05:19:14 DEBUG : : Looking for writers 2020/12/12 05:19:14 DEBUG : dir: reading active writers 2020/12/12 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/12 05:19:14 DEBUG : dir: Looking for writers 2020/12/12 05:19:14 DEBUG : : Looking for writers 2020/12/12 05:19:14 DEBUG : dir: reading active writers 2020/12/12 05:19:14 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:14 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/12 05:19:15 DEBUG : dir: Looking for writers 2020/12/12 05:19:15 DEBUG : : Looking for writers 2020/12/12 05:19:15 DEBUG : dir: reading active writers 2020/12/12 05:19:15 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/12 05:19:15 DEBUG : dir: Looking for writers 2020/12/12 05:19:15 DEBUG : : Looking for writers 2020/12/12 05:19:15 DEBUG : dir: reading active writers 2020/12/12 05:19:15 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:15 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/12 05:19:16 INFO : newLeaf: Copied (replaced existing) 2020/12/12 05:19:16 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/12 05:19:16 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/12 05:19:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:16 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/12 05:19:16 DEBUG : dir: Looking for writers 2020/12/12 05:19:16 DEBUG : : Looking for writers 2020/12/12 05:19:16 DEBUG : dir: reading active writers 2020/12/12 05:19:16 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:16 DEBUG : >WaitForWriters: 2020/12/12 05:19:16 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:16 DEBUG : dir: Looking for writers 2020/12/12 05:19:16 DEBUG : : Looking for writers 2020/12/12 05:19:16 DEBUG : dir: reading active writers 2020/12/12 05:19:16 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:16 DEBUG : >WaitForWriters: 2020/12/12 05:19:16 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:176: Remote "mega root 'rclone-test-jejeviv0qeyavit6zacuvav0'", Local "Local file system at /tmp/rclone390065422", Modify Window "876000h0m0s" 2020/12/12 05:19:16 INFO : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': poll-interval is not supported by this remote 2020/12/12 05:19:16 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:19:16 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:19:16 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-jejeviv0qeyavit6zacuvav0" 2020/12/12 05:19:16 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2020/12/12 05:19:19 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:19 DEBUG : dir: Looking for writers 2020/12/12 05:19:19 DEBUG : file1: reading active writers 2020/12/12 05:19:19 DEBUG : : Looking for writers 2020/12/12 05:19:19 DEBUG : dir: reading active writers 2020/12/12 05:19:19 DEBUG : >WaitForWriters: 2020/12/12 05:19:19 DEBUG : dir/file1: Open: flags=O_RDONLY 2020/12/12 05:19:19 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:19:19 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:19:19 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:19:19 DEBUG : dir/file1(0xc0009c8800): _readAt: size=512, off=0 2020/12/12 05:19:19 DEBUG : dir/file1(0xc0009c8800): openPending: 2020/12/12 05:19:19 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2020/12/12 05:19:19 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:19:19 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:19 DEBUG : dir/file1(0xc0009c8800): >openPending: err= 2020/12/12 05:19:19 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2020/12/12 05:19:19 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2020/12/12 05:19:19 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2020/12/12 05:19:19 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2020/12/12 05:19:19 DEBUG : dir/file1(0xc0009c8800): >_readAt: n=14, err=EOF 2020/12/12 05:19:19 DEBUG : dir/file1(0xc0009c8800): close: 2020/12/12 05:19:19 DEBUG : dir/file1: vfs cache: setting modification time to 2020-12-12 05:19:17 +0000 UTC 2020/12/12 05:19:19 DEBUG : dir/file1(0xc0009c8800): >close: err= 2020/12/12 05:19:21 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:19:21 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/12 05:19:21 DEBUG : newLeaf: Updating file with newLeaf 0xc00067ae40 2020/12/12 05:19:21 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:19:21 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:23 INFO : newLeaf: Moved (server-side) to: dir/file1 2020/12/12 05:19:23 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2020/12/12 05:19:23 DEBUG : dir/file1: Updating file with dir/file1 0xc00067ae40 2020/12/12 05:19:23 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2020/12/12 05:19:23 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:297: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:300: Flushing the directory cache fstest.go:297: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:300: Flushing the directory cache fstest.go:304: Error Trace: fstest.go:304 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 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:190: Error Trace: fstest.go:190 fstest.go:307 fstest.go:337 fstest.go:349 file_test.go:308 file_test.go:360 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2020/12/12 05:19:30 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2020/12/12 05:19:30 DEBUG : dir/file1: newRWFileHandle: 2020/12/12 05:19:30 DEBUG : dir/file1(0xc000a01c80): openPending: 2020/12/12 05:19:30 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2020/12/12 05:19:30 DEBUG : dir/file1: vfs cache: truncate to size=14 2020/12/12 05:19:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2020/12/12 05:19:30 DEBUG : dir/file1(0xc000a01c80): >openPending: err= 2020/12/12 05:19:30 DEBUG : dir/file1: vfs cache: truncate to size=0 2020/12/12 05:19:30 DEBUG : dir/file1: >newRWFileHandle: err= 2020/12/12 05:19:30 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2020/12/12 05:19:30 DEBUG : dir/file1(0xc000a01c80): _writeAt: size=25, off=0 2020/12/12 05:19:30 DEBUG : dir/file1(0xc000a01c80): >_writeAt: n=25, err= 2020/12/12 05:19:33 INFO : dir/file1: Moved (server-side) to: newLeaf 2020/12/12 05:19:33 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2020/12/12 05:19:33 DEBUG : newLeaf: Updating file with newLeaf 0xc00067ae40 2020/12/12 05:19:33 DEBUG : dir: Added virtual directory entry vDel: "file1" 2020/12/12 05:19:33 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:33 DEBUG : newLeaf(0xc000a01c80): close: 2020/12/12 05:19:33 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2020/12/12 05:19:33 DEBUG : newLeaf: vfs cache: setting modification time to 2020-12-12 05:19:30.400532196 +0000 UTC m=+184.077177484 2020/12/12 05:19:33 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2020/12/12 05:19:33 DEBUG : newLeaf(0xc000a01c80): >close: err= 2020/12/12 05:19:33 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:33 DEBUG : dir: Looking for writers 2020/12/12 05:19:33 DEBUG : : Looking for writers 2020/12/12 05:19:33 DEBUG : dir: reading active writers 2020/12/12 05:19:33 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2020/12/12 05:19:33 DEBUG : dir: Looking for writers 2020/12/12 05:19:33 DEBUG : : Looking for writers 2020/12/12 05:19:33 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:33 DEBUG : dir: reading active writers 2020/12/12 05:19:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2020/12/12 05:19:33 DEBUG : dir: Looking for writers 2020/12/12 05:19:33 DEBUG : : Looking for writers 2020/12/12 05:19:33 DEBUG : dir: reading active writers 2020/12/12 05:19:33 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2020/12/12 05:19:33 DEBUG : dir: Looking for writers 2020/12/12 05:19:33 DEBUG : : Looking for writers 2020/12/12 05:19:33 DEBUG : dir: reading active writers 2020/12/12 05:19:33 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2020/12/12 05:19:33 DEBUG : newLeaf: vfs cache: starting upload 2020/12/12 05:19:33 DEBUG : dir: Looking for writers 2020/12/12 05:19:33 DEBUG : : Looking for writers 2020/12/12 05:19:33 DEBUG : dir: reading active writers 2020/12/12 05:19:33 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2020/12/12 05:19:33 DEBUG : dir: Looking for writers 2020/12/12 05:19:33 DEBUG : : Looking for writers 2020/12/12 05:19:33 DEBUG : dir: reading active writers 2020/12/12 05:19:33 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2020/12/12 05:19:34 DEBUG : dir: Looking for writers 2020/12/12 05:19:34 DEBUG : : Looking for writers 2020/12/12 05:19:34 DEBUG : dir: reading active writers 2020/12/12 05:19:34 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2020/12/12 05:19:34 DEBUG : dir: Looking for writers 2020/12/12 05:19:34 DEBUG : : Looking for writers 2020/12/12 05:19:34 DEBUG : dir: reading active writers 2020/12/12 05:19:34 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2020/12/12 05:19:35 INFO : newLeaf: Copied (replaced existing) 2020/12/12 05:19:35 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2020/12/12 05:19:35 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2020/12/12 05:19:35 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2020/12/12 05:19:35 INFO : newLeaf: vfs cache: upload succeeded try #1 2020/12/12 05:19:35 DEBUG : dir: Looking for writers 2020/12/12 05:19:35 DEBUG : : Looking for writers 2020/12/12 05:19:35 DEBUG : dir: reading active writers 2020/12/12 05:19:35 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:35 DEBUG : >WaitForWriters: 2020/12/12 05:19:35 DEBUG : WaitForWriters: timeout=10s 2020/12/12 05:19:35 DEBUG : dir: Looking for writers 2020/12/12 05:19:35 DEBUG : : Looking for writers 2020/12/12 05:19:35 DEBUG : dir: reading active writers 2020/12/12 05:19:35 DEBUG : newLeaf: reading active writers 2020/12/12 05:19:35 DEBUG : >WaitForWriters: 2020/12/12 05:19:35 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (113.28s) --- FAIL: TestFileRename/off,forceCache=false (19.33s) --- FAIL: TestFileRename/minimal,forceCache=false (19.98s) --- FAIL: TestFileRename/minimal,forceCache=true (18.43s) --- FAIL: TestFileRename/writes,forceCache=false (19.72s) --- FAIL: TestFileRename/writes,forceCache=true (14.71s) --- FAIL: TestFileRename/full,forceCache=false (21.11s) FAIL 2020/12/12 05:19:38 DEBUG : mega root 'rclone-test-jejeviv0qeyavit6zacuvav0': 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 3m11.840086612s (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]