"./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestRWCacheRename|TestRWFileHandleSizeTruncateExisting|TestVFSStatParent|TestWriteFileHandleFlush)$|^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Starting (try 3/5) 2026/03/30 04:41:08 DEBUG : Creating backend with remote "TestMega:rclone-test-qogoqag4huce" 2026/03/30 04:41:08 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2026/03/30 04:41:08 DEBUG : mega root 'rclone-test-qogoqag4huce': Using previously stored session ID and master key to initialize the Mega API 2026/03/30 04:41:24 DEBUG : Creating backend with remote "/tmp/rclone1995253669" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:41:24 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:41:24 NOTICE: mega root 'rclone-test-qogoqag4huce': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/03/30 04:41:24 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:41:24 DEBUG : dir: Looking for writers 2026/03/30 04:41:24 DEBUG : file1: reading active writers 2026/03/30 04:41:24 DEBUG : Looking for writers 2026/03/30 04:41:24 DEBUG : dir: reading active writers 2026/03/30 04:41:24 DEBUG : >WaitForWriters: 2026/03/30 04:41:26 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:41:26 DEBUG : newLeaf: Updating file with newLeaf 0x336fb60b49c0 2026/03/30 04:41:26 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:41:26 DEBUG : Added virtual directory entry vAddFile: "newLeaf" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "file1" 2026/03/30 04:41:37 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/03/30 04:41:37 DEBUG : dir/file1: Updating file with dir/file1 0x336fb60b49c0 2026/03/30 04:41:37 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/03/30 04:41:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 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:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/off,forceCache=false Messages: Unexpected file "dir/file1" 2026/03/30 04:41:44 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/03/30 04:41:44 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2026/03/30 04:41:44 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:41:44 DEBUG : dir/file1: File is currently open, delaying rename 0x336fb60b49c0 2026/03/30 04:41:44 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:41:44 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:41:44 DEBUG : mega root 'rclone-test-qogoqag4huce': File to upload is small (25 bytes), uploading instead of streaming 2026/03/30 04:41:54 ERROR : dir/file1: WriteFileHandle.New Rcat failed: upload file failed to create session: unexpected end of JSON input 2026/03/30 04:41:54 DEBUG : newLeaf: Running delayed rename now 2026/03/30 04:42:05 INFO : newLeaf: Deleted 2026/03/30 04:42:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:42:06 DEBUG : newLeaf: Updating file with newLeaf 0x336fb60b49c0 file_test.go:391: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:391 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Received unexpected error: upload file failed to create session: unexpected end of JSON input Test: TestFileRename/off,forceCache=false 2026/03/30 04:42:06 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:42:06 DEBUG : dir: Looking for writers 2026/03/30 04:42:06 DEBUG : Looking for writers 2026/03/30 04:42:06 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:06 DEBUG : dir: reading active writers 2026/03/30 04:42:06 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:42:09 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:42:09 NOTICE: mega root 'rclone-test-qogoqag4huce': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/03/30 04:42:09 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: root is "/home/rclone/.cache/rclone" 2026/03/30 04:42:09 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:09 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:09 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:09 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:42:09 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:09 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:09 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:42:09 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:09 INFO : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/03/30 04:42:13 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:42:13 DEBUG : dir: Looking for writers 2026/03/30 04:42:13 DEBUG : file1: reading active writers 2026/03/30 04:42:13 DEBUG : Looking for writers 2026/03/30 04:42:13 DEBUG : dir: reading active writers 2026/03/30 04:42:13 DEBUG : >WaitForWriters: 2026/03/30 04:42:13 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:42:13 DEBUG : newLeaf: Updating file with newLeaf 0x336fb6142cc0 2026/03/30 04:42:13 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:42:13 DEBUG : Added virtual directory entry vAddFile: "newLeaf" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: listing wrong, want newLeaf (14) got file1 (14), newLeaf (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "file1" 2026/03/30 04:42:20 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/03/30 04:42:20 DEBUG : dir/file1: Updating file with dir/file1 0x336fb6142cc0 2026/03/30 04:42:20 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/03/30 04:42:20 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 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:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "newLeaf" fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/minimal,forceCache=false Messages: Unexpected file "dir/file1" 2026/03/30 04:42:27 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/03/30 04:42:27 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2026/03/30 04:42:27 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:42:27 DEBUG : dir/file1: File is currently open, delaying rename 0x336fb6142cc0 2026/03/30 04:42:27 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:42:27 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:42:27 DEBUG : mega root 'rclone-test-qogoqag4huce': File to upload is small (25 bytes), uploading instead of streaming 2026/03/30 04:42:33 DEBUG : dir/file1: size = 25 OK 2026/03/30 04:42:33 NOTICE: mega root 'rclone-test-qogoqag4huce': --checksum is in use but the source and destination have no hashes in common; falling back to --size-only 2026/03/30 04:42:33 DEBUG : dir/file1: Size of src and dst objects identical 2026/03/30 04:42:33 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:42:33 DEBUG : newLeaf: Running delayed rename now 2026/03/30 04:42:33 INFO : newLeaf: Deleted 2026/03/30 04:42:34 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:42:34 DEBUG : newLeaf: Updating file with newLeaf 0x336fb6142cc0 2026/03/30 04:42:34 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:42:34 DEBUG : dir: Looking for writers 2026/03/30 04:42:34 DEBUG : Looking for writers 2026/03/30 04:42:34 DEBUG : dir: reading active writers 2026/03/30 04:42:34 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:34 DEBUG : >WaitForWriters: 2026/03/30 04:42:34 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:42:34 DEBUG : dir: Looking for writers 2026/03/30 04:42:34 DEBUG : Looking for writers 2026/03/30 04:42:34 DEBUG : dir: reading active writers 2026/03/30 04:42:34 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:34 DEBUG : >WaitForWriters: 2026/03/30 04:42:34 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:42:34 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:42:34 NOTICE: mega root 'rclone-test-qogoqag4huce': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/03/30 04:42:34 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: root is "/home/rclone/.cache/rclone" 2026/03/30 04:42:34 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:34 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:34 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:34 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:42:34 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:34 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:34 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:42:34 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:42:34 INFO : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/03/30 04:42:36 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2026/03/30 04:42:36 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:42:36 DEBUG : dir/file1(0x336fb7be8940): openPending: 2026/03/30 04:42:36 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2026/03/30 04:42:36 DEBUG : dir/file1: vfs cache: truncate to size=14 2026/03/30 04:42:36 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:42:36 DEBUG : dir/file1(0x336fb7be8940): >openPending: err= 2026/03/30 04:42:36 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/03/30 04:42:36 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:42:36 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:42:36 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:42:36 DEBUG : dir/file1(0x336fb7be8940): _writeAt: size=14, off=0 2026/03/30 04:42:36 DEBUG : dir/file1(0x336fb7be8940): >_writeAt: n=14, err= 2026/03/30 04:42:36 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/03/30 04:42:36 DEBUG : dir/file1(0x336fb7be8940): close: 2026/03/30 04:42:36 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/03/30 04:42:36 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/03/30 04:42:36 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2026/03/30 04:42:36 DEBUG : dir/file1(0x336fb7be8940): >close: err= 2026/03/30 04:42:36 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:42:36 DEBUG : dir: Looking for writers 2026/03/30 04:42:36 DEBUG : file1: reading active writers 2026/03/30 04:42:36 DEBUG : Looking for writers 2026/03/30 04:42:36 DEBUG : dir: reading active writers 2026/03/30 04:42:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:42:36 DEBUG : dir: Looking for writers 2026/03/30 04:42:36 DEBUG : file1: reading active writers 2026/03/30 04:42:36 DEBUG : Looking for writers 2026/03/30 04:42:36 DEBUG : dir: reading active writers 2026/03/30 04:42:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:42:36 DEBUG : dir: Looking for writers 2026/03/30 04:42:36 DEBUG : file1: reading active writers 2026/03/30 04:42:36 DEBUG : Looking for writers 2026/03/30 04:42:36 DEBUG : dir: reading active writers 2026/03/30 04:42:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:42:36 DEBUG : dir: Looking for writers 2026/03/30 04:42:36 DEBUG : file1: reading active writers 2026/03/30 04:42:36 DEBUG : Looking for writers 2026/03/30 04:42:36 DEBUG : dir: reading active writers 2026/03/30 04:42:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:42:36 DEBUG : dir/file1: vfs cache: starting upload 2026/03/30 04:42:36 DEBUG : dir: Looking for writers 2026/03/30 04:42:36 DEBUG : file1: reading active writers 2026/03/30 04:42:36 DEBUG : Looking for writers 2026/03/30 04:42:36 DEBUG : dir: reading active writers 2026/03/30 04:42:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:42:36 DEBUG : dir: Looking for writers 2026/03/30 04:42:36 DEBUG : file1: reading active writers 2026/03/30 04:42:36 DEBUG : Looking for writers 2026/03/30 04:42:36 DEBUG : dir: reading active writers 2026/03/30 04:42:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:42:36 DEBUG : dir/file1: size = 14 OK 2026/03/30 04:42:36 INFO : dir/file1: Copied (replaced existing) 2026/03/30 04:42:36 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2026/03/30 04:42:36 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2026/03/30 04:42:36 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:42:36 INFO : dir/file1: vfs cache: upload succeeded try #1 2026/03/30 04:42:37 DEBUG : dir: Looking for writers 2026/03/30 04:42:37 DEBUG : file1: reading active writers 2026/03/30 04:42:37 DEBUG : Looking for writers 2026/03/30 04:42:37 DEBUG : dir: reading active writers 2026/03/30 04:42:37 DEBUG : >WaitForWriters: 2026/03/30 04:42:37 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/03/30 04:42:37 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:42:37 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:42:37 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:42:37 DEBUG : dir/file1(0x336fb7ec2440): _readAt: size=512, off=0 2026/03/30 04:42:37 DEBUG : dir/file1(0x336fb7ec2440): openPending: 2026/03/30 04:42:37 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/03/30 04:42:37 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/03/30 04:42:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:42:37 DEBUG : dir/file1(0x336fb7ec2440): >openPending: err= 2026/03/30 04:42:37 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/03/30 04:42:37 DEBUG : dir/file1(0x336fb7ec2440): >_readAt: n=14, err=EOF 2026/03/30 04:42:37 DEBUG : dir/file1(0x336fb7ec2440): close: 2026/03/30 04:42:37 DEBUG : dir/file1: vfs cache: setting modification time to 2026-03-30 04:42:36 +0000 UTC 2026/03/30 04:42:37 DEBUG : dir/file1(0x336fb7ec2440): >close: err= 2026/03/30 04:42:37 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:42:37 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/03/30 04:42:37 DEBUG : newLeaf: Updating file with newLeaf 0x336fb6143200 2026/03/30 04:42:37 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:42:37 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:42:37 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/03/30 04:42:37 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2026/03/30 04:42:37 DEBUG : dir/file1: Updating file with dir/file1 0x336fb6143200 2026/03/30 04:42:37 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/03/30 04:42:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 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:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/minimal,forceCache=true Messages: Unexpected file "dir/file1" 2026/03/30 04:42:44 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/03/30 04:42:44 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:42:44 DEBUG : dir/file1(0x336fb7ec3180): openPending: 2026/03/30 04:42:44 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/03/30 04:42:44 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/03/30 04:42:44 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:42:44 DEBUG : dir/file1(0x336fb7ec3180): >openPending: err= 2026/03/30 04:42:44 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/03/30 04:42:44 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:42:44 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:42:44 DEBUG : dir/file1(0x336fb7ec3180): _writeAt: size=25, off=0 2026/03/30 04:42:44 DEBUG : dir/file1(0x336fb7ec3180): >_writeAt: n=25, err= 2026/03/30 04:42:55 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:42:55 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/03/30 04:42:55 DEBUG : newLeaf: Updating file with newLeaf 0x336fb6143200 2026/03/30 04:42:55 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:42:55 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:42:55 DEBUG : newLeaf(0x336fb7ec3180): close: 2026/03/30 04:42:55 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2026/03/30 04:42:55 DEBUG : newLeaf: vfs cache: setting modification time to 2026-03-30 04:42:44.794595972 +0000 UTC m=+96.583395304 2026/03/30 04:42:55 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2026/03/30 04:42:55 DEBUG : newLeaf(0x336fb7ec3180): >close: err= 2026/03/30 04:42:55 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:42:55 DEBUG : dir: Looking for writers 2026/03/30 04:42:55 DEBUG : Looking for writers 2026/03/30 04:42:55 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:55 DEBUG : dir: reading active writers 2026/03/30 04:42:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:42:55 DEBUG : dir: Looking for writers 2026/03/30 04:42:55 DEBUG : Looking for writers 2026/03/30 04:42:55 DEBUG : dir: reading active writers 2026/03/30 04:42:55 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:42:55 DEBUG : dir: Looking for writers 2026/03/30 04:42:55 DEBUG : Looking for writers 2026/03/30 04:42:55 DEBUG : dir: reading active writers 2026/03/30 04:42:55 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:42:55 DEBUG : dir: Looking for writers 2026/03/30 04:42:55 DEBUG : Looking for writers 2026/03/30 04:42:55 DEBUG : dir: reading active writers 2026/03/30 04:42:55 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:42:55 DEBUG : newLeaf: vfs cache: starting upload 2026/03/30 04:42:55 DEBUG : dir: Looking for writers 2026/03/30 04:42:55 DEBUG : Looking for writers 2026/03/30 04:42:55 DEBUG : dir: reading active writers 2026/03/30 04:42:55 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:42:55 DEBUG : dir: Looking for writers 2026/03/30 04:42:55 DEBUG : Looking for writers 2026/03/30 04:42:55 DEBUG : dir: reading active writers 2026/03/30 04:42:55 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:55 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:42:56 DEBUG : newLeaf: size = 25 OK 2026/03/30 04:42:56 INFO : newLeaf: Copied (replaced existing) 2026/03/30 04:42:56 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2026/03/30 04:42:56 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2026/03/30 04:42:56 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:42:56 INFO : newLeaf: vfs cache: upload succeeded try #1 2026/03/30 04:42:56 DEBUG : dir: Looking for writers 2026/03/30 04:42:56 DEBUG : Looking for writers 2026/03/30 04:42:56 DEBUG : dir: reading active writers 2026/03/30 04:42:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:42:56 DEBUG : >WaitForWriters: fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:292: Sleeping for 6s just to make sure 2026/03/30 04:43:03 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:43:03 DEBUG : dir: Looking for writers 2026/03/30 04:43:03 DEBUG : Looking for writers 2026/03/30 04:43:03 DEBUG : dir: reading active writers 2026/03/30 04:43:03 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:03 DEBUG : >WaitForWriters: 2026/03/30 04:43:03 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:43:09 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:43:09 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: root is "/home/rclone/.cache/rclone" 2026/03/30 04:43:09 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:09 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:09 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:09 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:43:09 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:09 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:09 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:43:09 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:09 INFO : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/03/30 04:43:09 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:43:09 DEBUG : dir: Looking for writers 2026/03/30 04:43:09 DEBUG : file1: reading active writers 2026/03/30 04:43:09 DEBUG : Looking for writers 2026/03/30 04:43:09 DEBUG : dir: reading active writers 2026/03/30 04:43:09 DEBUG : >WaitForWriters: 2026/03/30 04:43:09 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:43:09 DEBUG : newLeaf: Updating file with newLeaf 0x336fb7de8300 2026/03/30 04:43:09 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:43:09 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:43:11 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/03/30 04:43:11 DEBUG : dir/file1: Updating file with dir/file1 0x336fb7de8300 2026/03/30 04:43:11 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/03/30 04:43:11 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: listing wrong, want dir/file1 (14) got dir/file1 (14), dir/file1 (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/writes,forceCache=false Messages: Unexpected file "dir/file1" 2026/03/30 04:43:18 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/03/30 04:43:18 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:43:18 DEBUG : dir/file1(0x336fb7ec3a80): openPending: 2026/03/30 04:43:18 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2026/03/30 04:43:18 DEBUG : dir/file1: vfs cache: truncate to size=14 2026/03/30 04:43:18 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:43:18 DEBUG : dir/file1(0x336fb7ec3a80): >openPending: err= 2026/03/30 04:43:18 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/03/30 04:43:18 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:43:18 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:43:18 DEBUG : dir/file1(0x336fb7ec3a80): _writeAt: size=25, off=0 2026/03/30 04:43:18 DEBUG : dir/file1(0x336fb7ec3a80): >_writeAt: n=25, err= 2026/03/30 04:43:39 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:43:39 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/03/30 04:43:39 DEBUG : newLeaf: Updating file with newLeaf 0x336fb7de8300 2026/03/30 04:43:39 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:43:39 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:43:39 DEBUG : newLeaf(0x336fb7ec3a80): close: 2026/03/30 04:43:39 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2026/03/30 04:43:39 DEBUG : newLeaf: vfs cache: setting modification time to 2026-03-30 04:43:18.93018622 +0000 UTC m=+130.718985532 2026/03/30 04:43:39 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2026/03/30 04:43:39 DEBUG : newLeaf(0x336fb7ec3a80): >close: err= 2026/03/30 04:43:39 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:43:39 DEBUG : dir: Looking for writers 2026/03/30 04:43:39 DEBUG : Looking for writers 2026/03/30 04:43:39 DEBUG : dir: reading active writers 2026/03/30 04:43:39 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:39 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:43:39 DEBUG : dir: Looking for writers 2026/03/30 04:43:39 DEBUG : Looking for writers 2026/03/30 04:43:39 DEBUG : dir: reading active writers 2026/03/30 04:43:39 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:39 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:43:39 DEBUG : dir: Looking for writers 2026/03/30 04:43:39 DEBUG : Looking for writers 2026/03/30 04:43:39 DEBUG : dir: reading active writers 2026/03/30 04:43:39 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:39 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:43:40 DEBUG : dir: Looking for writers 2026/03/30 04:43:40 DEBUG : Looking for writers 2026/03/30 04:43:40 DEBUG : dir: reading active writers 2026/03/30 04:43:40 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:43:40 DEBUG : newLeaf: vfs cache: starting upload 2026/03/30 04:43:40 DEBUG : dir: Looking for writers 2026/03/30 04:43:40 DEBUG : Looking for writers 2026/03/30 04:43:40 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:40 DEBUG : dir: reading active writers 2026/03/30 04:43:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:43:40 DEBUG : dir: Looking for writers 2026/03/30 04:43:40 DEBUG : Looking for writers 2026/03/30 04:43:40 DEBUG : dir: reading active writers 2026/03/30 04:43:40 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:43:40 DEBUG : dir: Looking for writers 2026/03/30 04:43:40 DEBUG : Looking for writers 2026/03/30 04:43:40 DEBUG : dir: reading active writers 2026/03/30 04:43:40 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:40 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/03/30 04:43:41 DEBUG : dir: Looking for writers 2026/03/30 04:43:41 DEBUG : Looking for writers 2026/03/30 04:43:41 DEBUG : dir: reading active writers 2026/03/30 04:43:41 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:42 DEBUG : dir: Looking for writers 2026/03/30 04:43:42 DEBUG : Looking for writers 2026/03/30 04:43:42 DEBUG : dir: reading active writers 2026/03/30 04:43:42 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:43 DEBUG : dir: Looking for writers 2026/03/30 04:43:43 DEBUG : Looking for writers 2026/03/30 04:43:43 DEBUG : dir: reading active writers 2026/03/30 04:43:43 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:44 DEBUG : dir: Looking for writers 2026/03/30 04:43:44 DEBUG : Looking for writers 2026/03/30 04:43:44 DEBUG : dir: reading active writers 2026/03/30 04:43:44 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:45 DEBUG : dir: Looking for writers 2026/03/30 04:43:45 DEBUG : Looking for writers 2026/03/30 04:43:45 DEBUG : dir: reading active writers 2026/03/30 04:43:45 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:45 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:46 DEBUG : dir: Looking for writers 2026/03/30 04:43:46 DEBUG : Looking for writers 2026/03/30 04:43:46 DEBUG : dir: reading active writers 2026/03/30 04:43:46 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:46 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:47 DEBUG : dir: Looking for writers 2026/03/30 04:43:47 DEBUG : Looking for writers 2026/03/30 04:43:47 DEBUG : dir: reading active writers 2026/03/30 04:43:47 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:48 DEBUG : dir: Looking for writers 2026/03/30 04:43:48 DEBUG : Looking for writers 2026/03/30 04:43:48 DEBUG : dir: reading active writers 2026/03/30 04:43:48 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:48 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:49 DEBUG : dir: Looking for writers 2026/03/30 04:43:49 DEBUG : Looking for writers 2026/03/30 04:43:49 DEBUG : dir: reading active writers 2026/03/30 04:43:49 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:49 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:50 DEBUG : dir: Looking for writers 2026/03/30 04:43:50 DEBUG : Looking for writers 2026/03/30 04:43:50 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:50 DEBUG : dir: reading active writers 2026/03/30 04:43:50 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:50 DEBUG : newLeaf: size = 25 OK 2026/03/30 04:43:50 INFO : newLeaf: Copied (replaced existing) 2026/03/30 04:43:50 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2026/03/30 04:43:50 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2026/03/30 04:43:50 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:43:50 INFO : newLeaf: vfs cache: upload succeeded try #1 2026/03/30 04:43:51 DEBUG : dir: Looking for writers 2026/03/30 04:43:51 DEBUG : Looking for writers 2026/03/30 04:43:51 DEBUG : dir: reading active writers 2026/03/30 04:43:51 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:51 DEBUG : >WaitForWriters: 2026/03/30 04:43:51 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:43:51 DEBUG : dir: Looking for writers 2026/03/30 04:43:51 DEBUG : Looking for writers 2026/03/30 04:43:51 DEBUG : dir: reading active writers 2026/03/30 04:43:51 DEBUG : newLeaf: reading active writers 2026/03/30 04:43:51 DEBUG : >WaitForWriters: 2026/03/30 04:43:51 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:43:51 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:43:51 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: root is "/home/rclone/.cache/rclone" 2026/03/30 04:43:51 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:51 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:51 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:51 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:43:51 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:51 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:51 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:43:51 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:43:51 INFO : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/03/30 04:43:51 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2026/03/30 04:43:51 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:43:51 DEBUG : dir/file1(0x336fb7c55540): openPending: 2026/03/30 04:43:51 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2026/03/30 04:43:51 DEBUG : dir/file1: vfs cache: truncate to size=14 2026/03/30 04:43:51 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:43:51 DEBUG : dir/file1(0x336fb7c55540): >openPending: err= 2026/03/30 04:43:51 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/03/30 04:43:51 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:43:51 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:43:51 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:43:51 DEBUG : dir/file1(0x336fb7c55540): _writeAt: size=14, off=0 2026/03/30 04:43:51 DEBUG : dir/file1(0x336fb7c55540): >_writeAt: n=14, err= 2026/03/30 04:43:51 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/03/30 04:43:51 DEBUG : dir/file1(0x336fb7c55540): close: 2026/03/30 04:43:51 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/03/30 04:43:51 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2026/03/30 04:43:51 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2026/03/30 04:43:51 DEBUG : dir/file1(0x336fb7c55540): >close: err= 2026/03/30 04:43:51 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:43:51 DEBUG : dir: Looking for writers 2026/03/30 04:43:51 DEBUG : file1: reading active writers 2026/03/30 04:43:51 DEBUG : Looking for writers 2026/03/30 04:43:51 DEBUG : dir: reading active writers 2026/03/30 04:43:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:43:51 DEBUG : dir: Looking for writers 2026/03/30 04:43:51 DEBUG : file1: reading active writers 2026/03/30 04:43:51 DEBUG : Looking for writers 2026/03/30 04:43:51 DEBUG : dir: reading active writers 2026/03/30 04:43:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:43:51 DEBUG : dir: Looking for writers 2026/03/30 04:43:51 DEBUG : file1: reading active writers 2026/03/30 04:43:51 DEBUG : Looking for writers 2026/03/30 04:43:51 DEBUG : dir: reading active writers 2026/03/30 04:43:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:43:51 DEBUG : dir: Looking for writers 2026/03/30 04:43:51 DEBUG : file1: reading active writers 2026/03/30 04:43:51 DEBUG : Looking for writers 2026/03/30 04:43:51 DEBUG : dir: reading active writers 2026/03/30 04:43:51 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:43:51 DEBUG : dir/file1: vfs cache: starting upload 2026/03/30 04:43:52 DEBUG : dir: Looking for writers 2026/03/30 04:43:52 DEBUG : file1: reading active writers 2026/03/30 04:43:52 DEBUG : Looking for writers 2026/03/30 04:43:52 DEBUG : dir: reading active writers 2026/03/30 04:43:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:43:52 DEBUG : dir: Looking for writers 2026/03/30 04:43:52 DEBUG : file1: reading active writers 2026/03/30 04:43:52 DEBUG : Looking for writers 2026/03/30 04:43:52 DEBUG : dir: reading active writers 2026/03/30 04:43:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:43:52 DEBUG : dir: Looking for writers 2026/03/30 04:43:52 DEBUG : file1: reading active writers 2026/03/30 04:43:52 DEBUG : Looking for writers 2026/03/30 04:43:52 DEBUG : dir: reading active writers 2026/03/30 04:43:52 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/03/30 04:43:53 DEBUG : dir: Looking for writers 2026/03/30 04:43:53 DEBUG : file1: reading active writers 2026/03/30 04:43:53 DEBUG : Looking for writers 2026/03/30 04:43:53 DEBUG : dir: reading active writers 2026/03/30 04:43:53 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:54 DEBUG : dir: Looking for writers 2026/03/30 04:43:54 DEBUG : file1: reading active writers 2026/03/30 04:43:54 DEBUG : Looking for writers 2026/03/30 04:43:54 DEBUG : dir: reading active writers 2026/03/30 04:43:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:43:54 DEBUG : dir/file1: size = 14 OK 2026/03/30 04:43:54 INFO : dir/file1: Copied (replaced existing) 2026/03/30 04:43:54 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2026/03/30 04:43:54 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2026/03/30 04:43:54 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:43:54 INFO : dir/file1: vfs cache: upload succeeded try #1 2026/03/30 04:43:55 DEBUG : dir: Looking for writers 2026/03/30 04:43:55 DEBUG : file1: reading active writers 2026/03/30 04:43:55 DEBUG : Looking for writers 2026/03/30 04:43:55 DEBUG : dir: reading active writers 2026/03/30 04:43:55 DEBUG : >WaitForWriters: 2026/03/30 04:43:55 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/03/30 04:43:55 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:43:55 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:43:55 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:43:55 DEBUG : dir/file1(0x336fb7ec2e40): _readAt: size=512, off=0 2026/03/30 04:43:55 DEBUG : dir/file1(0x336fb7ec2e40): openPending: 2026/03/30 04:43:55 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/03/30 04:43:55 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/03/30 04:43:55 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:43:55 DEBUG : dir/file1(0x336fb7ec2e40): >openPending: err= 2026/03/30 04:43:55 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2026/03/30 04:43:55 DEBUG : dir/file1(0x336fb7ec2e40): >_readAt: n=14, err=EOF 2026/03/30 04:43:55 DEBUG : dir/file1(0x336fb7ec2e40): close: 2026/03/30 04:43:55 DEBUG : dir/file1: vfs cache: setting modification time to 2026-03-30 04:43:52 +0000 UTC 2026/03/30 04:43:55 DEBUG : dir/file1(0x336fb7ec2e40): >close: err= 2026/03/30 04:44:06 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:44:06 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/03/30 04:44:06 DEBUG : newLeaf: Updating file with newLeaf 0x336fb5b20fc0 2026/03/30 04:44:06 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:44:06 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:44:08 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/03/30 04:44:08 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2026/03/30 04:44:08 DEBUG : dir/file1: Updating file with dir/file1 0x336fb5b20fc0 2026/03/30 04:44:08 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/03/30 04:44:08 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 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:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/writes,forceCache=true Messages: Unexpected file "dir/file1" 2026/03/30 04:44:15 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/03/30 04:44:15 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:44:15 DEBUG : dir/file1(0x336fb617a040): openPending: 2026/03/30 04:44:15 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/03/30 04:44:15 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/03/30 04:44:15 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:44:15 DEBUG : dir/file1(0x336fb617a040): >openPending: err= 2026/03/30 04:44:15 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/03/30 04:44:15 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:44:15 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:44:15 DEBUG : dir/file1(0x336fb617a040): _writeAt: size=25, off=0 2026/03/30 04:44:15 DEBUG : dir/file1(0x336fb617a040): >_writeAt: n=25, err= 2026/03/30 04:44:26 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:44:26 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/03/30 04:44:26 DEBUG : newLeaf: Updating file with newLeaf 0x336fb5b20fc0 2026/03/30 04:44:26 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:44:26 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:44:26 DEBUG : newLeaf(0x336fb617a040): close: 2026/03/30 04:44:26 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2026/03/30 04:44:26 DEBUG : newLeaf: vfs cache: setting modification time to 2026-03-30 04:44:15.253971399 +0000 UTC m=+187.042770691 2026/03/30 04:44:26 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2026/03/30 04:44:26 DEBUG : newLeaf(0x336fb617a040): >close: err= 2026/03/30 04:44:26 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:44:26 DEBUG : dir: Looking for writers 2026/03/30 04:44:26 DEBUG : Looking for writers 2026/03/30 04:44:26 DEBUG : dir: reading active writers 2026/03/30 04:44:26 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:44:26 DEBUG : dir: Looking for writers 2026/03/30 04:44:26 DEBUG : Looking for writers 2026/03/30 04:44:26 DEBUG : dir: reading active writers 2026/03/30 04:44:26 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:44:26 DEBUG : dir: Looking for writers 2026/03/30 04:44:26 DEBUG : Looking for writers 2026/03/30 04:44:26 DEBUG : dir: reading active writers 2026/03/30 04:44:26 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:44:26 DEBUG : dir: Looking for writers 2026/03/30 04:44:26 DEBUG : Looking for writers 2026/03/30 04:44:26 DEBUG : dir: reading active writers 2026/03/30 04:44:26 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:44:26 DEBUG : newLeaf: vfs cache: starting upload 2026/03/30 04:44:26 DEBUG : dir: Looking for writers 2026/03/30 04:44:26 DEBUG : Looking for writers 2026/03/30 04:44:26 DEBUG : dir: reading active writers 2026/03/30 04:44:26 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:44:26 DEBUG : dir: Looking for writers 2026/03/30 04:44:26 DEBUG : Looking for writers 2026/03/30 04:44:26 DEBUG : dir: reading active writers 2026/03/30 04:44:26 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:44:26 DEBUG : dir: Looking for writers 2026/03/30 04:44:26 DEBUG : Looking for writers 2026/03/30 04:44:26 DEBUG : dir: reading active writers 2026/03/30 04:44:26 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/03/30 04:44:27 DEBUG : dir: Looking for writers 2026/03/30 04:44:27 DEBUG : Looking for writers 2026/03/30 04:44:27 DEBUG : dir: reading active writers 2026/03/30 04:44:27 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:44:28 DEBUG : dir: Looking for writers 2026/03/30 04:44:28 DEBUG : Looking for writers 2026/03/30 04:44:28 DEBUG : dir: reading active writers 2026/03/30 04:44:28 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:44:29 DEBUG : dir: Looking for writers 2026/03/30 04:44:29 DEBUG : Looking for writers 2026/03/30 04:44:29 DEBUG : dir: reading active writers 2026/03/30 04:44:29 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:29 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:44:30 DEBUG : newLeaf: size = 25 OK 2026/03/30 04:44:30 INFO : newLeaf: Copied (replaced existing) 2026/03/30 04:44:30 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2026/03/30 04:44:30 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2026/03/30 04:44:30 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:44:30 INFO : newLeaf: vfs cache: upload succeeded try #1 2026/03/30 04:44:30 DEBUG : dir: Looking for writers 2026/03/30 04:44:30 DEBUG : Looking for writers 2026/03/30 04:44:30 DEBUG : dir: reading active writers 2026/03/30 04:44:30 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:30 DEBUG : >WaitForWriters: 2026/03/30 04:44:30 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:44:30 DEBUG : dir: Looking for writers 2026/03/30 04:44:30 DEBUG : Looking for writers 2026/03/30 04:44:30 DEBUG : dir: reading active writers 2026/03/30 04:44:30 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:30 DEBUG : >WaitForWriters: 2026/03/30 04:44:30 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:44:41 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:44:41 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: root is "/home/rclone/.cache/rclone" 2026/03/30 04:44:41 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:44:41 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:44:41 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:44:41 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:44:41 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:44:41 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:44:41 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:44:41 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:44:41 INFO : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/03/30 04:44:41 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:44:41 DEBUG : dir: Looking for writers 2026/03/30 04:44:41 DEBUG : file1: reading active writers 2026/03/30 04:44:41 DEBUG : Looking for writers 2026/03/30 04:44:41 DEBUG : dir: reading active writers 2026/03/30 04:44:41 DEBUG : >WaitForWriters: 2026/03/30 04:44:41 DEBUG : dir/file1: Open: flags=O_RDONLY 2026/03/30 04:44:41 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:44:41 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:44:41 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:44:41 DEBUG : dir/file1(0x336fb617b2c0): _readAt: size=512, off=0 2026/03/30 04:44:41 DEBUG : dir/file1(0x336fb617b2c0): openPending: 2026/03/30 04:44:41 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2026/03/30 04:44:41 DEBUG : dir/file1: vfs cache: truncate to size=14 2026/03/30 04:44:41 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:44:41 DEBUG : dir/file1(0x336fb617b2c0): >openPending: err= 2026/03/30 04:44:41 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2026/03/30 04:44:41 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2026/03/30 04:44:41 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2026/03/30 04:44:41 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2026/03/30 04:44:41 DEBUG : dir/file1(0x336fb617b2c0): >_readAt: n=14, err=EOF 2026/03/30 04:44:41 DEBUG : dir/file1(0x336fb617b2c0): close: 2026/03/30 04:44:41 DEBUG : dir/file1: vfs cache: setting modification time to 2026-03-30 04:44:41 +0000 UTC 2026/03/30 04:44:41 DEBUG : dir/file1(0x336fb617b2c0): >close: err= 2026/03/30 04:44:43 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:44:43 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/03/30 04:44:43 DEBUG : newLeaf: Updating file with newLeaf 0x336fb6142fc0 2026/03/30 04:44:43 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:44:43 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:44:45 INFO : newLeaf: Moved (server-side) to: dir/file1 2026/03/30 04:44:45 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2026/03/30 04:44:45 DEBUG : dir/file1: Updating file with dir/file1 0x336fb6142fc0 2026/03/30 04:44:45 DEBUG : Added virtual directory entry vDel: "newLeaf" 2026/03/30 04:44:45 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 /usr/local/go/src/runtime/asm_amd64.s:1771 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:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:350 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:345 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:361 /home/rclone/go/src/github.com/rclone/rclone/vfs/file_test.go:413 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" 2026/03/30 04:44:52 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/03/30 04:44:52 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:44:52 DEBUG : dir/file1(0x336fb6500240): openPending: 2026/03/30 04:44:52 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2026/03/30 04:44:52 DEBUG : dir/file1: vfs cache: truncate to size=14 (not needed as size correct) 2026/03/30 04:44:52 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:44:52 DEBUG : dir/file1(0x336fb6500240): >openPending: err= 2026/03/30 04:44:52 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/03/30 04:44:52 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:44:52 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:44:52 DEBUG : dir/file1(0x336fb6500240): _writeAt: size=25, off=0 2026/03/30 04:44:52 DEBUG : dir/file1(0x336fb6500240): >_writeAt: n=25, err= 2026/03/30 04:44:56 INFO : dir/file1: Moved (server-side) to: newLeaf 2026/03/30 04:44:56 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2026/03/30 04:44:56 DEBUG : newLeaf: Updating file with newLeaf 0x336fb6142fc0 2026/03/30 04:44:56 DEBUG : dir: Added virtual directory entry vDel: "file1" 2026/03/30 04:44:56 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:44:56 DEBUG : newLeaf(0x336fb6500240): close: 2026/03/30 04:44:56 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2026/03/30 04:44:56 DEBUG : newLeaf: vfs cache: setting modification time to 2026-03-30 04:44:52.948989792 +0000 UTC m=+224.737789095 2026/03/30 04:44:56 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2026/03/30 04:44:56 DEBUG : newLeaf(0x336fb6500240): >close: err= 2026/03/30 04:44:56 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:44:56 DEBUG : dir: Looking for writers 2026/03/30 04:44:56 DEBUG : Looking for writers 2026/03/30 04:44:56 DEBUG : dir: reading active writers 2026/03/30 04:44:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:44:56 DEBUG : dir: Looking for writers 2026/03/30 04:44:56 DEBUG : Looking for writers 2026/03/30 04:44:56 DEBUG : dir: reading active writers 2026/03/30 04:44:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:44:56 DEBUG : dir: Looking for writers 2026/03/30 04:44:56 DEBUG : Looking for writers 2026/03/30 04:44:56 DEBUG : dir: reading active writers 2026/03/30 04:44:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:44:56 DEBUG : dir: Looking for writers 2026/03/30 04:44:56 DEBUG : Looking for writers 2026/03/30 04:44:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:56 DEBUG : dir: reading active writers 2026/03/30 04:44:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:44:56 DEBUG : newLeaf: vfs cache: starting upload 2026/03/30 04:44:56 DEBUG : dir: Looking for writers 2026/03/30 04:44:56 DEBUG : Looking for writers 2026/03/30 04:44:56 DEBUG : dir: reading active writers 2026/03/30 04:44:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:44:56 DEBUG : dir: Looking for writers 2026/03/30 04:44:56 DEBUG : Looking for writers 2026/03/30 04:44:56 DEBUG : dir: reading active writers 2026/03/30 04:44:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:44:56 DEBUG : dir: Looking for writers 2026/03/30 04:44:56 DEBUG : Looking for writers 2026/03/30 04:44:56 DEBUG : dir: reading active writers 2026/03/30 04:44:56 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:56 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/03/30 04:44:57 DEBUG : dir: Looking for writers 2026/03/30 04:44:57 DEBUG : Looking for writers 2026/03/30 04:44:57 DEBUG : dir: reading active writers 2026/03/30 04:44:57 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:57 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:44:58 DEBUG : dir: Looking for writers 2026/03/30 04:44:58 DEBUG : Looking for writers 2026/03/30 04:44:58 DEBUG : dir: reading active writers 2026/03/30 04:44:58 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:44:59 DEBUG : dir: Looking for writers 2026/03/30 04:44:59 DEBUG : Looking for writers 2026/03/30 04:44:59 DEBUG : newLeaf: reading active writers 2026/03/30 04:44:59 DEBUG : dir: reading active writers 2026/03/30 04:44:59 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2026/03/30 04:45:00 DEBUG : newLeaf: size = 25 OK 2026/03/30 04:45:00 INFO : newLeaf: Copied (replaced existing) 2026/03/30 04:45:00 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2026/03/30 04:45:00 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2026/03/30 04:45:00 DEBUG : Added virtual directory entry vAddFile: "newLeaf" 2026/03/30 04:45:00 INFO : newLeaf: vfs cache: upload succeeded try #1 2026/03/30 04:45:00 DEBUG : dir: Looking for writers 2026/03/30 04:45:00 DEBUG : Looking for writers 2026/03/30 04:45:00 DEBUG : dir: reading active writers 2026/03/30 04:45:00 DEBUG : newLeaf: reading active writers 2026/03/30 04:45:00 DEBUG : >WaitForWriters: 2026/03/30 04:45:00 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:45:00 DEBUG : dir: Looking for writers 2026/03/30 04:45:00 DEBUG : Looking for writers 2026/03/30 04:45:00 DEBUG : dir: reading active writers 2026/03/30 04:45:00 DEBUG : newLeaf: reading active writers 2026/03/30 04:45:00 DEBUG : >WaitForWriters: 2026/03/30 04:45:00 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaner exiting --- FAIL: TestFileRename (218.47s) --- FAIL: TestFileRename/off,forceCache=false (45.11s) --- FAIL: TestFileRename/minimal,forceCache=false (25.35s) --- FAIL: TestFileRename/minimal,forceCache=true (34.68s) --- FAIL: TestFileRename/writes,forceCache=false (42.50s) --- FAIL: TestFileRename/writes,forceCache=true (49.71s) --- FAIL: TestFileRename/full,forceCache=false (21.12s) === RUN TestRWFileHandleSizeTruncateExisting run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:45:02 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:45:02 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: root is "/home/rclone/.cache/rclone" 2026/03/30 04:45:02 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:02 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:02 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:02 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:45:02 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:02 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:02 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:45:02 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:02 INFO : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2026/03/30 04:45:04 DEBUG : dir/file1: OpenFile: flags=O_WRONLY|O_TRUNC, perm=-rwxrwxrwx 2026/03/30 04:45:04 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2026/03/30 04:45:04 DEBUG : dir/file1: newRWFileHandle: 2026/03/30 04:45:04 DEBUG : dir/file1(0x336fb6626a00): openPending: 2026/03/30 04:45:04 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2026/03/30 04:45:04 DEBUG : dir/file1: vfs cache: truncate to size=16 2026/03/30 04:45:04 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:45:04 DEBUG : dir/file1(0x336fb6626a00): >openPending: err= 2026/03/30 04:45:04 DEBUG : dir/file1: vfs cache: truncate to size=0 2026/03/30 04:45:04 DEBUG : dir/file1: >newRWFileHandle: err= 2026/03/30 04:45:04 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2026/03/30 04:45:04 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2026/03/30 04:45:04 DEBUG : dir/file1(0x336fb6626a00): _writeAt: size=5, off=0 2026/03/30 04:45:04 DEBUG : dir/file1(0x336fb6626a00): >_writeAt: n=5, err= 2026/03/30 04:45:04 DEBUG : dir/file1(0x336fb6626a00): close: 2026/03/30 04:45:04 DEBUG : vfs cache: looking for range={Pos:0 Size:5} in [{Pos:0 Size:5}] - present true 2026/03/30 04:45:04 DEBUG : dir/file1: vfs cache: setting modification time to 2026-03-30 04:45:04.817667945 +0000 UTC m=+236.606467268 2026/03/30 04:45:04 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2026/03/30 04:45:04 DEBUG : dir/file1(0x336fb6626a00): >close: err= 2026/03/30 04:45:04 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:45:04 DEBUG : dir: Looking for writers 2026/03/30 04:45:04 DEBUG : file1: reading active writers 2026/03/30 04:45:04 DEBUG : Looking for writers 2026/03/30 04:45:04 DEBUG : dir: reading active writers 2026/03/30 04:45:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:45:04 DEBUG : dir: Looking for writers 2026/03/30 04:45:04 DEBUG : file1: reading active writers 2026/03/30 04:45:04 DEBUG : Looking for writers 2026/03/30 04:45:04 DEBUG : dir: reading active writers 2026/03/30 04:45:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:45:04 DEBUG : dir: Looking for writers 2026/03/30 04:45:04 DEBUG : file1: reading active writers 2026/03/30 04:45:04 DEBUG : Looking for writers 2026/03/30 04:45:04 DEBUG : dir: reading active writers 2026/03/30 04:45:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:45:04 DEBUG : dir: Looking for writers 2026/03/30 04:45:04 DEBUG : file1: reading active writers 2026/03/30 04:45:04 DEBUG : Looking for writers 2026/03/30 04:45:04 DEBUG : dir: reading active writers 2026/03/30 04:45:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:45:04 DEBUG : dir/file1: vfs cache: starting upload 2026/03/30 04:45:04 DEBUG : dir: Looking for writers 2026/03/30 04:45:04 DEBUG : file1: reading active writers 2026/03/30 04:45:04 DEBUG : Looking for writers 2026/03/30 04:45:04 DEBUG : dir: reading active writers 2026/03/30 04:45:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:45:05 DEBUG : dir: Looking for writers 2026/03/30 04:45:05 DEBUG : file1: reading active writers 2026/03/30 04:45:05 DEBUG : Looking for writers 2026/03/30 04:45:05 DEBUG : dir: reading active writers 2026/03/30 04:45:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:45:05 DEBUG : dir: Looking for writers 2026/03/30 04:45:05 DEBUG : file1: reading active writers 2026/03/30 04:45:05 DEBUG : Looking for writers 2026/03/30 04:45:05 DEBUG : dir: reading active writers 2026/03/30 04:45:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2026/03/30 04:45:05 DEBUG : dir/file1: size = 5 OK 2026/03/30 04:45:05 INFO : dir/file1: Copied (replaced existing) 2026/03/30 04:45:05 DEBUG : dir/file1: vfs cache: fingerprint now "5" 2026/03/30 04:45:05 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2026/03/30 04:45:05 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2026/03/30 04:45:05 INFO : dir/file1: vfs cache: upload succeeded try #1 2026/03/30 04:45:06 DEBUG : dir: Looking for writers 2026/03/30 04:45:06 DEBUG : file1: reading active writers 2026/03/30 04:45:06 DEBUG : Looking for writers 2026/03/30 04:45:06 DEBUG : dir: reading active writers 2026/03/30 04:45:06 DEBUG : >WaitForWriters: 2026/03/30 04:45:06 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaner exiting --- PASS: TestRWFileHandleSizeTruncateExisting (4.70s) === RUN TestRWCacheRename run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:45:07 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:45:07 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: root is "/home/rclone/.cache/rclone" 2026/03/30 04:45:07 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:07 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:07 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:07 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:45:07 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:07 DEBUG : Creating backend with remote ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:07 DEBUG : :local: detected overridden config - adding "{8un-i}" suffix to name 2026/03/30 04:45:07 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,Dot',links=false:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" to be canonical ":local{8un-i}:/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-qogoqag4huce" 2026/03/30 04:45:07 DEBUG : rename_me: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/03/30 04:45:07 DEBUG : rename_me: Open: flags=O_WRONLY|O_CREATE 2026/03/30 04:45:07 DEBUG : rename_me: newRWFileHandle: 2026/03/30 04:45:07 DEBUG : rename_me(0x336fb6398d80): openPending: 2026/03/30 04:45:07 DEBUG : rename_me: vfs cache: truncate to size=0 (not needed as size correct) 2026/03/30 04:45:07 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item rename_me not removed, freed 0 bytes 2026/03/30 04:45:07 INFO : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 0, uploading 0, total size 0 (was 0) 2026/03/30 04:45:07 DEBUG : Added virtual directory entry vAddFile: "rename_me" 2026/03/30 04:45:07 DEBUG : rename_me(0x336fb6398d80): >openPending: err= 2026/03/30 04:45:07 DEBUG : rename_me: >newRWFileHandle: err= 2026/03/30 04:45:07 DEBUG : Added virtual directory entry vAddFile: "rename_me" 2026/03/30 04:45:07 DEBUG : rename_me: >Open: fd=rename_me (rw), err= 2026/03/30 04:45:07 DEBUG : rename_me: >OpenFile: fd=rename_me (rw), err= 2026/03/30 04:45:07 DEBUG : rename_me(0x336fb6398d80): _writeAt: size=5, off=0 2026/03/30 04:45:07 DEBUG : rename_me(0x336fb6398d80): >_writeAt: n=5, err= 2026/03/30 04:45:07 DEBUG : rename_me(0x336fb6398d80): close: 2026/03/30 04:45:07 DEBUG : rename_me: vfs cache: setting modification time to 2026-03-30 04:45:07.198939798 +0000 UTC m=+238.987739100 2026/03/30 04:45:07 INFO : rename_me: vfs cache: queuing for upload in 100ms 2026/03/30 04:45:07 DEBUG : rename_me(0x336fb6398d80): >close: err= 2026/03/30 04:45:07 INFO : rename_me: vfs cache: renamed in cache to "i_was_renamed" 2026/03/30 04:45:07 DEBUG : i_was_renamed: Updating file with 0x336fb7de8780 2026/03/30 04:45:07 DEBUG : Added virtual directory entry vDel: "rename_me" 2026/03/30 04:45:07 DEBUG : Added virtual directory entry vAddFile: "i_was_renamed" 2026/03/30 04:45:07 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:45:07 DEBUG : Looking for writers 2026/03/30 04:45:07 DEBUG : i_was_renamed: reading active writers 2026/03/30 04:45:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2026/03/30 04:45:07 DEBUG : Looking for writers 2026/03/30 04:45:07 DEBUG : i_was_renamed: reading active writers 2026/03/30 04:45:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2026/03/30 04:45:07 DEBUG : Looking for writers 2026/03/30 04:45:07 DEBUG : i_was_renamed: reading active writers 2026/03/30 04:45:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2026/03/30 04:45:07 DEBUG : Looking for writers 2026/03/30 04:45:07 DEBUG : i_was_renamed: reading active writers 2026/03/30 04:45:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2026/03/30 04:45:07 DEBUG : i_was_renamed: vfs cache: starting upload 2026/03/30 04:45:07 DEBUG : Looking for writers 2026/03/30 04:45:07 DEBUG : i_was_renamed: reading active writers 2026/03/30 04:45:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2026/03/30 04:45:07 DEBUG : Looking for writers 2026/03/30 04:45:07 DEBUG : i_was_renamed: reading active writers 2026/03/30 04:45:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2026/03/30 04:45:07 DEBUG : i_was_renamed: size = 5 OK 2026/03/30 04:45:07 INFO : i_was_renamed: Copied (new) 2026/03/30 04:45:07 DEBUG : i_was_renamed: vfs cache: fingerprint now "5" 2026/03/30 04:45:07 DEBUG : i_was_renamed: vfs cache: writeback object to VFS layer 2026/03/30 04:45:07 DEBUG : Added virtual directory entry vAddFile: "i_was_renamed" 2026/03/30 04:45:07 INFO : i_was_renamed: vfs cache: upload succeeded try #1 2026/03/30 04:45:07 DEBUG : Looking for writers 2026/03/30 04:45:07 DEBUG : i_was_renamed: reading active writers 2026/03/30 04:45:07 DEBUG : >WaitForWriters: 2026/03/30 04:45:07 DEBUG : mega root 'rclone-test-qogoqag4huce': vfs cache: cleaner exiting --- PASS: TestRWCacheRename (2.60s) === RUN TestVFSStatParent run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:45:09 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:45:09 NOTICE: mega root 'rclone-test-qogoqag4huce': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/03/30 04:45:15 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:45:15 DEBUG : dir: Looking for writers 2026/03/30 04:45:15 DEBUG : Looking for writers 2026/03/30 04:45:15 DEBUG : file1: reading active writers 2026/03/30 04:45:15 DEBUG : dir: reading active writers 2026/03/30 04:45:15 DEBUG : >WaitForWriters: run.go:130: removing dir "dir" failed - try 1/3: directory not empty run.go:130: removing dir "dir" failed - try 2/3: directory not empty run.go:130: removing dir "dir" failed - try 3/3: directory not empty run.go:133: removing dir "dir" failed: directory not empty fstest.go:298: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:301: Flushing the directory cache fstest.go:298: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:301: Flushing the directory cache fstest.go:305: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:305 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:178 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:393 /usr/local/go/src/testing/testing.go:1317 /usr/local/go/src/testing/testing.go:1667 /usr/local/go/src/testing/testing.go:2030 Error: Should be true Test: TestVFSStatParent Messages: listing wrong, want got dir/file2 (14) fstest.go:191: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:191 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:308 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:178 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:393 /usr/local/go/src/testing/testing.go:1317 /usr/local/go/src/testing/testing.go:1667 /usr/local/go/src/testing/testing.go:2030 Error: Should be true Test: TestVFSStatParent Messages: Unexpected file "dir/file2" fstest.go:327: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:327 /home/rclone/go/src/github.com/rclone/rclone/fstest/fstest.go:338 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:178 /home/rclone/go/src/github.com/rclone/rclone/fstest/run.go:393 /usr/local/go/src/testing/testing.go:1317 /usr/local/go/src/testing/testing.go:1667 /usr/local/go/src/testing/testing.go:2030 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSStatParent Messages: directories --- FAIL: TestVFSStatParent (37.40s) === RUN TestWriteFileHandleFlush run.go:185: Remote "mega root 'rclone-test-qogoqag4huce'", Local "Local file system at /tmp/rclone1995253669", Modify Window "876000h0m0s" 2026/03/30 04:45:47 INFO : mega root 'rclone-test-qogoqag4huce': poll-interval is not supported by this remote 2026/03/30 04:45:47 NOTICE: mega root 'rclone-test-qogoqag4huce': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2026/03/30 04:45:47 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2026/03/30 04:45:47 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2026/03/30 04:45:47 DEBUG : Added virtual directory entry vAddFile: "file1" 2026/03/30 04:45:47 DEBUG : file1: >Open: fd=file1 (w), err= 2026/03/30 04:45:47 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2026/03/30 04:45:47 DEBUG : file1: WriteFileHandle.Flush unwritten handle, writing 0 bytes to avoid race conditions 2026/03/30 04:45:47 DEBUG : Added virtual directory entry vAddFile: "file1" dir_test.go:250: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/vfs/dir_test.go:250 /home/rclone/go/src/github.com/rclone/rclone/vfs/write_test.go:247 Error: Not equal: expected: []string{"file1,0,false"} actual : []string{"dir,0,true", "file1,0,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=13) "file1,0,false" Test: TestWriteFileHandleFlush 2026/03/30 04:45:47 DEBUG : mega root 'rclone-test-qogoqag4huce': File to upload is small (5 bytes), uploading instead of streaming 2026/03/30 04:45:58 ERROR : file1: WriteFileHandle.New Rcat failed: failed to finish upload: unexpected end of JSON input 2026/03/30 04:45:58 DEBUG : file1: Remove: 2026/03/30 04:45:58 DEBUG : Added virtual directory entry vDel: "file1" 2026/03/30 04:45:58 DEBUG : file1: >Remove: err= 2026/03/30 04:45:58 ERROR : file1: WriteFileHandle.Flush error: failed to finish upload: unexpected end of JSON input write_test.go:256: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/vfs/write_test.go:256 Error: Received unexpected error: failed to finish upload: unexpected end of JSON input Test: TestWriteFileHandleFlush 2026/03/30 04:45:58 DEBUG : file1: WriteFileHandle.Flush nothing to do dir_test.go:250: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/vfs/dir_test.go:250 /home/rclone/go/src/github.com/rclone/rclone/vfs/write_test.go:267 Error: Not equal: expected: []string{"file1,5,false"} actual : []string{"dir,0,true"} Diff: --- Expected +++ Actual @@ -1,3 +1,3 @@ ([]string) (len=1) { - (string) (len=13) "file1,5,false" + (string) (len=10) "dir,0,true" } Test: TestWriteFileHandleFlush 2026/03/30 04:45:58 DEBUG : WaitForWriters: timeout=30s 2026/03/30 04:45:58 DEBUG : dir: Looking for writers 2026/03/30 04:45:58 DEBUG : Looking for writers 2026/03/30 04:45:58 DEBUG : dir: reading active writers 2026/03/30 04:45:58 DEBUG : >WaitForWriters: --- FAIL: TestWriteFileHandleFlush (23.03s) FAIL 2026/03/30 04:46:10 DEBUG : mega root 'rclone-test-qogoqag4huce': Purge remote "./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestRWCacheRename|TestRWFileHandleSizeTruncateExisting|TestVFSStatParent|TestWriteFileHandleFlush)$|^TestFileRename$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Finished ERROR in 5m3.130529201s (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 TestVFSStatParent TestWriteFileHandleFlush]