"./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestDirCreate|TestDirForgetPath|TestDirMkdir|TestDirMkdirSub|TestDirOpen|TestDirReadDirAll|TestDirSetModTime|TestDirStat|TestDirWalk|TestFileRename|TestRcGetVFS|TestVFSNew)$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Starting (try 2/5) 2021/12/01 05:31:08 DEBUG : Creating backend with remote "TestMega:rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:31:08 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2021/12/01 05:31:16 DEBUG : Creating backend with remote "/tmp/rclone2987457692" === RUN TestDirForgetPath run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:16 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:16 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:16 DEBUG : : ForgetPath: relativePath="dir/notfound", type=1 2021/12/01 05:31:16 DEBUG : dir: invalidating directory cache 2021/12/01 05:31:16 DEBUG : : >ForgetPath: 2021/12/01 05:31:16 DEBUG : : ForgetPath: relativePath="dir", type=0 2021/12/01 05:31:16 DEBUG : : invalidating directory cache 2021/12/01 05:31:16 DEBUG : dir: forgetting directory cache 2021/12/01 05:31:16 DEBUG : : >ForgetPath: 2021/12/01 05:31:16 DEBUG : : ForgetPath: relativePath="not/in/cache", type=0 2021/12/01 05:31:16 DEBUG : : >ForgetPath: 2021/12/01 05:31:16 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:16 DEBUG : dir: Looking for writers 2021/12/01 05:31:16 DEBUG : : Looking for writers 2021/12/01 05:31:16 DEBUG : dir: reading active writers 2021/12/01 05:31:16 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty --- PASS: TestDirForgetPath (2.48s) === RUN TestDirWalk run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:18 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:18 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:20 DEBUG : : forgetting directory cache 2021/12/01 05:31:20 DEBUG : dir: forgetting directory cache 2021/12/01 05:31:20 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:20 DEBUG : dir: Looking for writers 2021/12/01 05:31:20 DEBUG : fil/a/b: Looking for writers 2021/12/01 05:31:20 DEBUG : fil/a: Looking for writers 2021/12/01 05:31:20 DEBUG : b: reading active writers 2021/12/01 05:31:20 DEBUG : fil: Looking for writers 2021/12/01 05:31:20 DEBUG : a: reading active writers 2021/12/01 05:31:20 DEBUG : : Looking for writers 2021/12/01 05:31:20 DEBUG : dir: reading active writers 2021/12/01 05:31:20 DEBUG : fil: reading active writers 2021/12/01 05:31:20 DEBUG : >WaitForWriters: run.go:126: removing dir "fil/a/b" failed - try 1/3: directory not empty --- PASS: TestDirWalk (5.09s) === RUN TestDirSetModTime run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:23 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:23 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:25 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:25 DEBUG : dir: Looking for writers 2021/12/01 05:31:25 DEBUG : : Looking for writers 2021/12/01 05:31:25 DEBUG : dir: reading active writers 2021/12/01 05:31:25 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty --- PASS: TestDirSetModTime (3.16s) === RUN TestDirStat run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:26 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:26 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:30 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:30 DEBUG : dir: Looking for writers 2021/12/01 05:31:30 DEBUG : file1: reading active writers 2021/12/01 05:31:30 DEBUG : : Looking for writers 2021/12/01 05:31:30 DEBUG : dir: reading active writers 2021/12/01 05:31:30 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty --- PASS: TestDirStat (5.61s) === RUN TestDirReadDirAll run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:32 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:32 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:33 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:33 DEBUG : dir/subdir: Looking for writers 2021/12/01 05:31:33 DEBUG : file3: reading active writers 2021/12/01 05:31:33 DEBUG : dir: Looking for writers 2021/12/01 05:31:33 DEBUG : file1: reading active writers 2021/12/01 05:31:33 DEBUG : file2: reading active writers 2021/12/01 05:31:33 DEBUG : subdir: reading active writers 2021/12/01 05:31:33 DEBUG : : Looking for writers 2021/12/01 05:31:33 DEBUG : dir: reading active writers 2021/12/01 05:31:33 DEBUG : >WaitForWriters: --- PASS: TestDirReadDirAll (3.20s) === RUN TestDirOpen run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:35 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:35 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:36 ERROR : dir/: Can only open directories read only 2021/12/01 05:31:36 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:36 DEBUG : dir: Looking for writers 2021/12/01 05:31:36 DEBUG : : Looking for writers 2021/12/01 05:31:36 DEBUG : dir: reading active writers 2021/12/01 05:31:36 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty --- PASS: TestDirOpen (1.88s) === RUN TestDirCreate run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:37 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:37 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:38 DEBUG : dir/potato: Open: flags=O_WRONLY|O_CREATE 2021/12/01 05:31:38 DEBUG : dir: Added virtual directory entry vAddFile: "potato" 2021/12/01 05:31:38 DEBUG : dir/potato: >Open: fd=dir/potato (w), err= 2021/12/01 05:31:38 DEBUG : dir: Added virtual directory entry vAddFile: "potato" 2021/12/01 05:31:38 DEBUG : mega root 'rclone-test-goxipoq9yituces8hesazol5': File to upload is small (5 bytes), uploading instead of streaming 2021/12/01 05:31:38 INFO : dir/potato: Copied (new) 2021/12/01 05:31:38 DEBUG : dir: Added virtual directory entry vAddFile: "potato" 2021/12/01 05:31:38 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:38 DEBUG : dir: Looking for writers 2021/12/01 05:31:38 DEBUG : file1: reading active writers 2021/12/01 05:31:38 DEBUG : potato: reading active writers 2021/12/01 05:31:38 DEBUG : : Looking for writers 2021/12/01 05:31:38 DEBUG : dir: reading active writers 2021/12/01 05:31:38 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty --- PASS: TestDirCreate (2.50s) === RUN TestDirMkdir run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:39 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:39 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:41 DEBUG : dir: Added virtual directory entry vAddDir: "sub" 2021/12/01 05:31:41 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:41 DEBUG : dir/sub: Looking for writers 2021/12/01 05:31:41 DEBUG : dir: Looking for writers 2021/12/01 05:31:41 DEBUG : sub: reading active writers 2021/12/01 05:31:41 DEBUG : file1: reading active writers 2021/12/01 05:31:41 DEBUG : : Looking for writers 2021/12/01 05:31:41 DEBUG : dir: reading active writers 2021/12/01 05:31:41 DEBUG : >WaitForWriters: --- PASS: TestDirMkdir (3.13s) === RUN TestDirMkdirSub run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:43 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:43 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:43 DEBUG : dir: Added virtual directory entry vAddDir: "sub" 2021/12/01 05:31:44 DEBUG : dir/sub: Added virtual directory entry vAddDir: "subsub" 2021/12/01 05:31:44 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:44 DEBUG : dir/sub/subsub: Looking for writers 2021/12/01 05:31:44 DEBUG : dir/sub: Looking for writers 2021/12/01 05:31:44 DEBUG : subsub: reading active writers 2021/12/01 05:31:44 DEBUG : dir: Looking for writers 2021/12/01 05:31:44 DEBUG : file1: reading active writers 2021/12/01 05:31:44 DEBUG : sub: reading active writers 2021/12/01 05:31:44 DEBUG : : Looking for writers 2021/12/01 05:31:44 DEBUG : dir: reading active writers 2021/12/01 05:31:44 DEBUG : >WaitForWriters: --- PASS: TestDirMkdirSub (2.22s) === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:31:45 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:31:45 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:31:45 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:31:45 DEBUG : dir: Looking for writers 2021/12/01 05:31:45 DEBUG : file1: reading active writers 2021/12/01 05:31:45 DEBUG : : Looking for writers 2021/12/01 05:31:45 DEBUG : dir: reading active writers 2021/12/01 05:31:45 DEBUG : >WaitForWriters: 2021/12/01 05:31:46 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:31:46 DEBUG : newLeaf: Updating file with newLeaf 0xc0014029c0 2021/12/01 05:31:46 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:31:46 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2021/12/01 05:31:54 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/12/01 05:31:54 DEBUG : dir/file1: Updating file with dir/file1 0xc0014029c0 2021/12/01 05:31:54 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/12/01 05:31:54 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2021/12/01 05:32:01 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/12/01 05:32:01 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/12/01 05:32:01 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:01 DEBUG : dir/file1: File is currently open, delaying rename 0xc0014029c0 2021/12/01 05:32:01 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:01 DEBUG : mega root 'rclone-test-goxipoq9yituces8hesazol5': File to upload is small (25 bytes), uploading instead of streaming 2021/12/01 05:32:01 INFO : dir/file1: Copied (new) 2021/12/01 05:32:01 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:01 DEBUG : newLeaf: Running delayed rename now 2021/12/01 05:32:01 INFO : newLeaf: Deleted 2021/12/01 05:32:02 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:02 DEBUG : newLeaf: Updating file with newLeaf 0xc0014029c0 2021/12/01 05:32:02 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:02 DEBUG : dir: Looking for writers 2021/12/01 05:32:02 DEBUG : : Looking for writers 2021/12/01 05:32:02 DEBUG : dir: reading active writers 2021/12/01 05:32:02 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:02 DEBUG : >WaitForWriters: 2021/12/01 05:32:02 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:02 DEBUG : dir: Looking for writers 2021/12/01 05:32:02 DEBUG : : Looking for writers 2021/12/01 05:32:02 DEBUG : dir: reading active writers 2021/12/01 05:32:02 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:02 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:32:03 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:32:03 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:32:03 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/12/01 05:32:03 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:03 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:03 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:03 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:03 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/12/01 05:32:04 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:04 DEBUG : dir: Looking for writers 2021/12/01 05:32:04 DEBUG : file1: reading active writers 2021/12/01 05:32:04 DEBUG : : Looking for writers 2021/12/01 05:32:04 DEBUG : dir: reading active writers 2021/12/01 05:32:04 DEBUG : >WaitForWriters: 2021/12/01 05:32:04 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:04 DEBUG : newLeaf: Updating file with newLeaf 0xc001828240 2021/12/01 05:32:04 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:04 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "file1" 2021/12/01 05:32:12 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/12/01 05:32:12 DEBUG : dir/file1: Updating file with dir/file1 0xc001828240 2021/12/01 05:32:12 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/12/01 05:32:12 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2021/12/01 05:32:19 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/12/01 05:32:19 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2021/12/01 05:32:19 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:19 DEBUG : dir/file1: File is currently open, delaying rename 0xc001828240 2021/12/01 05:32:19 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:19 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:19 DEBUG : mega root 'rclone-test-goxipoq9yituces8hesazol5': File to upload is small (25 bytes), uploading instead of streaming 2021/12/01 05:32:19 INFO : dir/file1: Copied (new) 2021/12/01 05:32:19 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:19 DEBUG : newLeaf: Running delayed rename now 2021/12/01 05:32:19 INFO : newLeaf: Deleted 2021/12/01 05:32:20 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:20 DEBUG : newLeaf: Updating file with newLeaf 0xc001828240 2021/12/01 05:32:20 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:20 DEBUG : dir: Looking for writers 2021/12/01 05:32:20 DEBUG : : Looking for writers 2021/12/01 05:32:20 DEBUG : dir: reading active writers 2021/12/01 05:32:20 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:20 DEBUG : >WaitForWriters: 2021/12/01 05:32:20 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:20 DEBUG : dir: Looking for writers 2021/12/01 05:32:20 DEBUG : : Looking for writers 2021/12/01 05:32:20 DEBUG : dir: reading active writers 2021/12/01 05:32:20 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:20 DEBUG : >WaitForWriters: 2021/12/01 05:32:20 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:32:21 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:32:21 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:32:21 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/12/01 05:32:21 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:21 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:21 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:21 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:21 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/12/01 05:32:21 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/12/01 05:32:21 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:32:21 DEBUG : dir/file1(0xc001fd7400): openPending: 2021/12/01 05:32:21 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/12/01 05:32:21 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:32:21 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:21 DEBUG : dir/file1(0xc001fd7400): >openPending: err= 2021/12/01 05:32:21 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/12/01 05:32:21 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:32:21 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:21 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:32:21 DEBUG : dir/file1(0xc001fd7400): _writeAt: size=14, off=0 2021/12/01 05:32:21 DEBUG : dir/file1(0xc001fd7400): >_writeAt: n=14, err= 2021/12/01 05:32:21 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/12/01 05:32:21 DEBUG : dir/file1(0xc001fd7400): close: 2021/12/01 05:32:21 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/12/01 05:32:21 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/12/01 05:32:21 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/12/01 05:32:21 DEBUG : dir/file1(0xc001fd7400): >close: err= 2021/12/01 05:32:21 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:21 DEBUG : dir: Looking for writers 2021/12/01 05:32:21 DEBUG : file1: reading active writers 2021/12/01 05:32:21 DEBUG : : Looking for writers 2021/12/01 05:32:21 DEBUG : dir: reading active writers 2021/12/01 05:32:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/12/01 05:32:21 DEBUG : dir: Looking for writers 2021/12/01 05:32:21 DEBUG : file1: reading active writers 2021/12/01 05:32:21 DEBUG : : Looking for writers 2021/12/01 05:32:21 DEBUG : dir: reading active writers 2021/12/01 05:32:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/12/01 05:32:21 DEBUG : dir: Looking for writers 2021/12/01 05:32:21 DEBUG : file1: reading active writers 2021/12/01 05:32:21 DEBUG : : Looking for writers 2021/12/01 05:32:21 DEBUG : dir: reading active writers 2021/12/01 05:32:21 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/12/01 05:32:22 DEBUG : dir: Looking for writers 2021/12/01 05:32:22 DEBUG : file1: reading active writers 2021/12/01 05:32:22 DEBUG : : Looking for writers 2021/12/01 05:32:22 DEBUG : dir: reading active writers 2021/12/01 05:32:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/12/01 05:32:22 DEBUG : dir/file1: vfs cache: starting upload 2021/12/01 05:32:22 DEBUG : dir: Looking for writers 2021/12/01 05:32:22 DEBUG : file1: reading active writers 2021/12/01 05:32:22 DEBUG : : Looking for writers 2021/12/01 05:32:22 DEBUG : dir: reading active writers 2021/12/01 05:32:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/12/01 05:32:22 DEBUG : dir: Looking for writers 2021/12/01 05:32:22 DEBUG : file1: reading active writers 2021/12/01 05:32:22 DEBUG : : Looking for writers 2021/12/01 05:32:22 DEBUG : dir: reading active writers 2021/12/01 05:32:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/12/01 05:32:22 DEBUG : dir: Looking for writers 2021/12/01 05:32:22 DEBUG : file1: reading active writers 2021/12/01 05:32:22 DEBUG : : Looking for writers 2021/12/01 05:32:22 DEBUG : dir: reading active writers 2021/12/01 05:32:22 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/12/01 05:32:22 INFO : dir/file1: Copied (replaced existing) 2021/12/01 05:32:22 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/12/01 05:32:22 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/12/01 05:32:22 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:22 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/12/01 05:32:23 DEBUG : dir: Looking for writers 2021/12/01 05:32:23 DEBUG : file1: reading active writers 2021/12/01 05:32:23 DEBUG : : Looking for writers 2021/12/01 05:32:23 DEBUG : dir: reading active writers 2021/12/01 05:32:23 DEBUG : >WaitForWriters: 2021/12/01 05:32:23 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/12/01 05:32:23 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:32:23 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:32:23 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:32:23 DEBUG : dir/file1(0xc001fd7a80): _readAt: size=512, off=0 2021/12/01 05:32:23 DEBUG : dir/file1(0xc001fd7a80): openPending: 2021/12/01 05:32:23 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/12/01 05:32:23 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:32:23 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:23 DEBUG : dir/file1(0xc001fd7a80): >openPending: err= 2021/12/01 05:32:23 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/12/01 05:32:23 DEBUG : dir/file1(0xc001fd7a80): >_readAt: n=14, err=EOF 2021/12/01 05:32:23 DEBUG : dir/file1(0xc001fd7a80): close: 2021/12/01 05:32:23 DEBUG : dir/file1: vfs cache: setting modification time to 2021-12-01 05:32:22 +0000 UTC 2021/12/01 05:32:23 DEBUG : dir/file1(0xc001fd7a80): >close: err= 2021/12/01 05:32:23 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:23 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/12/01 05:32:23 DEBUG : newLeaf: Updating file with newLeaf 0xc001828c00 2021/12/01 05:32:23 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:23 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:24 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/12/01 05:32:24 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/12/01 05:32:24 DEBUG : dir/file1: Updating file with dir/file1 0xc001828c00 2021/12/01 05:32:24 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/12/01 05:32:24 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2021/12/01 05:32:31 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/12/01 05:32:31 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:32:31 DEBUG : dir/file1(0xc0021b4880): openPending: 2021/12/01 05:32:31 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/12/01 05:32:31 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:32:31 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:31 DEBUG : dir/file1(0xc0021b4880): >openPending: err= 2021/12/01 05:32:31 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/12/01 05:32:31 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:32:31 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:32:31 DEBUG : dir/file1(0xc0021b4880): _writeAt: size=25, off=0 2021/12/01 05:32:31 DEBUG : dir/file1(0xc0021b4880): >_writeAt: n=25, err= 2021/12/01 05:32:33 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:33 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/12/01 05:32:33 DEBUG : newLeaf: Updating file with newLeaf 0xc001828c00 2021/12/01 05:32:33 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:33 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:33 DEBUG : newLeaf(0xc0021b4880): close: 2021/12/01 05:32:33 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/12/01 05:32:33 DEBUG : newLeaf: vfs cache: setting modification time to 2021-12-01 05:32:31.589242888 +0000 UTC m=+82.896104331 2021/12/01 05:32:33 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/12/01 05:32:33 DEBUG : newLeaf(0xc0021b4880): >close: err= 2021/12/01 05:32:33 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:33 DEBUG : dir: Looking for writers 2021/12/01 05:32:33 DEBUG : : Looking for writers 2021/12/01 05:32:33 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:33 DEBUG : dir: reading active writers 2021/12/01 05:32:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/12/01 05:32:33 DEBUG : dir: Looking for writers 2021/12/01 05:32:33 DEBUG : : Looking for writers 2021/12/01 05:32:33 DEBUG : dir: reading active writers 2021/12/01 05:32:33 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/12/01 05:32:33 DEBUG : dir: Looking for writers 2021/12/01 05:32:33 DEBUG : : Looking for writers 2021/12/01 05:32:33 DEBUG : dir: reading active writers 2021/12/01 05:32:33 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/12/01 05:32:33 DEBUG : dir: Looking for writers 2021/12/01 05:32:33 DEBUG : : Looking for writers 2021/12/01 05:32:33 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:33 DEBUG : dir: reading active writers 2021/12/01 05:32:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/12/01 05:32:33 DEBUG : newLeaf: vfs cache: starting upload 2021/12/01 05:32:33 DEBUG : dir: Looking for writers 2021/12/01 05:32:33 DEBUG : : Looking for writers 2021/12/01 05:32:33 DEBUG : dir: reading active writers 2021/12/01 05:32:33 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/12/01 05:32:33 DEBUG : dir: Looking for writers 2021/12/01 05:32:33 DEBUG : : Looking for writers 2021/12/01 05:32:33 DEBUG : dir: reading active writers 2021/12/01 05:32:33 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/12/01 05:32:33 DEBUG : dir: Looking for writers 2021/12/01 05:32:33 DEBUG : : Looking for writers 2021/12/01 05:32:33 DEBUG : dir: reading active writers 2021/12/01 05:32:33 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/12/01 05:32:34 INFO : newLeaf: Copied (replaced existing) 2021/12/01 05:32:34 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/12/01 05:32:34 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/12/01 05:32:34 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:34 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/12/01 05:32:34 DEBUG : dir: Looking for writers 2021/12/01 05:32:34 DEBUG : : Looking for writers 2021/12/01 05:32:34 DEBUG : dir: reading active writers 2021/12/01 05:32:34 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:34 DEBUG : >WaitForWriters: 2021/12/01 05:32:34 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:34 DEBUG : dir: Looking for writers 2021/12/01 05:32:34 DEBUG : : Looking for writers 2021/12/01 05:32:34 DEBUG : dir: reading active writers 2021/12/01 05:32:34 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:34 DEBUG : >WaitForWriters: 2021/12/01 05:32:34 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:32:35 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:32:35 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/12/01 05:32:35 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:35 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:35 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:35 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:35 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/12/01 05:32:35 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:35 DEBUG : dir: Looking for writers 2021/12/01 05:32:35 DEBUG : file1: reading active writers 2021/12/01 05:32:35 DEBUG : : Looking for writers 2021/12/01 05:32:35 DEBUG : dir: reading active writers 2021/12/01 05:32:35 DEBUG : >WaitForWriters: 2021/12/01 05:32:36 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:36 DEBUG : newLeaf: Updating file with newLeaf 0xc002304540 2021/12/01 05:32:36 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:36 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:350 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "file1" 2021/12/01 05:32:44 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/12/01 05:32:44 DEBUG : dir/file1: Updating file with dir/file1 0xc002304540 2021/12/01 05:32:44 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/12/01 05:32:44 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14), newLeaf (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2021/12/01 05:32:51 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/12/01 05:32:51 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:32:51 DEBUG : dir/file1(0xc002224b00): openPending: 2021/12/01 05:32:51 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/12/01 05:32:51 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:32:51 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:51 DEBUG : dir/file1(0xc002224b00): >openPending: err= 2021/12/01 05:32:51 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/12/01 05:32:51 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:32:51 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:32:51 DEBUG : dir/file1(0xc002224b00): _writeAt: size=25, off=0 2021/12/01 05:32:51 DEBUG : dir/file1(0xc002224b00): >_writeAt: n=25, err= 2021/12/01 05:32:51 INFO : newLeaf: Deleted 2021/12/01 05:32:52 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:52 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/12/01 05:32:52 DEBUG : newLeaf: Updating file with newLeaf 0xc002304540 2021/12/01 05:32:52 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:52 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:52 DEBUG : newLeaf(0xc002224b00): close: 2021/12/01 05:32:52 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/12/01 05:32:52 DEBUG : newLeaf: vfs cache: setting modification time to 2021-12-01 05:32:51.588891938 +0000 UTC m=+102.895753382 2021/12/01 05:32:52 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/12/01 05:32:52 DEBUG : newLeaf(0xc002224b00): >close: err= 2021/12/01 05:32:52 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:52 DEBUG : dir: Looking for writers 2021/12/01 05:32:52 DEBUG : : Looking for writers 2021/12/01 05:32:52 DEBUG : dir: reading active writers 2021/12/01 05:32:52 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/12/01 05:32:52 DEBUG : dir: Looking for writers 2021/12/01 05:32:52 DEBUG : : Looking for writers 2021/12/01 05:32:52 DEBUG : dir: reading active writers 2021/12/01 05:32:52 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/12/01 05:32:52 DEBUG : dir: Looking for writers 2021/12/01 05:32:52 DEBUG : : Looking for writers 2021/12/01 05:32:52 DEBUG : dir: reading active writers 2021/12/01 05:32:52 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/12/01 05:32:52 DEBUG : dir: Looking for writers 2021/12/01 05:32:52 DEBUG : : Looking for writers 2021/12/01 05:32:52 DEBUG : dir: reading active writers 2021/12/01 05:32:52 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/12/01 05:32:52 DEBUG : newLeaf: vfs cache: starting upload 2021/12/01 05:32:52 DEBUG : dir: Looking for writers 2021/12/01 05:32:52 DEBUG : : Looking for writers 2021/12/01 05:32:52 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:52 DEBUG : dir: reading active writers 2021/12/01 05:32:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/12/01 05:32:52 DEBUG : dir: Looking for writers 2021/12/01 05:32:52 DEBUG : : Looking for writers 2021/12/01 05:32:52 DEBUG : dir: reading active writers 2021/12/01 05:32:52 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/12/01 05:32:52 DEBUG : dir: Looking for writers 2021/12/01 05:32:52 DEBUG : : Looking for writers 2021/12/01 05:32:52 DEBUG : dir: reading active writers 2021/12/01 05:32:52 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/12/01 05:32:53 INFO : newLeaf: Copied (replaced existing) 2021/12/01 05:32:53 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/12/01 05:32:53 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/12/01 05:32:53 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:53 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/12/01 05:32:53 DEBUG : dir: Looking for writers 2021/12/01 05:32:53 DEBUG : : Looking for writers 2021/12/01 05:32:53 DEBUG : dir: reading active writers 2021/12/01 05:32:53 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:53 DEBUG : >WaitForWriters: 2021/12/01 05:32:53 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:53 DEBUG : dir: Looking for writers 2021/12/01 05:32:53 DEBUG : : Looking for writers 2021/12/01 05:32:53 DEBUG : dir: reading active writers 2021/12/01 05:32:53 DEBUG : newLeaf: reading active writers 2021/12/01 05:32:53 DEBUG : >WaitForWriters: 2021/12/01 05:32:53 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:32:54 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:32:54 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/12/01 05:32:54 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:54 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:54 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:54 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:32:54 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/12/01 05:32:55 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2021/12/01 05:32:55 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:32:55 DEBUG : dir/file1(0xc0022a5a40): openPending: 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:32:55 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:55 DEBUG : dir/file1(0xc0022a5a40): >openPending: err= 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/12/01 05:32:55 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:32:55 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:55 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:32:55 DEBUG : dir/file1(0xc0022a5a40): _writeAt: size=14, off=0 2021/12/01 05:32:55 DEBUG : dir/file1(0xc0022a5a40): >_writeAt: n=14, err= 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/12/01 05:32:55 DEBUG : dir/file1(0xc0022a5a40): close: 2021/12/01 05:32:55 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2021/12/01 05:32:55 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2021/12/01 05:32:55 DEBUG : dir/file1(0xc0022a5a40): >close: err= 2021/12/01 05:32:55 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:32:55 DEBUG : dir: Looking for writers 2021/12/01 05:32:55 DEBUG : file1: reading active writers 2021/12/01 05:32:55 DEBUG : : Looking for writers 2021/12/01 05:32:55 DEBUG : dir: reading active writers 2021/12/01 05:32:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/12/01 05:32:55 DEBUG : dir: Looking for writers 2021/12/01 05:32:55 DEBUG : file1: reading active writers 2021/12/01 05:32:55 DEBUG : : Looking for writers 2021/12/01 05:32:55 DEBUG : dir: reading active writers 2021/12/01 05:32:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/12/01 05:32:55 DEBUG : dir: Looking for writers 2021/12/01 05:32:55 DEBUG : file1: reading active writers 2021/12/01 05:32:55 DEBUG : : Looking for writers 2021/12/01 05:32:55 DEBUG : dir: reading active writers 2021/12/01 05:32:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/12/01 05:32:55 DEBUG : dir: Looking for writers 2021/12/01 05:32:55 DEBUG : file1: reading active writers 2021/12/01 05:32:55 DEBUG : : Looking for writers 2021/12/01 05:32:55 DEBUG : dir: reading active writers 2021/12/01 05:32:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: starting upload 2021/12/01 05:32:55 DEBUG : dir: Looking for writers 2021/12/01 05:32:55 DEBUG : file1: reading active writers 2021/12/01 05:32:55 DEBUG : : Looking for writers 2021/12/01 05:32:55 DEBUG : dir: reading active writers 2021/12/01 05:32:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/12/01 05:32:55 DEBUG : dir: Looking for writers 2021/12/01 05:32:55 DEBUG : file1: reading active writers 2021/12/01 05:32:55 DEBUG : : Looking for writers 2021/12/01 05:32:55 DEBUG : dir: reading active writers 2021/12/01 05:32:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/12/01 05:32:55 INFO : dir/file1: Copied (replaced existing) 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2021/12/01 05:32:55 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2021/12/01 05:32:55 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:55 INFO : dir/file1: vfs cache: upload succeeded try #1 2021/12/01 05:32:55 DEBUG : dir: Looking for writers 2021/12/01 05:32:55 DEBUG : file1: reading active writers 2021/12/01 05:32:55 DEBUG : : Looking for writers 2021/12/01 05:32:55 DEBUG : dir: reading active writers 2021/12/01 05:32:55 DEBUG : >WaitForWriters: 2021/12/01 05:32:55 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/12/01 05:32:55 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:32:55 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:32:55 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:32:55 DEBUG : dir/file1(0xc002375880): _readAt: size=512, off=0 2021/12/01 05:32:55 DEBUG : dir/file1(0xc002375880): openPending: 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:32:55 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:32:55 DEBUG : dir/file1(0xc002375880): >openPending: err= 2021/12/01 05:32:55 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2021/12/01 05:32:55 DEBUG : dir/file1(0xc002375880): >_readAt: n=14, err=EOF 2021/12/01 05:32:55 DEBUG : dir/file1(0xc002375880): close: 2021/12/01 05:32:55 DEBUG : dir/file1: vfs cache: setting modification time to 2021-12-01 05:32:55 +0000 UTC 2021/12/01 05:32:55 DEBUG : dir/file1(0xc002375880): >close: err= 2021/12/01 05:32:56 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:32:56 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/12/01 05:32:56 DEBUG : newLeaf: Updating file with newLeaf 0xc00027b980 2021/12/01 05:32:56 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:32:56 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:32:57 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/12/01 05:32:57 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/12/01 05:32:57 DEBUG : dir/file1: Updating file with dir/file1 0xc00027b980 2021/12/01 05:32:57 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/12/01 05:32:57 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2021/12/01 05:33:04 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/12/01 05:33:04 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:33:04 DEBUG : dir/file1(0xc0024e6880): openPending: 2021/12/01 05:33:04 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/12/01 05:33:04 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:33:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:33:04 DEBUG : dir/file1(0xc0024e6880): >openPending: err= 2021/12/01 05:33:04 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/12/01 05:33:04 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:33:04 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:33:04 DEBUG : dir/file1(0xc0024e6880): _writeAt: size=25, off=0 2021/12/01 05:33:04 DEBUG : dir/file1(0xc0024e6880): >_writeAt: n=25, err= 2021/12/01 05:33:05 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:33:05 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/12/01 05:33:05 DEBUG : newLeaf: Updating file with newLeaf 0xc00027b980 2021/12/01 05:33:05 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:33:05 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:33:05 DEBUG : newLeaf(0xc0024e6880): close: 2021/12/01 05:33:05 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/12/01 05:33:05 DEBUG : newLeaf: vfs cache: setting modification time to 2021-12-01 05:33:04.379972228 +0000 UTC m=+115.686833693 2021/12/01 05:33:05 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/12/01 05:33:05 DEBUG : newLeaf(0xc0024e6880): >close: err= 2021/12/01 05:33:05 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:33:05 DEBUG : dir: Looking for writers 2021/12/01 05:33:05 DEBUG : : Looking for writers 2021/12/01 05:33:05 DEBUG : dir: reading active writers 2021/12/01 05:33:05 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/12/01 05:33:05 DEBUG : dir: Looking for writers 2021/12/01 05:33:05 DEBUG : : Looking for writers 2021/12/01 05:33:05 DEBUG : dir: reading active writers 2021/12/01 05:33:05 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/12/01 05:33:05 DEBUG : dir: Looking for writers 2021/12/01 05:33:05 DEBUG : : Looking for writers 2021/12/01 05:33:05 DEBUG : dir: reading active writers 2021/12/01 05:33:05 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/12/01 05:33:05 DEBUG : dir: Looking for writers 2021/12/01 05:33:05 DEBUG : : Looking for writers 2021/12/01 05:33:05 DEBUG : dir: reading active writers 2021/12/01 05:33:05 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/12/01 05:33:05 DEBUG : newLeaf: vfs cache: starting upload 2021/12/01 05:33:05 DEBUG : dir: Looking for writers 2021/12/01 05:33:05 DEBUG : : Looking for writers 2021/12/01 05:33:05 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:05 DEBUG : dir: reading active writers 2021/12/01 05:33:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/12/01 05:33:05 DEBUG : dir: Looking for writers 2021/12/01 05:33:05 DEBUG : : Looking for writers 2021/12/01 05:33:05 DEBUG : dir: reading active writers 2021/12/01 05:33:05 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/12/01 05:33:06 DEBUG : dir: Looking for writers 2021/12/01 05:33:06 DEBUG : : Looking for writers 2021/12/01 05:33:06 DEBUG : dir: reading active writers 2021/12/01 05:33:06 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/12/01 05:33:06 INFO : newLeaf: Copied (replaced existing) 2021/12/01 05:33:06 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/12/01 05:33:06 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/12/01 05:33:06 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:33:06 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/12/01 05:33:06 DEBUG : dir: Looking for writers 2021/12/01 05:33:06 DEBUG : : Looking for writers 2021/12/01 05:33:06 DEBUG : dir: reading active writers 2021/12/01 05:33:06 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:06 DEBUG : >WaitForWriters: 2021/12/01 05:33:06 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:33:06 DEBUG : dir: Looking for writers 2021/12/01 05:33:06 DEBUG : : Looking for writers 2021/12/01 05:33:06 DEBUG : dir: reading active writers 2021/12/01 05:33:06 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:06 DEBUG : >WaitForWriters: 2021/12/01 05:33:06 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:33:07 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:33:07 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2021/12/01 05:33:07 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:33:07 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:33:07 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:33:07 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-goxipoq9yituces8hesazol5" 2021/12/01 05:33:07 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2021/12/01 05:33:08 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:33:08 DEBUG : dir: Looking for writers 2021/12/01 05:33:08 DEBUG : file1: reading active writers 2021/12/01 05:33:08 DEBUG : : Looking for writers 2021/12/01 05:33:08 DEBUG : dir: reading active writers 2021/12/01 05:33:08 DEBUG : >WaitForWriters: 2021/12/01 05:33:08 DEBUG : dir/file1: Open: flags=O_RDONLY 2021/12/01 05:33:08 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:33:08 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:33:08 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:33:08 DEBUG : dir/file1(0xc0024e6f80): _readAt: size=512, off=0 2021/12/01 05:33:08 DEBUG : dir/file1(0xc0024e6f80): openPending: 2021/12/01 05:33:08 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2021/12/01 05:33:08 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:33:08 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:33:08 DEBUG : dir/file1(0xc0024e6f80): >openPending: err= 2021/12/01 05:33:08 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2021/12/01 05:33:08 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2021/12/01 05:33:08 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2021/12/01 05:33:08 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2021/12/01 05:33:08 DEBUG : dir/file1(0xc0024e6f80): >_readAt: n=14, err=EOF 2021/12/01 05:33:08 DEBUG : dir/file1(0xc0024e6f80): close: 2021/12/01 05:33:08 DEBUG : dir/file1: vfs cache: setting modification time to 2021-12-01 05:33:07 +0000 UTC 2021/12/01 05:33:08 DEBUG : dir/file1(0xc0024e6f80): >close: err= 2021/12/01 05:33:08 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:33:08 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/12/01 05:33:08 DEBUG : newLeaf: Updating file with newLeaf 0xc00027bec0 2021/12/01 05:33:08 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:33:08 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:33:09 INFO : newLeaf: Moved (server-side) to: dir/file1 2021/12/01 05:33:09 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2021/12/01 05:33:09 DEBUG : dir/file1: Updating file with dir/file1 0xc00027bec0 2021/12/01 05:33:09 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2021/12/01 05:33: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 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2021/12/01 05:33:16 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2021/12/01 05:33:16 DEBUG : dir/file1: newRWFileHandle: 2021/12/01 05:33:16 DEBUG : dir/file1(0xc0026a2480): openPending: 2021/12/01 05:33:16 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2021/12/01 05:33:16 DEBUG : dir/file1: vfs cache: truncate to size=14 2021/12/01 05:33:16 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2021/12/01 05:33:16 DEBUG : dir/file1(0xc0026a2480): >openPending: err= 2021/12/01 05:33:16 DEBUG : dir/file1: vfs cache: truncate to size=0 2021/12/01 05:33:16 DEBUG : dir/file1: >newRWFileHandle: err= 2021/12/01 05:33:16 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2021/12/01 05:33:16 DEBUG : dir/file1(0xc0026a2480): _writeAt: size=25, off=0 2021/12/01 05:33:16 DEBUG : dir/file1(0xc0026a2480): >_writeAt: n=25, err= 2021/12/01 05:33:16 INFO : dir/file1: Moved (server-side) to: newLeaf 2021/12/01 05:33:16 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2021/12/01 05:33:16 DEBUG : newLeaf: Updating file with newLeaf 0xc00027bec0 2021/12/01 05:33:16 DEBUG : dir: Added virtual directory entry vDel: "file1" 2021/12/01 05:33:16 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:33:16 DEBUG : newLeaf(0xc0026a2480): close: 2021/12/01 05:33:16 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2021/12/01 05:33:16 DEBUG : newLeaf: vfs cache: setting modification time to 2021-12-01 05:33:16.374140822 +0000 UTC m=+127.681002276 2021/12/01 05:33:16 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2021/12/01 05:33:16 DEBUG : newLeaf(0xc0026a2480): >close: err= 2021/12/01 05:33:16 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:33:16 DEBUG : dir: Looking for writers 2021/12/01 05:33:16 DEBUG : : Looking for writers 2021/12/01 05:33:16 DEBUG : dir: reading active writers 2021/12/01 05:33:16 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2021/12/01 05:33:16 DEBUG : dir: Looking for writers 2021/12/01 05:33:16 DEBUG : : Looking for writers 2021/12/01 05:33:16 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:16 DEBUG : dir: reading active writers 2021/12/01 05:33:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2021/12/01 05:33:16 DEBUG : dir: Looking for writers 2021/12/01 05:33:16 DEBUG : : Looking for writers 2021/12/01 05:33:16 DEBUG : dir: reading active writers 2021/12/01 05:33:16 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2021/12/01 05:33:16 DEBUG : dir: Looking for writers 2021/12/01 05:33:16 DEBUG : : Looking for writers 2021/12/01 05:33:16 DEBUG : dir: reading active writers 2021/12/01 05:33:16 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2021/12/01 05:33:16 DEBUG : newLeaf: vfs cache: starting upload 2021/12/01 05:33:16 DEBUG : dir: Looking for writers 2021/12/01 05:33:16 DEBUG : : Looking for writers 2021/12/01 05:33:16 DEBUG : dir: reading active writers 2021/12/01 05:33:16 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2021/12/01 05:33:16 DEBUG : dir: Looking for writers 2021/12/01 05:33:16 DEBUG : : Looking for writers 2021/12/01 05:33:16 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:16 DEBUG : dir: reading active writers 2021/12/01 05:33:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2021/12/01 05:33:17 DEBUG : dir: Looking for writers 2021/12/01 05:33:17 DEBUG : : Looking for writers 2021/12/01 05:33:17 DEBUG : dir: reading active writers 2021/12/01 05:33:17 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:17 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2021/12/01 05:33:17 INFO : newLeaf: Copied (replaced existing) 2021/12/01 05:33:17 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2021/12/01 05:33:17 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2021/12/01 05:33:17 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2021/12/01 05:33:17 INFO : newLeaf: vfs cache: upload succeeded try #1 2021/12/01 05:33:17 DEBUG : dir: Looking for writers 2021/12/01 05:33:17 DEBUG : : Looking for writers 2021/12/01 05:33:17 DEBUG : dir: reading active writers 2021/12/01 05:33:17 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:17 DEBUG : >WaitForWriters: 2021/12/01 05:33:17 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:33:17 DEBUG : dir: Looking for writers 2021/12/01 05:33:17 DEBUG : : Looking for writers 2021/12/01 05:33:17 DEBUG : dir: reading active writers 2021/12/01 05:33:17 DEBUG : newLeaf: reading active writers 2021/12/01 05:33:17 DEBUG : >WaitForWriters: 2021/12/01 05:33:17 DEBUG : vfs cache: cleaner exiting --- FAIL: TestFileRename (93.04s) --- FAIL: TestFileRename/off,forceCache=false (18.40s) --- FAIL: TestFileRename/minimal,forceCache=false (17.61s) --- FAIL: TestFileRename/minimal,forceCache=true (13.91s) --- FAIL: TestFileRename/writes,forceCache=false (18.97s) --- FAIL: TestFileRename/writes,forceCache=true (13.31s) --- FAIL: TestFileRename/full,forceCache=false (10.85s) === RUN TestRcGetVFS run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:33:18 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:33:18 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:33:18 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:33:18 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:33:18 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:33:18 DEBUG : : Looking for writers 2021/12/01 05:33:18 DEBUG : >WaitForWriters: --- PASS: TestRcGetVFS (0.00s) === RUN TestVFSNew run.go:181: Remote "mega root 'rclone-test-goxipoq9yituces8hesazol5'", Local "Local file system at /tmp/rclone2987457692", Modify Window "876000h0m0s" 2021/12/01 05:33:18 INFO : mega root 'rclone-test-goxipoq9yituces8hesazol5': poll-interval is not supported by this remote 2021/12/01 05:33:18 NOTICE: mega root 'rclone-test-goxipoq9yituces8hesazol5': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2021/12/01 05:33:18 DEBUG : mega root 'rclone-test-goxipoq9yituces8hesazol5': Re-using VFS from active cache 2021/12/01 05:33:18 DEBUG : WaitForWriters: timeout=30s 2021/12/01 05:33:18 DEBUG : : Looking for writers 2021/12/01 05:33:18 DEBUG : >WaitForWriters: --- PASS: TestVFSNew (0.00s) FAIL 2021/12/01 05:33:18 DEBUG : mega root 'rclone-test-goxipoq9yituces8hesazol5': Purge remote "./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestDirCreate|TestDirForgetPath|TestDirMkdir|TestDirMkdirSub|TestDirOpen|TestDirReadDirAll|TestDirSetModTime|TestDirStat|TestDirWalk|TestFileRename|TestRcGetVFS|TestVFSNew)$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Finished ERROR in 2m10.525538309s (try 2/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]