"./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestCaseSensitivity|TestFileReadAtNonZeroLength|TestFileReadAtZeroLength|TestFileRename|TestRWCacheRename|TestRWFileHandleFlushRead|TestRWFileHandleFlushWrite|TestRWFileHandleMethodsRead|TestRWFileHandleMethodsWrite|TestRWFileHandleOpenTests|TestRWFileHandleReadAt|TestRWFileHandleReleaseRead|TestRWFileHandleReleaseWrite|TestRWFileHandleSeek|TestRWFileHandleSizeCreateExisting|TestRWFileHandleSizeCreateNew|TestRWFileHandleSizeTruncateExisting|TestRWFileHandleWriteAt|TestRWFileHandleWriteNoWrite|TestRWFileModTimeWithOpenWriters|TestRcGetVFS|TestReadFileHandleFlush|TestReadFileHandleMethods|TestReadFileHandleReadAt|TestReadFileHandleRelease|TestReadFileHandleSeek|TestVFSNew|TestVFSNewWithOpts|TestVFSOpenFile|TestVFSRename|TestVFSRoot|TestVFSStat|TestVFSStatParent|TestVFSStatfs|TestWriteFileHandleFlush|TestWriteFileHandleMethods|TestWriteFileHandleRelease|TestWriteFileHandleWriteAt|TestWriteFileModTimeWithOpenWriters)$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Starting (try 3/5) 2022/04/15 06:28:44 DEBUG : Creating backend with remote "TestMega:rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:28:44 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2022/04/15 06:28:52 DEBUG : Creating backend with remote "/tmp/rclone2052507487" === RUN TestFileRename === RUN TestFileRename/off,forceCache=false run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:28:52 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:28:52 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:28:53 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:28:53 DEBUG : dir: Looking for writers 2022/04/15 06:28:53 DEBUG : file1: reading active writers 2022/04/15 06:28:53 DEBUG : : Looking for writers 2022/04/15 06:28:53 DEBUG : dir: reading active writers 2022/04/15 06:28:53 DEBUG : >WaitForWriters: 2022/04/15 06:28:53 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:28:53 DEBUG : newLeaf: Updating file with newLeaf 0xc000366600 2022/04/15 06:28:53 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:28:53 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" 2022/04/15 06:29:04 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/04/15 06:29:04 DEBUG : dir/file1: Updating file with dir/file1 0xc000366600 2022/04/15 06:29:04 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/04/15 06:29:04 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" 2022/04/15 06:29:11 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/04/15 06:29:11 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2022/04/15 06:29:11 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:29:11 DEBUG : dir/file1: File is currently open, delaying rename 0xc000366600 2022/04/15 06:29:11 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:29:11 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:29:11 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (25 bytes), uploading instead of streaming 2022/04/15 06:29:11 INFO : dir/file1: Copied (new) 2022/04/15 06:29:11 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:29:11 DEBUG : newLeaf: Running delayed rename now 2022/04/15 06:29:11 INFO : newLeaf: Deleted 2022/04/15 06:29:13 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:29:13 DEBUG : newLeaf: Updating file with newLeaf 0xc000366600 2022/04/15 06:29:13 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:13 DEBUG : dir: Looking for writers 2022/04/15 06:29:13 DEBUG : : Looking for writers 2022/04/15 06:29:13 DEBUG : dir: reading active writers 2022/04/15 06:29:13 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:13 DEBUG : >WaitForWriters: 2022/04/15 06:29:13 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:13 DEBUG : dir: Looking for writers 2022/04/15 06:29:13 DEBUG : : Looking for writers 2022/04/15 06:29:13 DEBUG : dir: reading active writers 2022/04/15 06:29:13 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:13 DEBUG : >WaitForWriters: === RUN TestFileRename/minimal,forceCache=false run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:29:15 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:29:15 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:29:15 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:29:15 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:15 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:15 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:15 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:15 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:29:16 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:16 DEBUG : dir: Looking for writers 2022/04/15 06:29:16 DEBUG : file1: reading active writers 2022/04/15 06:29:16 DEBUG : : Looking for writers 2022/04/15 06:29:16 DEBUG : dir: reading active writers 2022/04/15 06:29:16 DEBUG : >WaitForWriters: 2022/04/15 06:29:16 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:29:16 DEBUG : newLeaf: Updating file with newLeaf 0xc00112c9c0 2022/04/15 06:29:16 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:29:16 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" 2022/04/15 06:29:24 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/04/15 06:29:24 DEBUG : dir/file1: Updating file with dir/file1 0xc00112c9c0 2022/04/15 06:29:24 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/04/15 06:29: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=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" 2022/04/15 06:29:31 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/04/15 06:29:31 DEBUG : dir/file1: >Open: fd=dir/file1 (w), err= 2022/04/15 06:29:31 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:29:31 DEBUG : dir/file1: File is currently open, delaying rename 0xc00112c9c0 2022/04/15 06:29:31 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:29:31 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:29:31 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (25 bytes), uploading instead of streaming 2022/04/15 06:29:31 INFO : dir/file1: Copied (new) 2022/04/15 06:29:31 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:29:31 DEBUG : newLeaf: Running delayed rename now 2022/04/15 06:29:32 INFO : newLeaf: Deleted 2022/04/15 06:29:32 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:29:32 DEBUG : newLeaf: Updating file with newLeaf 0xc00112c9c0 2022/04/15 06:29:32 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:32 DEBUG : dir: Looking for writers 2022/04/15 06:29:32 DEBUG : : Looking for writers 2022/04/15 06:29:32 DEBUG : dir: reading active writers 2022/04/15 06:29:32 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:32 DEBUG : >WaitForWriters: 2022/04/15 06:29:32 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:32 DEBUG : dir: Looking for writers 2022/04/15 06:29:32 DEBUG : : Looking for writers 2022/04/15 06:29:32 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:32 DEBUG : dir: reading active writers 2022/04/15 06:29:32 DEBUG : >WaitForWriters: 2022/04/15 06:29:32 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/minimal,forceCache=true run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:29:34 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:29:34 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:29:34 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:29:34 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:34 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:34 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:34 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:29:34 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:29:36 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2022/04/15 06:29:36 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:29:36 DEBUG : dir/file1(0xc001bd7d80): openPending: 2022/04/15 06:29:36 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/04/15 06:29:36 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:29:36 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:29:36 DEBUG : dir/file1(0xc001bd7d80): >openPending: err= 2022/04/15 06:29:36 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/04/15 06:29:36 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:29:36 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:29:36 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:29:36 DEBUG : dir/file1(0xc001bd7d80): _writeAt: size=14, off=0 2022/04/15 06:29:36 DEBUG : dir/file1(0xc001bd7d80): >_writeAt: n=14, err= 2022/04/15 06:29:36 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/04/15 06:29:36 DEBUG : dir/file1(0xc001bd7d80): close: 2022/04/15 06:29:36 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/04/15 06:29:36 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/04/15 06:29:36 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:29:36 DEBUG : dir/file1(0xc001bd7d80): >close: err= 2022/04/15 06:29:36 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:36 DEBUG : dir: Looking for writers 2022/04/15 06:29:36 DEBUG : file1: reading active writers 2022/04/15 06:29:36 DEBUG : : Looking for writers 2022/04/15 06:29:36 DEBUG : dir: reading active writers 2022/04/15 06:29:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:29:36 DEBUG : dir: Looking for writers 2022/04/15 06:29:36 DEBUG : file1: reading active writers 2022/04/15 06:29:36 DEBUG : : Looking for writers 2022/04/15 06:29:36 DEBUG : dir: reading active writers 2022/04/15 06:29:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:29:36 DEBUG : dir: Looking for writers 2022/04/15 06:29:36 DEBUG : file1: reading active writers 2022/04/15 06:29:36 DEBUG : : Looking for writers 2022/04/15 06:29:36 DEBUG : dir: reading active writers 2022/04/15 06:29:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:29:36 DEBUG : dir: Looking for writers 2022/04/15 06:29:36 DEBUG : file1: reading active writers 2022/04/15 06:29:36 DEBUG : : Looking for writers 2022/04/15 06:29:36 DEBUG : dir: reading active writers 2022/04/15 06:29:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:29:36 DEBUG : dir/file1: vfs cache: starting upload 2022/04/15 06:29:36 DEBUG : dir: Looking for writers 2022/04/15 06:29:36 DEBUG : file1: reading active writers 2022/04/15 06:29:36 DEBUG : : Looking for writers 2022/04/15 06:29:36 DEBUG : dir: reading active writers 2022/04/15 06:29:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:29:36 DEBUG : dir: Looking for writers 2022/04/15 06:29:36 DEBUG : file1: reading active writers 2022/04/15 06:29:36 DEBUG : : Looking for writers 2022/04/15 06:29:36 DEBUG : dir: reading active writers 2022/04/15 06:29:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:29:36 DEBUG : dir: Looking for writers 2022/04/15 06:29:36 DEBUG : file1: reading active writers 2022/04/15 06:29:36 DEBUG : : Looking for writers 2022/04/15 06:29:36 DEBUG : dir: reading active writers 2022/04/15 06:29:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:29:37 INFO : dir/file1: Copied (replaced existing) 2022/04/15 06:29:37 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/04/15 06:29:37 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2022/04/15 06:29:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:29:37 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/04/15 06:29:37 DEBUG : dir: Looking for writers 2022/04/15 06:29:37 DEBUG : file1: reading active writers 2022/04/15 06:29:37 DEBUG : : Looking for writers 2022/04/15 06:29:37 DEBUG : dir: reading active writers 2022/04/15 06:29:37 DEBUG : >WaitForWriters: 2022/04/15 06:29:37 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:29:37 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:29:37 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:29:37 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:29:37 DEBUG : dir/file1(0xc001da8600): _readAt: size=512, off=0 2022/04/15 06:29:37 DEBUG : dir/file1(0xc001da8600): openPending: 2022/04/15 06:29:37 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/04/15 06:29:37 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:29:37 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:29:37 DEBUG : dir/file1(0xc001da8600): >openPending: err= 2022/04/15 06:29:37 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/04/15 06:29:37 DEBUG : dir/file1(0xc001da8600): >_readAt: n=14, err=EOF 2022/04/15 06:29:37 DEBUG : dir/file1(0xc001da8600): close: 2022/04/15 06:29:37 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:29:36 +0000 UTC 2022/04/15 06:29:37 DEBUG : dir/file1(0xc001da8600): >close: err= 2022/04/15 06:29:39 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:29:39 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/04/15 06:29:39 DEBUG : newLeaf: Updating file with newLeaf 0xc001d9c180 2022/04/15 06:29:39 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:29:39 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:29:41 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/04/15 06:29:41 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/04/15 06:29:41 DEBUG : dir/file1: Updating file with dir/file1 0xc001d9c180 2022/04/15 06:29:41 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/04/15 06:29:41 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" 2022/04/15 06:29:48 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/04/15 06:29:48 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:29:48 DEBUG : dir/file1(0xc001d35d00): openPending: 2022/04/15 06:29:48 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/04/15 06:29:48 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:29:48 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:29:48 DEBUG : dir/file1(0xc001d35d00): >openPending: err= 2022/04/15 06:29:48 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/04/15 06:29:48 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:29:48 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:29:48 DEBUG : dir/file1(0xc001d35d00): _writeAt: size=25, off=0 2022/04/15 06:29:48 DEBUG : dir/file1(0xc001d35d00): >_writeAt: n=25, err= 2022/04/15 06:29:54 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:29:54 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/04/15 06:29:54 DEBUG : newLeaf: Updating file with newLeaf 0xc001d9c180 2022/04/15 06:29:54 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:29:54 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:29:54 DEBUG : newLeaf(0xc001d35d00): close: 2022/04/15 06:29:54 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/04/15 06:29:54 DEBUG : newLeaf: vfs cache: setting modification time to 2022-04-15 06:29:48.093649153 +0000 UTC m=+64.069486007 2022/04/15 06:29:54 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/04/15 06:29:54 DEBUG : newLeaf(0xc001d35d00): >close: err= 2022/04/15 06:29:54 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:54 DEBUG : dir: Looking for writers 2022/04/15 06:29:54 DEBUG : : Looking for writers 2022/04/15 06:29:54 DEBUG : dir: reading active writers 2022/04/15 06:29:54 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:29:54 DEBUG : dir: Looking for writers 2022/04/15 06:29:54 DEBUG : : Looking for writers 2022/04/15 06:29:54 DEBUG : dir: reading active writers 2022/04/15 06:29:54 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:29:54 DEBUG : dir: Looking for writers 2022/04/15 06:29:54 DEBUG : : Looking for writers 2022/04/15 06:29:54 DEBUG : dir: reading active writers 2022/04/15 06:29:54 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:29:54 DEBUG : dir: Looking for writers 2022/04/15 06:29:54 DEBUG : : Looking for writers 2022/04/15 06:29:54 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:54 DEBUG : dir: reading active writers 2022/04/15 06:29:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:29:54 DEBUG : newLeaf: vfs cache: starting upload 2022/04/15 06:29:54 DEBUG : dir: Looking for writers 2022/04/15 06:29:54 DEBUG : : Looking for writers 2022/04/15 06:29:54 DEBUG : dir: reading active writers 2022/04/15 06:29:54 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:29:54 DEBUG : dir: Looking for writers 2022/04/15 06:29:54 DEBUG : : Looking for writers 2022/04/15 06:29:54 DEBUG : dir: reading active writers 2022/04/15 06:29:54 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:29:54 DEBUG : dir: Looking for writers 2022/04/15 06:29:54 DEBUG : : Looking for writers 2022/04/15 06:29:54 DEBUG : dir: reading active writers 2022/04/15 06:29:54 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:29:55 INFO : newLeaf: Copied (replaced existing) 2022/04/15 06:29:55 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/04/15 06:29:55 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/04/15 06:29:55 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:29:55 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/04/15 06:29:55 DEBUG : dir: Looking for writers 2022/04/15 06:29:55 DEBUG : : Looking for writers 2022/04/15 06:29:55 DEBUG : dir: reading active writers 2022/04/15 06:29:55 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:55 DEBUG : >WaitForWriters: 2022/04/15 06:29:55 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:29:55 DEBUG : dir: Looking for writers 2022/04/15 06:29:55 DEBUG : : Looking for writers 2022/04/15 06:29:55 DEBUG : dir: reading active writers 2022/04/15 06:29:55 DEBUG : newLeaf: reading active writers 2022/04/15 06:29:55 DEBUG : >WaitForWriters: 2022/04/15 06:29:55 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=false run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:30:01 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:30:01 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:30:01 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:01 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:01 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:01 DEBUG : Config file has changed externaly - reloading 2022/04/15 06:30:01 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:01 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:30:04 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:30:04 DEBUG : dir: Looking for writers 2022/04/15 06:30:04 DEBUG : file1: reading active writers 2022/04/15 06:30:04 DEBUG : : Looking for writers 2022/04/15 06:30:04 DEBUG : dir: reading active writers 2022/04/15 06:30:04 DEBUG : >WaitForWriters: 2022/04/15 06:30:07 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:30:07 DEBUG : newLeaf: Updating file with newLeaf 0xc00112d5c0 2022/04/15 06:30:07 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:30:07 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" 2022/04/15 06:30:15 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/04/15 06:30:15 DEBUG : dir/file1: Updating file with dir/file1 0xc00112d5c0 2022/04/15 06:30:15 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/04/15 06:30:15 DEBUG : dir: Added virtual directory entry vAddFile: "file1" fstest.go:299: Sleeping for 1s for list eventual consistency: 1/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 2s for list eventual consistency: 2/3 fstest.go:302: Flushing the directory cache fstest.go:299: Sleeping for 4s for list eventual consistency: 3/3 fstest.go:302: Flushing the directory cache fstest.go:306: Error Trace: fstest.go:306 fstest.go:339 fstest.go:351 run.go:342 file_test.go:366 file_test.go:418 Error: Should be true Test: TestFileRename/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" 2022/04/15 06:30:22 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/04/15 06:30:22 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:30:22 DEBUG : dir/file1(0xc00241ed00): openPending: 2022/04/15 06:30:22 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/04/15 06:30:22 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:30:22 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:30:22 DEBUG : dir/file1(0xc00241ed00): >openPending: err= 2022/04/15 06:30:22 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/04/15 06:30:22 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:30:22 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:30:22 DEBUG : dir/file1(0xc00241ed00): _writeAt: size=25, off=0 2022/04/15 06:30:22 DEBUG : dir/file1(0xc00241ed00): >_writeAt: n=25, err= 2022/04/15 06:30:23 INFO : newLeaf: Deleted 2022/04/15 06:30:24 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:30:24 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/04/15 06:30:24 DEBUG : newLeaf: Updating file with newLeaf 0xc00112d5c0 2022/04/15 06:30:24 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:30:24 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:30:24 DEBUG : newLeaf(0xc00241ed00): close: 2022/04/15 06:30:24 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/04/15 06:30:24 DEBUG : newLeaf: vfs cache: setting modification time to 2022-04-15 06:30:22.439495848 +0000 UTC m=+98.415332752 2022/04/15 06:30:24 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/04/15 06:30:24 DEBUG : newLeaf(0xc00241ed00): >close: err= 2022/04/15 06:30:24 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:30:24 DEBUG : dir: Looking for writers 2022/04/15 06:30:24 DEBUG : : Looking for writers 2022/04/15 06:30:24 DEBUG : dir: reading active writers 2022/04/15 06:30:24 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:30:24 DEBUG : dir: Looking for writers 2022/04/15 06:30:24 DEBUG : : Looking for writers 2022/04/15 06:30:24 DEBUG : dir: reading active writers 2022/04/15 06:30:24 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:30:24 DEBUG : dir: Looking for writers 2022/04/15 06:30:24 DEBUG : : Looking for writers 2022/04/15 06:30:24 DEBUG : dir: reading active writers 2022/04/15 06:30:24 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:30:24 DEBUG : dir: Looking for writers 2022/04/15 06:30:24 DEBUG : : Looking for writers 2022/04/15 06:30:24 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:24 DEBUG : dir: reading active writers 2022/04/15 06:30:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:30:24 DEBUG : newLeaf: vfs cache: starting upload 2022/04/15 06:30:24 DEBUG : dir: Looking for writers 2022/04/15 06:30:24 DEBUG : : Looking for writers 2022/04/15 06:30:24 DEBUG : dir: reading active writers 2022/04/15 06:30:24 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:30:24 DEBUG : dir: Looking for writers 2022/04/15 06:30:24 DEBUG : : Looking for writers 2022/04/15 06:30:24 DEBUG : dir: reading active writers 2022/04/15 06:30:24 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:30:24 DEBUG : dir: Looking for writers 2022/04/15 06:30:24 DEBUG : : Looking for writers 2022/04/15 06:30:24 DEBUG : dir: reading active writers 2022/04/15 06:30:24 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:24 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:30:25 DEBUG : dir: Looking for writers 2022/04/15 06:30:25 DEBUG : : Looking for writers 2022/04/15 06:30:25 DEBUG : dir: reading active writers 2022/04/15 06:30:25 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:25 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:26 DEBUG : dir: Looking for writers 2022/04/15 06:30:26 DEBUG : : Looking for writers 2022/04/15 06:30:26 DEBUG : dir: reading active writers 2022/04/15 06:30:26 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:26 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:27 DEBUG : dir: Looking for writers 2022/04/15 06:30:27 DEBUG : : Looking for writers 2022/04/15 06:30:27 DEBUG : dir: reading active writers 2022/04/15 06:30:27 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:27 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:28 DEBUG : dir: Looking for writers 2022/04/15 06:30:28 DEBUG : : Looking for writers 2022/04/15 06:30:28 DEBUG : dir: reading active writers 2022/04/15 06:30:28 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:28 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:29 DEBUG : dir: Looking for writers 2022/04/15 06:30:29 DEBUG : : Looking for writers 2022/04/15 06:30:29 DEBUG : dir: reading active writers 2022/04/15 06:30:29 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:29 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:30 DEBUG : dir: Looking for writers 2022/04/15 06:30:30 DEBUG : : Looking for writers 2022/04/15 06:30:30 DEBUG : dir: reading active writers 2022/04/15 06:30:30 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:30 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:31 DEBUG : dir: Looking for writers 2022/04/15 06:30:31 DEBUG : : Looking for writers 2022/04/15 06:30:31 DEBUG : dir: reading active writers 2022/04/15 06:30:31 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:31 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:32 DEBUG : dir: Looking for writers 2022/04/15 06:30:32 DEBUG : : Looking for writers 2022/04/15 06:30:32 DEBUG : dir: reading active writers 2022/04/15 06:30:32 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:32 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:33 DEBUG : dir: Looking for writers 2022/04/15 06:30:33 DEBUG : : Looking for writers 2022/04/15 06:30:33 DEBUG : dir: reading active writers 2022/04/15 06:30:33 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:33 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:34 DEBUG : dir: Looking for writers 2022/04/15 06:30:34 DEBUG : : Looking for writers 2022/04/15 06:30:34 DEBUG : dir: reading active writers 2022/04/15 06:30:34 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:34 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:34 ERROR : newLeaf: Failed to copy: upload file failed to create session: Try again 2022/04/15 06:30:34 ERROR : newLeaf: vfs cache: failed to upload try #1, will retry in 200ms: vfs cache: failed to transfer file from cache to remote: upload file failed to create session: Try again 2022/04/15 06:30:34 DEBUG : newLeaf: vfs cache: starting upload 2022/04/15 06:30:35 DEBUG : dir: Looking for writers 2022/04/15 06:30:35 DEBUG : : Looking for writers 2022/04/15 06:30:35 DEBUG : dir: reading active writers 2022/04/15 06:30:35 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:35 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:36 DEBUG : dir: Looking for writers 2022/04/15 06:30:36 DEBUG : : Looking for writers 2022/04/15 06:30:36 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:36 DEBUG : dir: reading active writers 2022/04/15 06:30:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:37 DEBUG : dir: Looking for writers 2022/04/15 06:30:37 DEBUG : : Looking for writers 2022/04/15 06:30:37 DEBUG : dir: reading active writers 2022/04/15 06:30:37 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:37 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:37 INFO : newLeaf: Copied (replaced existing) 2022/04/15 06:30:37 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/04/15 06:30:37 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/04/15 06:30:37 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:30:37 INFO : newLeaf: vfs cache: upload succeeded try #2 2022/04/15 06:30:38 DEBUG : dir: Looking for writers 2022/04/15 06:30:38 DEBUG : : Looking for writers 2022/04/15 06:30:38 DEBUG : dir: reading active writers 2022/04/15 06:30:38 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:38 DEBUG : >WaitForWriters: 2022/04/15 06:30:38 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:30:38 DEBUG : dir: Looking for writers 2022/04/15 06:30:38 DEBUG : : Looking for writers 2022/04/15 06:30:38 DEBUG : dir: reading active writers 2022/04/15 06:30:38 DEBUG : newLeaf: reading active writers 2022/04/15 06:30:38 DEBUG : >WaitForWriters: 2022/04/15 06:30:38 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/writes,forceCache=true run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:30:38 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:30:38 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:30:38 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:38 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:38 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:38 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:30:38 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:30:41 DEBUG : dir/file1: Open: flags=O_RDWR|O_CREATE|O_TRUNC 2022/04/15 06:30:41 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:30:41 DEBUG : dir/file1(0xc0026c1400): openPending: 2022/04/15 06:30:41 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/04/15 06:30:41 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:30:41 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:30:41 DEBUG : dir/file1(0xc0026c1400): >openPending: err= 2022/04/15 06:30:41 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/04/15 06:30:41 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:30:41 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:30:41 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:30:41 DEBUG : dir/file1(0xc0026c1400): _writeAt: size=14, off=0 2022/04/15 06:30:41 DEBUG : dir/file1(0xc0026c1400): >_writeAt: n=14, err= 2022/04/15 06:30:41 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/04/15 06:30:41 DEBUG : dir/file1(0xc0026c1400): close: 2022/04/15 06:30:41 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/04/15 06:30:41 DEBUG : dir/file1: vfs cache: setting modification time to 2001-02-03 04:05:06.499999999 +0000 UTC 2022/04/15 06:30:41 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:30:41 DEBUG : dir/file1(0xc0026c1400): >close: err= 2022/04/15 06:30:41 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:30:41 DEBUG : dir: Looking for writers 2022/04/15 06:30:41 DEBUG : file1: reading active writers 2022/04/15 06:30:41 DEBUG : : Looking for writers 2022/04/15 06:30:41 DEBUG : dir: reading active writers 2022/04/15 06:30:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:30:41 DEBUG : dir: Looking for writers 2022/04/15 06:30:41 DEBUG : file1: reading active writers 2022/04/15 06:30:41 DEBUG : : Looking for writers 2022/04/15 06:30:41 DEBUG : dir: reading active writers 2022/04/15 06:30:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:30:41 DEBUG : dir: Looking for writers 2022/04/15 06:30:41 DEBUG : file1: reading active writers 2022/04/15 06:30:41 DEBUG : : Looking for writers 2022/04/15 06:30:41 DEBUG : dir: reading active writers 2022/04/15 06:30:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:30:41 DEBUG : dir: Looking for writers 2022/04/15 06:30:41 DEBUG : file1: reading active writers 2022/04/15 06:30:41 DEBUG : : Looking for writers 2022/04/15 06:30:41 DEBUG : dir: reading active writers 2022/04/15 06:30:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:30:41 DEBUG : dir/file1: vfs cache: starting upload 2022/04/15 06:30:41 DEBUG : dir: Looking for writers 2022/04/15 06:30:41 DEBUG : file1: reading active writers 2022/04/15 06:30:41 DEBUG : : Looking for writers 2022/04/15 06:30:41 DEBUG : dir: reading active writers 2022/04/15 06:30:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:30:41 DEBUG : dir: Looking for writers 2022/04/15 06:30:41 DEBUG : file1: reading active writers 2022/04/15 06:30:41 DEBUG : : Looking for writers 2022/04/15 06:30:41 DEBUG : dir: reading active writers 2022/04/15 06:30:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:30:41 DEBUG : dir: Looking for writers 2022/04/15 06:30:41 DEBUG : file1: reading active writers 2022/04/15 06:30:41 DEBUG : : Looking for writers 2022/04/15 06:30:41 DEBUG : dir: reading active writers 2022/04/15 06:30:41 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:30:42 DEBUG : dir: Looking for writers 2022/04/15 06:30:42 DEBUG : file1: reading active writers 2022/04/15 06:30:42 DEBUG : : Looking for writers 2022/04/15 06:30:42 DEBUG : dir: reading active writers 2022/04/15 06:30:42 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:43 DEBUG : dir: Looking for writers 2022/04/15 06:30:43 DEBUG : file1: reading active writers 2022/04/15 06:30:43 DEBUG : : Looking for writers 2022/04/15 06:30:43 DEBUG : dir: reading active writers 2022/04/15 06:30:43 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:44 DEBUG : dir: Looking for writers 2022/04/15 06:30:44 DEBUG : file1: reading active writers 2022/04/15 06:30:44 DEBUG : : Looking for writers 2022/04/15 06:30:44 DEBUG : dir: reading active writers 2022/04/15 06:30:44 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:30:44 INFO : dir/file1: Copied (replaced existing) 2022/04/15 06:30:44 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/04/15 06:30:44 DEBUG : dir/file1: Not setting pending mod time 2001-02-03 04:05:06.499999999 +0000 UTC as it is already set 2022/04/15 06:30:44 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:30:44 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/04/15 06:30:45 DEBUG : dir: Looking for writers 2022/04/15 06:30:45 DEBUG : file1: reading active writers 2022/04/15 06:30:45 DEBUG : : Looking for writers 2022/04/15 06:30:45 DEBUG : dir: reading active writers 2022/04/15 06:30:45 DEBUG : >WaitForWriters: 2022/04/15 06:30:45 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:30:45 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:30:45 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:30:45 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:30:45 DEBUG : dir/file1(0xc0028d4100): _readAt: size=512, off=0 2022/04/15 06:30:45 DEBUG : dir/file1(0xc0028d4100): openPending: 2022/04/15 06:30:45 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/04/15 06:30:45 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:30:45 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:30:45 DEBUG : dir/file1(0xc0028d4100): >openPending: err= 2022/04/15 06:30:45 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [{Pos:0 Size:14}] - present true 2022/04/15 06:30:45 DEBUG : dir/file1(0xc0028d4100): >_readAt: n=14, err=EOF 2022/04/15 06:30:45 DEBUG : dir/file1(0xc0028d4100): close: 2022/04/15 06:30:45 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:30:44 +0000 UTC 2022/04/15 06:30:45 DEBUG : dir/file1(0xc0028d4100): >close: err= 2022/04/15 06:30:46 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:30:46 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/04/15 06:30:46 DEBUG : newLeaf: Updating file with newLeaf 0xc00112dec0 2022/04/15 06:30:46 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:30: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:293: Sleeping for 7s just to make sure 2022/04/15 06:30:57 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/04/15 06:30:57 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/04/15 06:30:57 DEBUG : dir/file1: Updating file with dir/file1 0xc00112dec0 2022/04/15 06:30:57 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/04/15 06:30:57 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:30:57 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/04/15 06:30:57 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:30:57 DEBUG : dir/file1(0xc000380d40): openPending: 2022/04/15 06:30:57 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/04/15 06:30:57 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:30:57 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:30:57 DEBUG : dir/file1(0xc000380d40): >openPending: err= 2022/04/15 06:30:57 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/04/15 06:30:57 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:30:57 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:30:57 DEBUG : dir/file1(0xc000380d40): _writeAt: size=25, off=0 2022/04/15 06:30:57 DEBUG : dir/file1(0xc000380d40): >_writeAt: n=25, err= 2022/04/15 06:31:03 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:31:03 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/04/15 06:31:03 DEBUG : newLeaf: Updating file with newLeaf 0xc00112dec0 2022/04/15 06:31:03 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:31:03 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:31:03 DEBUG : newLeaf(0xc000380d40): close: 2022/04/15 06:31:03 DEBUG : vfs cache: looking for range={Pos:0 Size:25} in [{Pos:0 Size:25}] - present true 2022/04/15 06:31:03 DEBUG : newLeaf: vfs cache: setting modification time to 2022-04-15 06:30:57.455878396 +0000 UTC m=+133.431715260 2022/04/15 06:31:03 INFO : newLeaf: vfs cache: queuing for upload in 100ms 2022/04/15 06:31:03 DEBUG : newLeaf(0xc000380d40): >close: err= 2022/04/15 06:31:03 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:31:03 DEBUG : dir: Looking for writers 2022/04/15 06:31:03 DEBUG : : Looking for writers 2022/04/15 06:31:03 DEBUG : dir: reading active writers 2022/04/15 06:31:03 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:31:03 DEBUG : dir: Looking for writers 2022/04/15 06:31:03 DEBUG : : Looking for writers 2022/04/15 06:31:03 DEBUG : dir: reading active writers 2022/04/15 06:31:03 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:31:03 DEBUG : dir: Looking for writers 2022/04/15 06:31:03 DEBUG : : Looking for writers 2022/04/15 06:31:03 DEBUG : dir: reading active writers 2022/04/15 06:31:03 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:31:03 DEBUG : dir: Looking for writers 2022/04/15 06:31:03 DEBUG : : Looking for writers 2022/04/15 06:31:03 DEBUG : dir: reading active writers 2022/04/15 06:31:03 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:31:03 DEBUG : newLeaf: vfs cache: starting upload 2022/04/15 06:31:03 DEBUG : dir: Looking for writers 2022/04/15 06:31:03 DEBUG : : Looking for writers 2022/04/15 06:31:03 DEBUG : dir: reading active writers 2022/04/15 06:31:03 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:31:03 DEBUG : dir: Looking for writers 2022/04/15 06:31:03 DEBUG : : Looking for writers 2022/04/15 06:31:03 DEBUG : dir: reading active writers 2022/04/15 06:31:03 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:03 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:31:04 DEBUG : dir: Looking for writers 2022/04/15 06:31:04 DEBUG : : Looking for writers 2022/04/15 06:31:04 DEBUG : dir: reading active writers 2022/04/15 06:31:04 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:31:04 DEBUG : dir: Looking for writers 2022/04/15 06:31:04 DEBUG : : Looking for writers 2022/04/15 06:31:04 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:04 DEBUG : dir: reading active writers 2022/04/15 06:31:04 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:05 DEBUG : dir: Looking for writers 2022/04/15 06:31:05 DEBUG : : Looking for writers 2022/04/15 06:31:05 DEBUG : dir: reading active writers 2022/04/15 06:31:05 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:05 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:06 DEBUG : dir: Looking for writers 2022/04/15 06:31:06 DEBUG : : Looking for writers 2022/04/15 06:31:06 DEBUG : dir: reading active writers 2022/04/15 06:31:06 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:06 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:07 DEBUG : dir: Looking for writers 2022/04/15 06:31:07 DEBUG : : Looking for writers 2022/04/15 06:31:07 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:07 DEBUG : dir: reading active writers 2022/04/15 06:31:07 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:08 DEBUG : dir: Looking for writers 2022/04/15 06:31:08 DEBUG : : Looking for writers 2022/04/15 06:31:08 DEBUG : dir: reading active writers 2022/04/15 06:31:08 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:08 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:09 DEBUG : dir: Looking for writers 2022/04/15 06:31:09 DEBUG : : Looking for writers 2022/04/15 06:31:09 DEBUG : dir: reading active writers 2022/04/15 06:31:09 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:09 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:10 DEBUG : dir: Looking for writers 2022/04/15 06:31:10 DEBUG : : Looking for writers 2022/04/15 06:31:10 DEBUG : dir: reading active writers 2022/04/15 06:31:10 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:10 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:11 DEBUG : dir: Looking for writers 2022/04/15 06:31:11 DEBUG : : Looking for writers 2022/04/15 06:31:11 DEBUG : dir: reading active writers 2022/04/15 06:31:11 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:12 DEBUG : dir: Looking for writers 2022/04/15 06:31:12 DEBUG : : Looking for writers 2022/04/15 06:31:12 DEBUG : dir: reading active writers 2022/04/15 06:31:12 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:13 DEBUG : dir: Looking for writers 2022/04/15 06:31:13 DEBUG : : Looking for writers 2022/04/15 06:31:13 DEBUG : dir: reading active writers 2022/04/15 06:31:13 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:13 DEBUG : Still 0 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:14 INFO : newLeaf: Copied (replaced existing) 2022/04/15 06:31:14 DEBUG : newLeaf: vfs cache: fingerprint now "25" 2022/04/15 06:31:14 DEBUG : newLeaf: vfs cache: writeback object to VFS layer 2022/04/15 06:31:14 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:31:14 INFO : newLeaf: vfs cache: upload succeeded try #1 2022/04/15 06:31:14 DEBUG : dir: Looking for writers 2022/04/15 06:31:14 DEBUG : : Looking for writers 2022/04/15 06:31:14 DEBUG : dir: reading active writers 2022/04/15 06:31:14 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:14 DEBUG : >WaitForWriters: 2022/04/15 06:31:14 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:31:14 DEBUG : dir: Looking for writers 2022/04/15 06:31:14 DEBUG : : Looking for writers 2022/04/15 06:31:14 DEBUG : newLeaf: reading active writers 2022/04/15 06:31:14 DEBUG : dir: reading active writers 2022/04/15 06:31:14 DEBUG : >WaitForWriters: 2022/04/15 06:31:14 DEBUG : vfs cache: cleaner exiting === RUN TestFileRename/full,forceCache=false run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:31:15 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:31:15 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:31:15 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:31:15 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:31:15 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:31:15 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:31:15 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:31:16 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:31:16 DEBUG : dir: Looking for writers 2022/04/15 06:31:16 DEBUG : file1: reading active writers 2022/04/15 06:31:16 DEBUG : : Looking for writers 2022/04/15 06:31:16 DEBUG : dir: reading active writers 2022/04/15 06:31:16 DEBUG : >WaitForWriters: 2022/04/15 06:31:16 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:31:16 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:31:16 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:31:16 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:31:16 DEBUG : dir/file1(0xc00190b9c0): _readAt: size=512, off=0 2022/04/15 06:31:16 DEBUG : dir/file1(0xc00190b9c0): openPending: 2022/04/15 06:31:16 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "" 2022/04/15 06:31:16 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:31:16 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:31:16 DEBUG : dir/file1(0xc00190b9c0): >openPending: err= 2022/04/15 06:31:16 DEBUG : vfs cache: looking for range={Pos:0 Size:14} in [] - present false 2022/04/15 06:31:16 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/04/15 06:31:16 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/04/15 06:31:16 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:31:17 DEBUG : dir/file1(0xc00190b9c0): >_readAt: n=14, err=EOF 2022/04/15 06:31:17 DEBUG : dir/file1(0xc00190b9c0): close: 2022/04/15 06:31:17 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:31:15 +0000 UTC 2022/04/15 06:31:17 DEBUG : dir/file1(0xc00190b9c0): >close: err= 2022/04/15 06:31:19 INFO : dir/file1: Moved (server-side) to: newLeaf 2022/04/15 06:31:19 INFO : dir/file1: vfs cache: renamed in cache to "newLeaf" 2022/04/15 06:31:19 DEBUG : newLeaf: Updating file with newLeaf 0xc001d9ca80 2022/04/15 06:31:19 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:31:19 DEBUG : : Added virtual directory entry vAddFile: "newLeaf" 2022/04/15 06:31:19 INFO : newLeaf: Moved (server-side) to: dir/file1 2022/04/15 06:31:19 INFO : newLeaf: vfs cache: renamed in cache to "dir/file1" 2022/04/15 06:31:19 DEBUG : dir/file1: Updating file with dir/file1 0xc001d9ca80 2022/04/15 06:31:19 DEBUG : : Added virtual directory entry vDel: "newLeaf" 2022/04/15 06:31:19 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" 2022/04/15 06:31:26 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/04/15 06:31:26 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:31:26 DEBUG : dir/file1(0xc001b31380): openPending: 2022/04/15 06:31:26 DEBUG : dir/file1: vfs cache: checking remote fingerprint "14" against cached fingerprint "14" 2022/04/15 06:31:26 DEBUG : dir/file1: vfs cache: truncate to size=14 2022/04/15 06:31:26 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:31:26 DEBUG : dir/file1(0xc001b31380): >openPending: err= 2022/04/15 06:31:26 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/04/15 06:31:26 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:31:26 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:31:26 DEBUG : dir/file1(0xc001b31380): _writeAt: size=25, off=0 2022/04/15 06:31:26 DEBUG : dir/file1(0xc001b31380): >_writeAt: n=25, err= 2022/04/15 06:31:37 ERROR : dir/file1: Couldn't move: server-side move failed: Try again 2022/04/15 06:31:37 ERROR : newLeaf: File.Rename error: server-side move failed: Try again 2022/04/15 06:31:37 ERROR : dir/file1: Dir.Rename error: server-side move failed: Try again file_test.go:383: Error Trace: file_test.go:383 file_test.go:418 Error: Received unexpected error: server-side move failed: Try again Test: TestFileRename/full,forceCache=false 2022/04/15 06:31:37 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:31:37 DEBUG : dir: Looking for writers 2022/04/15 06:31:37 DEBUG : file1: reading active writers 2022/04/15 06:31:37 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:37 DEBUG : : Looking for writers 2022/04/15 06:31:37 DEBUG : dir: reading active writers 2022/04/15 06:31:37 DEBUG : Still 1 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:31:37 DEBUG : dir: Looking for writers 2022/04/15 06:31:37 DEBUG : file1: reading active writers 2022/04/15 06:31:37 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:37 DEBUG : : Looking for writers 2022/04/15 06:31:37 DEBUG : dir: reading active writers 2022/04/15 06:31:37 DEBUG : Still 1 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:31:37 DEBUG : dir: Looking for writers 2022/04/15 06:31:37 DEBUG : file1: reading active writers 2022/04/15 06:31:37 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:37 DEBUG : : Looking for writers 2022/04/15 06:31:37 DEBUG : dir: reading active writers 2022/04/15 06:31:37 DEBUG : Still 1 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:31:37 DEBUG : dir: Looking for writers 2022/04/15 06:31:37 DEBUG : file1: reading active writers 2022/04/15 06:31:37 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:37 DEBUG : : Looking for writers 2022/04/15 06:31:37 DEBUG : dir: reading active writers 2022/04/15 06:31:37 DEBUG : Still 1 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:31:37 DEBUG : dir: Looking for writers 2022/04/15 06:31:37 DEBUG : file1: reading active writers 2022/04/15 06:31:37 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:37 DEBUG : : Looking for writers 2022/04/15 06:31:37 DEBUG : dir: reading active writers 2022/04/15 06:31:37 DEBUG : Still 1 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:31:37 DEBUG : dir: Looking for writers 2022/04/15 06:31:37 DEBUG : file1: reading active writers 2022/04/15 06:31:37 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:37 DEBUG : : Looking for writers 2022/04/15 06:31:37 DEBUG : dir: reading active writers 2022/04/15 06:31:37 DEBUG : Still 1 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:31:38 DEBUG : dir: Looking for writers 2022/04/15 06:31:38 DEBUG : file1: reading active writers 2022/04/15 06:31:38 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:38 DEBUG : : Looking for writers 2022/04/15 06:31:38 DEBUG : dir: reading active writers 2022/04/15 06:31:38 DEBUG : Still 1 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:31:38 DEBUG : dir: Looking for writers 2022/04/15 06:31:38 DEBUG : file1: reading active writers 2022/04/15 06:31:38 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:38 DEBUG : : Looking for writers 2022/04/15 06:31:38 DEBUG : dir: reading active writers 2022/04/15 06:31:38 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:39 DEBUG : dir: Looking for writers 2022/04/15 06:31:39 DEBUG : file1: reading active writers 2022/04/15 06:31:39 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:39 DEBUG : : Looking for writers 2022/04/15 06:31:39 DEBUG : dir: reading active writers 2022/04/15 06:31:39 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:40 DEBUG : dir: Looking for writers 2022/04/15 06:31:40 DEBUG : file1: reading active writers 2022/04/15 06:31:40 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:40 DEBUG : : Looking for writers 2022/04/15 06:31:40 DEBUG : dir: reading active writers 2022/04/15 06:31:40 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:41 DEBUG : dir: Looking for writers 2022/04/15 06:31:41 DEBUG : file1: reading active writers 2022/04/15 06:31:41 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:41 DEBUG : : Looking for writers 2022/04/15 06:31:41 DEBUG : dir: reading active writers 2022/04/15 06:31:41 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:42 DEBUG : dir: Looking for writers 2022/04/15 06:31:42 DEBUG : file1: reading active writers 2022/04/15 06:31:42 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:42 DEBUG : : Looking for writers 2022/04/15 06:31:42 DEBUG : dir: reading active writers 2022/04/15 06:31:42 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:43 DEBUG : dir: Looking for writers 2022/04/15 06:31:43 DEBUG : file1: reading active writers 2022/04/15 06:31:43 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:43 DEBUG : : Looking for writers 2022/04/15 06:31:43 DEBUG : dir: reading active writers 2022/04/15 06:31:43 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:44 DEBUG : dir: Looking for writers 2022/04/15 06:31:44 DEBUG : file1: reading active writers 2022/04/15 06:31:44 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:44 DEBUG : : Looking for writers 2022/04/15 06:31:44 DEBUG : dir: reading active writers 2022/04/15 06:31:44 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:45 DEBUG : dir: Looking for writers 2022/04/15 06:31:45 DEBUG : file1: reading active writers 2022/04/15 06:31:45 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:45 DEBUG : : Looking for writers 2022/04/15 06:31:45 DEBUG : dir: reading active writers 2022/04/15 06:31:45 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:46 DEBUG : dir: Looking for writers 2022/04/15 06:31:46 DEBUG : file1: reading active writers 2022/04/15 06:31:46 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:46 DEBUG : : Looking for writers 2022/04/15 06:31:46 DEBUG : dir: reading active writers 2022/04/15 06:31:46 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:47 DEBUG : dir: Looking for writers 2022/04/15 06:31:47 DEBUG : file1: reading active writers 2022/04/15 06:31:47 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:47 DEBUG : : Looking for writers 2022/04/15 06:31:47 DEBUG : dir: reading active writers 2022/04/15 06:31:47 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:48 DEBUG : dir: Looking for writers 2022/04/15 06:31:48 DEBUG : file1: reading active writers 2022/04/15 06:31:48 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:48 DEBUG : : Looking for writers 2022/04/15 06:31:48 DEBUG : dir: reading active writers 2022/04/15 06:31:48 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:49 DEBUG : dir: Looking for writers 2022/04/15 06:31:49 DEBUG : file1: reading active writers 2022/04/15 06:31:49 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:49 DEBUG : : Looking for writers 2022/04/15 06:31:49 DEBUG : dir: reading active writers 2022/04/15 06:31:49 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:50 DEBUG : dir: Looking for writers 2022/04/15 06:31:50 DEBUG : file1: reading active writers 2022/04/15 06:31:50 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:50 DEBUG : : Looking for writers 2022/04/15 06:31:50 DEBUG : dir: reading active writers 2022/04/15 06:31:50 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:51 DEBUG : dir: Looking for writers 2022/04/15 06:31:51 DEBUG : file1: reading active writers 2022/04/15 06:31:51 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:51 DEBUG : : Looking for writers 2022/04/15 06:31:51 DEBUG : dir: reading active writers 2022/04/15 06:31:51 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:52 DEBUG : dir: Looking for writers 2022/04/15 06:31:52 DEBUG : file1: reading active writers 2022/04/15 06:31:52 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:52 DEBUG : : Looking for writers 2022/04/15 06:31:52 DEBUG : dir: reading active writers 2022/04/15 06:31:52 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:53 DEBUG : dir: Looking for writers 2022/04/15 06:31:53 DEBUG : file1: reading active writers 2022/04/15 06:31:53 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:53 DEBUG : : Looking for writers 2022/04/15 06:31:53 DEBUG : dir: reading active writers 2022/04/15 06:31:53 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:54 DEBUG : dir: Looking for writers 2022/04/15 06:31:54 DEBUG : file1: reading active writers 2022/04/15 06:31:54 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:54 DEBUG : : Looking for writers 2022/04/15 06:31:54 DEBUG : dir: reading active writers 2022/04/15 06:31:54 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:55 DEBUG : dir: Looking for writers 2022/04/15 06:31:55 DEBUG : file1: reading active writers 2022/04/15 06:31:55 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:55 DEBUG : : Looking for writers 2022/04/15 06:31:55 DEBUG : dir: reading active writers 2022/04/15 06:31:55 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:56 DEBUG : dir: Looking for writers 2022/04/15 06:31:56 DEBUG : file1: reading active writers 2022/04/15 06:31:56 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:56 DEBUG : : Looking for writers 2022/04/15 06:31:56 DEBUG : dir: reading active writers 2022/04/15 06:31:56 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:57 DEBUG : dir: Looking for writers 2022/04/15 06:31:57 DEBUG : file1: reading active writers 2022/04/15 06:31:57 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:57 DEBUG : : Looking for writers 2022/04/15 06:31:57 DEBUG : dir: reading active writers 2022/04/15 06:31:57 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:58 DEBUG : dir: Looking for writers 2022/04/15 06:31:58 DEBUG : file1: reading active writers 2022/04/15 06:31:58 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:58 DEBUG : : Looking for writers 2022/04/15 06:31:58 DEBUG : dir: reading active writers 2022/04/15 06:31:58 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:31:59 DEBUG : dir: Looking for writers 2022/04/15 06:31:59 DEBUG : file1: reading active writers 2022/04/15 06:31:59 DEBUG : newLeaf: active writers 1 2022/04/15 06:31:59 DEBUG : : Looking for writers 2022/04/15 06:31:59 DEBUG : dir: reading active writers 2022/04/15 06:31:59 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:00 DEBUG : dir: Looking for writers 2022/04/15 06:32:00 DEBUG : file1: reading active writers 2022/04/15 06:32:00 DEBUG : newLeaf: active writers 1 2022/04/15 06:32:00 DEBUG : : Looking for writers 2022/04/15 06:32:00 DEBUG : dir: reading active writers 2022/04/15 06:32:00 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:01 DEBUG : dir: Looking for writers 2022/04/15 06:32:01 DEBUG : file1: reading active writers 2022/04/15 06:32:01 DEBUG : newLeaf: active writers 1 2022/04/15 06:32:01 DEBUG : : Looking for writers 2022/04/15 06:32:01 DEBUG : dir: reading active writers 2022/04/15 06:32:01 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:02 DEBUG : dir: Looking for writers 2022/04/15 06:32:02 DEBUG : file1: reading active writers 2022/04/15 06:32:02 DEBUG : newLeaf: active writers 1 2022/04/15 06:32:02 DEBUG : : Looking for writers 2022/04/15 06:32:02 DEBUG : dir: reading active writers 2022/04/15 06:32:02 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:03 DEBUG : dir: Looking for writers 2022/04/15 06:32:03 DEBUG : file1: reading active writers 2022/04/15 06:32:03 DEBUG : newLeaf: active writers 1 2022/04/15 06:32:03 DEBUG : : Looking for writers 2022/04/15 06:32:03 DEBUG : dir: reading active writers 2022/04/15 06:32:03 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:04 DEBUG : dir: Looking for writers 2022/04/15 06:32:04 DEBUG : file1: reading active writers 2022/04/15 06:32:04 DEBUG : newLeaf: active writers 1 2022/04/15 06:32:04 DEBUG : : Looking for writers 2022/04/15 06:32:04 DEBUG : dir: reading active writers 2022/04/15 06:32:04 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:05 DEBUG : dir: Looking for writers 2022/04/15 06:32:05 DEBUG : file1: reading active writers 2022/04/15 06:32:05 DEBUG : newLeaf: active writers 1 2022/04/15 06:32:05 DEBUG : : Looking for writers 2022/04/15 06:32:05 DEBUG : dir: reading active writers 2022/04/15 06:32:05 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:06 DEBUG : dir: Looking for writers 2022/04/15 06:32:06 DEBUG : file1: reading active writers 2022/04/15 06:32:06 DEBUG : newLeaf: active writers 1 2022/04/15 06:32:06 DEBUG : : Looking for writers 2022/04/15 06:32:06 DEBUG : dir: reading active writers 2022/04/15 06:32:06 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:32:07 ERROR : Exiting even though 1 writers active and 1 cache items in use after 30s Cache{ "dir/file1": &{c:0xc001d9c6c0 mu:{state:0 sema:0} cond:0xc00190b980 name:dir/file1 opens:1 downloaders:0xc000562fd0 o:0xc00067f8e0 fd:0xc000748820 modified:true info:{ModTime:{wall:13875135458860314572 ext:162710605964 loc:0x2b713a0} ATime:{wall:13875135458860314572 ext:162710605964 loc:0x2b713a0} Size:25 Rs:[{Pos:0 Size:25}] Fingerprint:14 Dirty:true} writeBackID:0 pendingAccesses:0 beingReset:false}, } 2022/04/15 06:32:07 DEBUG : >WaitForWriters: 2022/04/15 06:32:07 DEBUG : vfs cache: cleaner exiting run.go:126: removing file "dir/file1" failed - try 1/3: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 2/3: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 3/3: Remove object failed: Try again run.go:129: removing file "dir/file1" failed: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 1/3: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 2/3: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 3/3: Remove object failed: Try again run.go:129: removing file "dir/file1" failed: Remove object failed: Try again run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:756 file_test.go:383 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: listing wrong, want got dir/file1 (14), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:756 file_test.go:383 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:756 file_test.go:383 file_test.go:418 Error: Should be true Test: TestFileRename/full,forceCache=false Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:756 file_test.go:383 file_test.go:418 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestFileRename/full,forceCache=false Messages: directories --- FAIL: TestFileRename (275.19s) --- FAIL: TestFileRename/off,forceCache=false (22.66s) --- FAIL: TestFileRename/minimal,forceCache=false (19.40s) --- FAIL: TestFileRename/minimal,forceCache=true (26.63s) --- FAIL: TestFileRename/writes,forceCache=false (37.33s) --- PASS: TestFileRename/writes,forceCache=true (36.34s) --- FAIL: TestFileRename/full,forceCache=false (132.83s) === RUN TestRcGetVFS run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:33:27 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:33:27 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:33:27 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:33:27 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:33:27 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:33:27 DEBUG : : Looking for writers 2022/04/15 06:33:27 DEBUG : >WaitForWriters: run.go:126: removing file "dir/file1" failed - try 1/3: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 2/3: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 3/3: Remove object failed: Try again run.go:129: removing file "dir/file1" failed: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 1/3: Remove object failed: Try again run.go:126: removing file "dir/file1" failed - try 2/3: Remove object failed: Try again run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 rc_test.go:65 Error: Should be true Test: TestRcGetVFS Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 rc_test.go:65 Error: Should be true Test: TestRcGetVFS Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 rc_test.go:65 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRcGetVFS Messages: directories --- FAIL: TestRcGetVFS (79.01s) === RUN TestReadFileHandleMethods run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:34:46 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:34:46 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 read_test.go:19 read_test.go:40 Error: Should be true Test: TestReadFileHandleMethods Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:40 Error: Not equal: expected: 16 actual : 14 Test: TestReadFileHandleMethods Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:40 Error: Should be true Test: TestReadFileHandleMethods Messages: Unexpected file "dir/file1" 2022/04/15 06:34:54 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:34:54 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:34:54 DEBUG : dir/file1: >Open: fd=dir/file1 (r), err= 2022/04/15 06:34:54 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (r), err= 2022/04/15 06:34:54 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:34:54 DEBUG : dir/file1: ChunkedReader.Read at 0 length 1 chunkOffset 0 chunkSize 134217728 2022/04/15 06:34:55 DEBUG : dir/file1: ChunkedReader.Read at 1 length 256 chunkOffset 0 chunkSize 134217728 2022/04/15 06:34:55 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:34:55 DEBUG : dir: Looking for writers 2022/04/15 06:34:55 DEBUG : file1: reading active writers 2022/04/15 06:34:55 DEBUG : : Looking for writers 2022/04/15 06:34:55 DEBUG : dir: reading active writers 2022/04/15 06:34:55 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_test.go:80 Error: Should be true Test: TestReadFileHandleMethods Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:80 Error: Should be true Test: TestReadFileHandleMethods Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:80 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestReadFileHandleMethods Messages: directories --- FAIL: TestReadFileHandleMethods (18.45s) === RUN TestReadFileHandleSeek run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:35:05 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:35:05 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 read_test.go:19 read_test.go:83 Error: Should be true Test: TestReadFileHandleSeek Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:83 Error: Not equal: expected: 16 actual : 14 Test: TestReadFileHandleSeek Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:83 Error: Should be true Test: TestReadFileHandleSeek Messages: Unexpected file "dir/file1" 2022/04/15 06:35:12 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:35:12 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:35:12 DEBUG : dir/file1: >Open: fd=dir/file1 (r), err= 2022/04/15 06:35:12 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (r), err= 2022/04/15 06:35:12 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:35:12 DEBUG : dir/file1: ChunkedReader.Read at 0 length 1 chunkOffset 0 chunkSize 134217728 2022/04/15 06:35:13 DEBUG : dir/file1: waiting for in-sequence read to 5 for 20ms 2022/04/15 06:35:13 DEBUG : dir/file1: aborting in-sequence read wait, off=5 2022/04/15 06:35:13 DEBUG : dir/file1: failed to wait for in-sequence read to 5 2022/04/15 06:35:13 DEBUG : dir/file1: ReadFileHandle.seek from 1 to 5 (fs.RangeSeeker) 2022/04/15 06:35:13 DEBUG : dir/file1: ChunkedReader.RangeSeek from 1 to 5 length -1 2022/04/15 06:35:13 DEBUG : dir/file1: ChunkedReader.Read at -1 length 1 chunkOffset 5 chunkSize 134217728 2022/04/15 06:35:13 DEBUG : dir/file1: ChunkedReader.openRange at 5 length 134217728 2022/04/15 06:35:13 DEBUG : dir/file1: ReadFileHandle.seek from 6 to 3 (fs.RangeSeeker) 2022/04/15 06:35:13 DEBUG : dir/file1: ChunkedReader.RangeSeek from 6 to 3 length -1 2022/04/15 06:35:13 DEBUG : dir/file1: ChunkedReader.Read at -1 length 1 chunkOffset 3 chunkSize 134217728 2022/04/15 06:35:13 DEBUG : dir/file1: ChunkedReader.openRange at 3 length 134217728 2022/04/15 06:35:14 DEBUG : dir/file1: ReadFileHandle.seek from 4 to 13 (fs.RangeSeeker) 2022/04/15 06:35:14 DEBUG : dir/file1: ChunkedReader.RangeSeek from 4 to 13 length -1 2022/04/15 06:35:14 DEBUG : dir/file1: ChunkedReader.Read at -1 length 1 chunkOffset 13 chunkSize 134217728 2022/04/15 06:35:14 DEBUG : dir/file1: ChunkedReader.openRange at 13 length 134217728 2022/04/15 06:35:15 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:35:15 DEBUG : dir: Looking for writers 2022/04/15 06:35:15 DEBUG : file1: reading active writers 2022/04/15 06:35:15 DEBUG : : Looking for writers 2022/04/15 06:35:15 DEBUG : dir: reading active writers 2022/04/15 06:35:15 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_test.go:123 Error: Should be true Test: TestReadFileHandleSeek Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:123 Error: Should be true Test: TestReadFileHandleSeek Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:123 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestReadFileHandleSeek Messages: directories --- FAIL: TestReadFileHandleSeek (19.91s) === RUN TestReadFileHandleReadAt run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:35:25 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:35:25 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 read_test.go:19 read_test.go:126 Error: Should be true Test: TestReadFileHandleReadAt Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:126 Error: Not equal: expected: 16 actual : 14 Test: TestReadFileHandleReadAt Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:126 Error: Should be true Test: TestReadFileHandleReadAt Messages: Unexpected file "dir/file1" 2022/04/15 06:35:33 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:35:33 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:35:33 DEBUG : dir/file1: >Open: fd=dir/file1 (r), err= 2022/04/15 06:35:33 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (r), err= 2022/04/15 06:35:33 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:35:33 DEBUG : dir/file1: ChunkedReader.Read at 0 length 1 chunkOffset 0 chunkSize 134217728 2022/04/15 06:35:34 DEBUG : dir/file1: waiting for in-sequence read to 5 for 20ms 2022/04/15 06:35:34 DEBUG : dir/file1: aborting in-sequence read wait, off=5 2022/04/15 06:35:34 DEBUG : dir/file1: failed to wait for in-sequence read to 5 2022/04/15 06:35:34 DEBUG : dir/file1: ReadFileHandle.seek from 1 to 5 (fs.RangeSeeker) 2022/04/15 06:35:34 DEBUG : dir/file1: ChunkedReader.RangeSeek from 1 to 5 length -1 2022/04/15 06:35:34 DEBUG : dir/file1: ChunkedReader.Read at -1 length 1 chunkOffset 5 chunkSize 134217728 2022/04/15 06:35:34 DEBUG : dir/file1: ChunkedReader.openRange at 5 length 134217728 2022/04/15 06:35:34 DEBUG : dir/file1: ReadFileHandle.seek from 6 to 1 (fs.RangeSeeker) 2022/04/15 06:35:34 DEBUG : dir/file1: ChunkedReader.RangeSeek from 6 to 1 length -1 2022/04/15 06:35:34 DEBUG : dir/file1: ChunkedReader.Read at -1 length 1 chunkOffset 1 chunkSize 134217728 2022/04/15 06:35:34 DEBUG : dir/file1: ChunkedReader.openRange at 1 length 134217728 2022/04/15 06:35:35 DEBUG : dir/file1: waiting for in-sequence read to 10 for 20ms 2022/04/15 06:35:35 DEBUG : dir/file1: aborting in-sequence read wait, off=10 2022/04/15 06:35:35 DEBUG : dir/file1: failed to wait for in-sequence read to 10 2022/04/15 06:35:35 DEBUG : dir/file1: ReadFileHandle.seek from 2 to 10 (fs.RangeSeeker) 2022/04/15 06:35:35 DEBUG : dir/file1: ChunkedReader.RangeSeek from 2 to 10 length -1 2022/04/15 06:35:35 DEBUG : dir/file1: ChunkedReader.Read at -1 length 6 chunkOffset 10 chunkSize 134217728 2022/04/15 06:35:35 DEBUG : dir/file1: ChunkedReader.openRange at 10 length 134217728 2022/04/15 06:35:36 DEBUG : dir/file1: ReadFileHandle.seek from 16 to 10 (fs.RangeSeeker) 2022/04/15 06:35:36 DEBUG : dir/file1: ChunkedReader.RangeSeek from 16 to 10 length -1 2022/04/15 06:35:36 DEBUG : dir/file1: ChunkedReader.Read at -1 length 256 chunkOffset 10 chunkSize 134217728 2022/04/15 06:35:36 DEBUG : dir/file1: ChunkedReader.openRange at 10 length 134217728 2022/04/15 06:35:37 DEBUG : dir/file1: waiting for in-sequence read to 100 for 20ms 2022/04/15 06:35:37 DEBUG : dir/file1: aborting in-sequence read wait, off=100 2022/04/15 06:35:37 DEBUG : dir/file1: failed to wait for in-sequence read to 100 2022/04/15 06:35:37 DEBUG : dir/file1: ReadFileHandle.Read attempt to read beyond end of file: 100 > 16 2022/04/15 06:35:37 DEBUG : dir/file1: waiting for in-sequence read to 100 for 20ms 2022/04/15 06:35:37 DEBUG : dir/file1: aborting in-sequence read wait, off=100 2022/04/15 06:35:37 DEBUG : dir/file1: failed to wait for in-sequence read to 100 2022/04/15 06:35:37 ERROR : dir/file1: ReadFileHandle.Read error: Bad file descriptor 2022/04/15 06:35:37 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:35:37 DEBUG : dir: Looking for writers 2022/04/15 06:35:37 DEBUG : file1: reading active writers 2022/04/15 06:35:37 DEBUG : : Looking for writers 2022/04/15 06:35:37 DEBUG : dir: reading active writers 2022/04/15 06:35:37 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_test.go:179 Error: Should be true Test: TestReadFileHandleReadAt Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:179 Error: Should be true Test: TestReadFileHandleReadAt Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:179 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestReadFileHandleReadAt Messages: directories --- FAIL: TestReadFileHandleReadAt (21.98s) === RUN TestReadFileHandleFlush run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:35:47 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:35:47 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 read_test.go:19 read_test.go:182 Error: Should be true Test: TestReadFileHandleFlush Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:182 Error: Not equal: expected: 16 actual : 14 Test: TestReadFileHandleFlush Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:182 Error: Should be true Test: TestReadFileHandleFlush Messages: Unexpected file "dir/file1" 2022/04/15 06:35:54 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:35:54 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:35:54 DEBUG : dir/file1: >Open: fd=dir/file1 (r), err= 2022/04/15 06:35:54 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (r), err= 2022/04/15 06:35:54 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:35:54 DEBUG : dir/file1: ChunkedReader.Read at 0 length 256 chunkOffset 0 chunkSize 134217728 2022/04/15 06:35:55 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:35:55 DEBUG : dir: Looking for writers 2022/04/15 06:35:55 DEBUG : file1: reading active writers 2022/04/15 06:35:55 DEBUG : : Looking for writers 2022/04/15 06:35:55 DEBUG : dir: reading active writers 2022/04/15 06:35:55 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_test.go:208 Error: Should be true Test: TestReadFileHandleFlush Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:208 Error: Should be true Test: TestReadFileHandleFlush Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:208 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestReadFileHandleFlush Messages: directories --- FAIL: TestReadFileHandleFlush (17.95s) === RUN TestReadFileHandleRelease run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:36:05 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:36:05 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 read_test.go:19 read_test.go:211 Error: Should be true Test: TestReadFileHandleRelease Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:211 Error: Not equal: expected: 16 actual : 14 Test: TestReadFileHandleRelease Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_test.go:19 read_test.go:211 Error: Should be true Test: TestReadFileHandleRelease Messages: Unexpected file "dir/file1" 2022/04/15 06:36:12 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:36:12 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:36:12 DEBUG : dir/file1: >Open: fd=dir/file1 (r), err= 2022/04/15 06:36:12 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (r), err= 2022/04/15 06:36:12 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:36:12 DEBUG : dir/file1: ChunkedReader.Read at 0 length 256 chunkOffset 0 chunkSize 134217728 2022/04/15 06:36:13 DEBUG : dir/file1: ReadFileHandle.Release closing 2022/04/15 06:36:13 DEBUG : dir/file1: ReadFileHandle.Release nothing to do 2022/04/15 06:36:13 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:36:13 DEBUG : dir: Looking for writers 2022/04/15 06:36:13 DEBUG : file1: reading active writers 2022/04/15 06:36:13 DEBUG : : Looking for writers 2022/04/15 06:36:13 DEBUG : dir: reading active writers 2022/04/15 06:36:13 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_test.go:234 Error: Should be true Test: TestReadFileHandleRelease Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:234 Error: Should be true Test: TestReadFileHandleRelease Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_test.go:234 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestReadFileHandleRelease Messages: directories --- FAIL: TestReadFileHandleRelease (18.23s) === RUN TestRWFileHandleMethodsRead run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:36:23 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:36:23 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:36:23 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:23 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:23 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:23 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:23 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 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 read_write_test.go:41 read_write_test.go:54 read_write_test.go:73 Error: Should be true Test: TestRWFileHandleMethodsRead Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:73 Error: Not equal: expected: 16 actual : 14 Test: TestRWFileHandleMethodsRead Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:73 Error: Should be true Test: TestRWFileHandleMethodsRead Messages: Unexpected file "dir/file1" 2022/04/15 06:36:30 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:36:30 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:36:30 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:36:30 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:36:30 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:36:30 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2022/04/15 06:36:30 DEBUG : dir/file1(0xc000381280): _readAt: size=1, off=0 2022/04/15 06:36:30 DEBUG : dir/file1(0xc000381280): openPending: 2022/04/15 06:36:30 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2022/04/15 06:36:30 DEBUG : dir/file1: vfs cache: truncate to size=16 2022/04/15 06:36:30 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:36:30 DEBUG : dir/file1(0xc000381280): >openPending: err= 2022/04/15 06:36:30 DEBUG : vfs cache: looking for range={Pos:0 Size:1} in [] - present false 2022/04/15 06:36:30 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/04/15 06:36:30 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/04/15 06:36:30 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): >_readAt: n=1, err= 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): _readAt: size=256, off=1 2022/04/15 06:36:31 DEBUG : vfs cache: looking for range={Pos:1 Size:15} in [{Pos:0 Size:16}] - present true 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): >_readAt: n=15, err=EOF 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): _readAt: size=16, off=16 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): >_readAt: n=0, err=EOF 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): close: 2022/04/15 06:36:31 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:36:23 +0000 UTC 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): >close: err= 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): close: 2022/04/15 06:36:31 DEBUG : dir/file1(0xc000381280): >close: err=file already closed 2022/04/15 06:36:31 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:36:31 DEBUG : dir: Looking for writers 2022/04/15 06:36:31 DEBUG : file1: reading active writers 2022/04/15 06:36:31 DEBUG : : Looking for writers 2022/04/15 06:36:31 DEBUG : dir: reading active writers 2022/04/15 06:36:31 DEBUG : >WaitForWriters: 2022/04/15 06:36:31 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:117 Error: Should be true Test: TestRWFileHandleMethodsRead Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:117 Error: Should be true Test: TestRWFileHandleMethodsRead Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:117 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleMethodsRead Messages: directories --- FAIL: TestRWFileHandleMethodsRead (18.14s) === RUN TestRWFileHandleSeek run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:36:41 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:36:41 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:36:41 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:41 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:41 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:41 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:41 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 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 read_write_test.go:41 read_write_test.go:54 read_write_test.go:120 Error: Should be true Test: TestRWFileHandleSeek Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:120 Error: Not equal: expected: 16 actual : 14 Test: TestRWFileHandleSeek Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:120 Error: Should be true Test: TestRWFileHandleSeek Messages: Unexpected file "dir/file1" 2022/04/15 06:36:48 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:36:48 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:36:48 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:36:48 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:36:48 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:36:48 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2022/04/15 06:36:48 DEBUG : dir/file1(0xc002115a40): _readAt: size=1, off=0 2022/04/15 06:36:48 DEBUG : dir/file1(0xc002115a40): openPending: 2022/04/15 06:36:48 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2022/04/15 06:36:48 DEBUG : dir/file1: vfs cache: truncate to size=16 2022/04/15 06:36:48 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:36:48 DEBUG : dir/file1(0xc002115a40): >openPending: err= 2022/04/15 06:36:48 DEBUG : vfs cache: looking for range={Pos:0 Size:1} in [] - present false 2022/04/15 06:36:48 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/04/15 06:36:48 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/04/15 06:36:48 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): >_readAt: n=1, err= 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): _readAt: size=1, off=5 2022/04/15 06:36:49 DEBUG : vfs cache: looking for range={Pos:5 Size:1} in [{Pos:0 Size:16}] - present true 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): >_readAt: n=1, err= 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): _readAt: size=1, off=3 2022/04/15 06:36:49 DEBUG : vfs cache: looking for range={Pos:3 Size:1} in [{Pos:0 Size:16}] - present true 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): >_readAt: n=1, err= 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): _readAt: size=1, off=13 2022/04/15 06:36:49 DEBUG : vfs cache: looking for range={Pos:13 Size:1} in [{Pos:0 Size:16}] - present true 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): >_readAt: n=1, err= 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): _readAt: size=16, off=100 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): >_readAt: n=0, err=EOF 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): close: 2022/04/15 06:36:49 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:36:41 +0000 UTC 2022/04/15 06:36:49 DEBUG : dir/file1(0xc002115a40): >close: err= 2022/04/15 06:36:49 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:36:49 DEBUG : dir: Looking for writers 2022/04/15 06:36:49 DEBUG : file1: reading active writers 2022/04/15 06:36:49 DEBUG : : Looking for writers 2022/04/15 06:36:49 DEBUG : dir: reading active writers 2022/04/15 06:36:49 DEBUG : >WaitForWriters: 2022/04/15 06:36:49 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:167 Error: Should be true Test: TestRWFileHandleSeek Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:167 Error: Should be true Test: TestRWFileHandleSeek Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:167 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleSeek Messages: directories --- FAIL: TestRWFileHandleSeek (17.70s) === RUN TestRWFileHandleReadAt run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:36:59 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:36:59 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:36:59 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:59 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:59 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:59 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:36:59 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 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 read_write_test.go:41 read_write_test.go:54 read_write_test.go:170 Error: Should be true Test: TestRWFileHandleReadAt Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:170 Error: Not equal: expected: 16 actual : 14 Test: TestRWFileHandleReadAt Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:170 Error: Should be true Test: TestRWFileHandleReadAt Messages: Unexpected file "dir/file1" 2022/04/15 06:37:06 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:37:06 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:37:06 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:37:06 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:37:06 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:37:06 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2022/04/15 06:37:06 DEBUG : dir/file1(0xc002115900): _readAt: size=1, off=0 2022/04/15 06:37:06 DEBUG : dir/file1(0xc002115900): openPending: 2022/04/15 06:37:06 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2022/04/15 06:37:06 DEBUG : dir/file1: vfs cache: truncate to size=16 2022/04/15 06:37:06 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:37:06 DEBUG : dir/file1(0xc002115900): >openPending: err= 2022/04/15 06:37:06 DEBUG : vfs cache: looking for range={Pos:0 Size:1} in [] - present false 2022/04/15 06:37:06 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/04/15 06:37:06 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/04/15 06:37:06 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >_readAt: n=1, err= 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): _readAt: size=1, off=5 2022/04/15 06:37:07 DEBUG : vfs cache: looking for range={Pos:5 Size:1} in [{Pos:0 Size:16}] - present true 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >_readAt: n=1, err= 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): _readAt: size=1, off=1 2022/04/15 06:37:07 DEBUG : vfs cache: looking for range={Pos:1 Size:1} in [{Pos:0 Size:16}] - present true 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >_readAt: n=1, err= 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): _readAt: size=6, off=10 2022/04/15 06:37:07 DEBUG : vfs cache: looking for range={Pos:10 Size:6} in [{Pos:0 Size:16}] - present true 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >_readAt: n=6, err= 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): _readAt: size=256, off=10 2022/04/15 06:37:07 DEBUG : vfs cache: looking for range={Pos:10 Size:6} in [{Pos:0 Size:16}] - present true 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >_readAt: n=6, err=EOF 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): _readAt: size=256, off=100 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >_readAt: n=0, err=EOF 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): close: 2022/04/15 06:37:07 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:36:59 +0000 UTC 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >close: err= 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): _readAt: size=256, off=100 2022/04/15 06:37:07 DEBUG : dir/file1(0xc002115900): >_readAt: n=0, err=file already closed 2022/04/15 06:37:07 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:37:07 DEBUG : dir: Looking for writers 2022/04/15 06:37:07 DEBUG : file1: reading active writers 2022/04/15 06:37:07 DEBUG : : Looking for writers 2022/04/15 06:37:07 DEBUG : dir: reading active writers 2022/04/15 06:37:07 DEBUG : >WaitForWriters: 2022/04/15 06:37:07 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:217 Error: Should be true Test: TestRWFileHandleReadAt Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:217 Error: Should be true Test: TestRWFileHandleReadAt Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:217 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleReadAt Messages: directories --- FAIL: TestRWFileHandleReadAt (17.95s) === RUN TestRWFileHandleFlushRead run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:37:17 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:37:17 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:37:17 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:17 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:17 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:17 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 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 read_write_test.go:41 read_write_test.go:54 read_write_test.go:220 Error: Should be true Test: TestRWFileHandleFlushRead Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:220 Error: Not equal: expected: 16 actual : 14 Test: TestRWFileHandleFlushRead Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:220 Error: Should be true Test: TestRWFileHandleFlushRead Messages: Unexpected file "dir/file1" 2022/04/15 06:37:25 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:37:25 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:37:25 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:37:25 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:37:25 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:37:25 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2022/04/15 06:37:25 DEBUG : dir/file1(0xc000381340): RWFileHandle.Flush 2022/04/15 06:37:25 DEBUG : dir/file1(0xc000381340): _readAt: size=256, off=0 2022/04/15 06:37:25 DEBUG : dir/file1(0xc000381340): openPending: 2022/04/15 06:37:25 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2022/04/15 06:37:25 DEBUG : dir/file1: vfs cache: truncate to size=16 2022/04/15 06:37:25 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:37:25 DEBUG : dir/file1(0xc000381340): >openPending: err= 2022/04/15 06:37:25 DEBUG : vfs cache: looking for range={Pos:0 Size:16} in [] - present false 2022/04/15 06:37:25 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/04/15 06:37:25 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/04/15 06:37:25 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:37:26 DEBUG : dir/file1(0xc000381340): >_readAt: n=16, err=EOF 2022/04/15 06:37:26 DEBUG : dir/file1(0xc000381340): RWFileHandle.Flush 2022/04/15 06:37:26 DEBUG : dir/file1(0xc000381340): RWFileHandle.Flush 2022/04/15 06:37:26 DEBUG : dir/file1(0xc000381340): close: 2022/04/15 06:37:26 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:37:17 +0000 UTC 2022/04/15 06:37:26 DEBUG : dir/file1(0xc000381340): >close: err= 2022/04/15 06:37:26 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:37:26 DEBUG : dir: Looking for writers 2022/04/15 06:37:26 DEBUG : file1: reading active writers 2022/04/15 06:37:26 DEBUG : : Looking for writers 2022/04/15 06:37:26 DEBUG : dir: reading active writers 2022/04/15 06:37:26 DEBUG : >WaitForWriters: 2022/04/15 06:37:26 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:246 Error: Should be true Test: TestRWFileHandleFlushRead Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:246 Error: Should be true Test: TestRWFileHandleFlushRead Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:246 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleFlushRead Messages: directories --- FAIL: TestRWFileHandleFlushRead (19.39s) === RUN TestRWFileHandleReleaseRead run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:37:36 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:37:36 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:37:36 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:36 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:36 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:36 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:36 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 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 read_write_test.go:41 read_write_test.go:54 read_write_test.go:249 Error: Should be true Test: TestRWFileHandleReleaseRead Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:249 Error: Not equal: expected: 16 actual : 14 Test: TestRWFileHandleReleaseRead Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:54 read_write_test.go:249 Error: Should be true Test: TestRWFileHandleReleaseRead Messages: Unexpected file "dir/file1" 2022/04/15 06:37:43 DEBUG : dir/file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:37:43 DEBUG : dir/file1: Open: flags=O_RDONLY 2022/04/15 06:37:43 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:37:43 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:37:43 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:37:43 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2022/04/15 06:37:43 DEBUG : dir/file1(0xc0019a9140): _readAt: size=256, off=0 2022/04/15 06:37:43 DEBUG : dir/file1(0xc0019a9140): openPending: 2022/04/15 06:37:43 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2022/04/15 06:37:43 DEBUG : dir/file1: vfs cache: truncate to size=16 2022/04/15 06:37:43 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:37:43 DEBUG : dir/file1(0xc0019a9140): >openPending: err= 2022/04/15 06:37:43 DEBUG : vfs cache: looking for range={Pos:0 Size:16} in [] - present false 2022/04/15 06:37:43 DEBUG : dir/file1: ChunkedReader.RangeSeek from -1 to 0 length -1 2022/04/15 06:37:43 DEBUG : dir/file1: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728 2022/04/15 06:37:43 DEBUG : dir/file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:37:44 DEBUG : dir/file1(0xc0019a9140): >_readAt: n=16, err=EOF 2022/04/15 06:37:44 DEBUG : dir/file1(0xc0019a9140): RWFileHandle.Release 2022/04/15 06:37:44 DEBUG : dir/file1(0xc0019a9140): close: 2022/04/15 06:37:44 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:37:36 +0000 UTC 2022/04/15 06:37:44 DEBUG : dir/file1(0xc0019a9140): >close: err= 2022/04/15 06:37:44 DEBUG : dir/file1(0xc0019a9140): RWFileHandle.Release 2022/04/15 06:37:44 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:37:44 DEBUG : dir: Looking for writers 2022/04/15 06:37:44 DEBUG : file1: reading active writers 2022/04/15 06:37:44 DEBUG : : Looking for writers 2022/04/15 06:37:44 DEBUG : dir: reading active writers 2022/04/15 06:37:44 DEBUG : >WaitForWriters: 2022/04/15 06:37:44 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:267 Error: Should be true Test: TestRWFileHandleReleaseRead Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:267 Error: Should be true Test: TestRWFileHandleReleaseRead Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:267 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleReleaseRead Messages: directories --- FAIL: TestRWFileHandleReleaseRead (17.65s) === RUN TestRWFileHandleMethodsWrite run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:37:54 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:37:54 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:37:54 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:54 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:54 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:54 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:37:54 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:37:54 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:37:54 DEBUG : file1: newRWFileHandle: 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): openPending: 2022/04/15 06:37:54 DEBUG : file1: vfs cache: truncate to size=0 2022/04/15 06:37:54 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): >openPending: err= 2022/04/15 06:37:54 DEBUG : file1: >newRWFileHandle: err= 2022/04/15 06:37:54 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:37:54 DEBUG : file1: >Open: fd=file1 (rw), err= 2022/04/15 06:37:54 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): _writeAt: size=5, off=0 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): >_writeAt: n=5, err= 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): _writeAt: size=7, off=5 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): >_writeAt: n=7, err= 2022/04/15 06:37:54 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item file1 not removed, freed 0 bytes 2022/04/15 06:37:54 INFO : vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 0, uploading 0, total size 12 (was 12) 2022/04/15 06:37:54 DEBUG : file1: vfs cache: truncate to size=11 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): close: 2022/04/15 06:37:54 DEBUG : file1: vfs cache: setting modification time to 2022-04-15 06:37:54.344639001 +0000 UTC m=+550.320475885 2022/04/15 06:37:54 INFO : file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): >close: err= 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): close: 2022/04/15 06:37:54 DEBUG : file1(0xc001eabf00): >close: err=file already closed dir_test.go:252: Error Trace: dir_test.go:252 read_write_test.go:339 Error: Not equal: expected: []string{"file1,11,false"} actual : []string{"dir,0,true", "file1,11,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=14) "file1,11,false" Test: TestRWFileHandleMethodsWrite 2022/04/15 06:37:54 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:37:54 DEBUG : dir: Looking for writers 2022/04/15 06:37:54 DEBUG : : Looking for writers 2022/04/15 06:37:54 DEBUG : dir: reading active writers 2022/04/15 06:37:54 DEBUG : file1: reading active writers 2022/04/15 06:37:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:37:54 DEBUG : dir: Looking for writers 2022/04/15 06:37:54 DEBUG : : Looking for writers 2022/04/15 06:37:54 DEBUG : dir: reading active writers 2022/04/15 06:37:54 DEBUG : file1: reading active writers 2022/04/15 06:37:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:37:54 DEBUG : dir: Looking for writers 2022/04/15 06:37:54 DEBUG : : Looking for writers 2022/04/15 06:37:54 DEBUG : dir: reading active writers 2022/04/15 06:37:54 DEBUG : file1: reading active writers 2022/04/15 06:37:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:37:54 DEBUG : dir: Looking for writers 2022/04/15 06:37:54 DEBUG : : Looking for writers 2022/04/15 06:37:54 DEBUG : dir: reading active writers 2022/04/15 06:37:54 DEBUG : file1: reading active writers 2022/04/15 06:37:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:37:54 DEBUG : file1: vfs cache: starting upload 2022/04/15 06:37:54 DEBUG : dir: Looking for writers 2022/04/15 06:37:54 DEBUG : : Looking for writers 2022/04/15 06:37:54 DEBUG : dir: reading active writers 2022/04/15 06:37:54 DEBUG : file1: reading active writers 2022/04/15 06:37:54 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:37:54 INFO : file1: Copied (new) 2022/04/15 06:37:54 DEBUG : file1: vfs cache: fingerprint now "11" 2022/04/15 06:37:54 DEBUG : file1: vfs cache: writeback object to VFS layer 2022/04/15 06:37:54 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:37:54 INFO : file1: vfs cache: upload succeeded try #1 2022/04/15 06:37:54 DEBUG : dir: Looking for writers 2022/04/15 06:37:54 DEBUG : : Looking for writers 2022/04/15 06:37:54 DEBUG : file1: reading active writers 2022/04/15 06:37:54 DEBUG : dir: reading active writers 2022/04/15 06:37:54 DEBUG : >WaitForWriters: 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 read_write_test.go:344 Error: Should be true Test: TestRWFileHandleMethodsWrite Messages: listing wrong, want file1 (11) got dir/file1 (14), file1 (11) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 read_write_test.go:344 Error: Should be true Test: TestRWFileHandleMethodsWrite Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 read_write_test.go:344 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleMethodsWrite Messages: directories 2022/04/15 06:38:01 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:38:01 DEBUG : dir: Looking for writers 2022/04/15 06:38:01 DEBUG : : Looking for writers 2022/04/15 06:38:01 DEBUG : dir: reading active writers 2022/04/15 06:38:01 DEBUG : file1: reading active writers 2022/04/15 06:38:01 DEBUG : >WaitForWriters: 2022/04/15 06:38:01 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:345 Error: Should be true Test: TestRWFileHandleMethodsWrite Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:345 Error: Should be true Test: TestRWFileHandleMethodsWrite Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:345 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleMethodsWrite Messages: directories --- FAIL: TestRWFileHandleMethodsWrite (17.46s) === RUN TestRWFileHandleWriteAt run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:38:11 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:38:11 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:38:11 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:11 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:11 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:11 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:11 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:38:11 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:38:11 DEBUG : file1: newRWFileHandle: 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): openPending: 2022/04/15 06:38:11 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item file1 not removed, freed 0 bytes 2022/04/15 06:38:11 INFO : vfs cache: cleaned: objects 1 (was 1) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:38:11 DEBUG : file1: vfs cache: truncate to size=0 2022/04/15 06:38:11 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): >openPending: err= 2022/04/15 06:38:11 DEBUG : file1: >newRWFileHandle: err= 2022/04/15 06:38:11 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:11 DEBUG : file1: >Open: fd=file1 (rw), err= 2022/04/15 06:38:11 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): _writeAt: size=7, off=0 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): >_writeAt: n=7, err= 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): _writeAt: size=6, off=5 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): >_writeAt: n=6, err= 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): close: 2022/04/15 06:38:11 DEBUG : file1: vfs cache: setting modification time to 2022-04-15 06:38:11.775834162 +0000 UTC m=+567.751671046 2022/04/15 06:38:11 INFO : file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): >close: err= 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): _writeAt: size=5, off=0 2022/04/15 06:38:11 DEBUG : file1(0xc0002df080): >_writeAt: n=0, err=file already closed dir_test.go:252: Error Trace: dir_test.go:252 read_write_test.go:387 Error: Not equal: expected: []string{"file1,11,false"} actual : []string{"dir,0,true", "file1,11,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=14) "file1,11,false" Test: TestRWFileHandleWriteAt 2022/04/15 06:38:11 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:38:11 DEBUG : dir: Looking for writers 2022/04/15 06:38:11 DEBUG : : Looking for writers 2022/04/15 06:38:11 DEBUG : dir: reading active writers 2022/04/15 06:38:11 DEBUG : file1: reading active writers 2022/04/15 06:38:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:38:11 DEBUG : dir: Looking for writers 2022/04/15 06:38:11 DEBUG : : Looking for writers 2022/04/15 06:38:11 DEBUG : dir: reading active writers 2022/04/15 06:38:11 DEBUG : file1: reading active writers 2022/04/15 06:38:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:38:11 DEBUG : dir: Looking for writers 2022/04/15 06:38:11 DEBUG : : Looking for writers 2022/04/15 06:38:11 DEBUG : dir: reading active writers 2022/04/15 06:38:11 DEBUG : file1: reading active writers 2022/04/15 06:38:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:38:11 DEBUG : dir: Looking for writers 2022/04/15 06:38:11 DEBUG : : Looking for writers 2022/04/15 06:38:11 DEBUG : dir: reading active writers 2022/04/15 06:38:11 DEBUG : file1: reading active writers 2022/04/15 06:38:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:38:11 DEBUG : file1: vfs cache: starting upload 2022/04/15 06:38:11 DEBUG : dir: Looking for writers 2022/04/15 06:38:11 DEBUG : : Looking for writers 2022/04/15 06:38:11 DEBUG : dir: reading active writers 2022/04/15 06:38:11 DEBUG : file1: reading active writers 2022/04/15 06:38:11 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:38:12 DEBUG : dir: Looking for writers 2022/04/15 06:38:12 DEBUG : : Looking for writers 2022/04/15 06:38:12 DEBUG : dir: reading active writers 2022/04/15 06:38:12 DEBUG : file1: reading active writers 2022/04/15 06:38:12 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:38:12 INFO : file1: Copied (new) 2022/04/15 06:38:12 DEBUG : file1: vfs cache: fingerprint now "11" 2022/04/15 06:38:12 DEBUG : file1: vfs cache: writeback object to VFS layer 2022/04/15 06:38:12 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:12 INFO : file1: vfs cache: upload succeeded try #1 2022/04/15 06:38:12 DEBUG : dir: Looking for writers 2022/04/15 06:38:12 DEBUG : : Looking for writers 2022/04/15 06:38:12 DEBUG : dir: reading active writers 2022/04/15 06:38:12 DEBUG : file1: reading active writers 2022/04/15 06:38:12 DEBUG : >WaitForWriters: 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 read_write_test.go:392 Error: Should be true Test: TestRWFileHandleWriteAt Messages: listing wrong, want file1 (11) got dir/file1 (14), file1 (11) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 read_write_test.go:392 Error: Should be true Test: TestRWFileHandleWriteAt Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 read_write_test.go:392 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleWriteAt Messages: directories 2022/04/15 06:38:19 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:38:19 DEBUG : dir: Looking for writers 2022/04/15 06:38:19 DEBUG : : Looking for writers 2022/04/15 06:38:19 DEBUG : dir: reading active writers 2022/04/15 06:38:19 DEBUG : file1: reading active writers 2022/04/15 06:38:19 DEBUG : >WaitForWriters: 2022/04/15 06:38:19 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:393 Error: Should be true Test: TestRWFileHandleWriteAt Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:393 Error: Should be true Test: TestRWFileHandleWriteAt Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:393 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleWriteAt Messages: directories --- FAIL: TestRWFileHandleWriteAt (17.94s) === RUN TestRWFileHandleWriteNoWrite run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:38:29 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:38:29 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:38:29 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:29 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:29 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:29 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:29 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:38:29 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:38:29 DEBUG : file1: newRWFileHandle: 2022/04/15 06:38:29 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item file1 not removed, freed 0 bytes 2022/04/15 06:38:29 INFO : vfs cache: cleaned: objects 1 (was 1) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:38:29 DEBUG : file1(0xc0012f0d00): openPending: 2022/04/15 06:38:29 DEBUG : file1: vfs cache: truncate to size=0 2022/04/15 06:38:29 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:29 DEBUG : file1(0xc0012f0d00): >openPending: err= 2022/04/15 06:38:29 DEBUG : file1: >newRWFileHandle: err= 2022/04/15 06:38:29 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:29 DEBUG : file1: >Open: fd=file1 (rw), err= 2022/04/15 06:38:29 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2022/04/15 06:38:29 DEBUG : file1(0xc0012f0d00): close: 2022/04/15 06:38:29 DEBUG : file1: vfs cache: setting modification time to 2022-04-15 06:38:29.717398455 +0000 UTC m=+585.693235319 2022/04/15 06:38:29 INFO : file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:38:29 DEBUG : file1(0xc0012f0d00): >close: err= 2022/04/15 06:38:29 DEBUG : file2: OpenFile: flags=O_WRONLY|O_CREATE|O_TRUNC, perm=-rwxrwxrwx 2022/04/15 06:38:29 DEBUG : file2: Open: flags=O_WRONLY|O_CREATE|O_TRUNC 2022/04/15 06:38:29 DEBUG : file2: newRWFileHandle: 2022/04/15 06:38:29 DEBUG : file2(0xc0012f0e00): openPending: 2022/04/15 06:38:29 DEBUG : file2: vfs cache: truncate to size=0 2022/04/15 06:38:29 DEBUG : : Added virtual directory entry vAddFile: "file2" 2022/04/15 06:38:29 DEBUG : file2(0xc0012f0e00): >openPending: err= 2022/04/15 06:38:29 DEBUG : file2: >newRWFileHandle: err= 2022/04/15 06:38:29 DEBUG : : Added virtual directory entry vAddFile: "file2" 2022/04/15 06:38:29 DEBUG : file2: >Open: fd=file2 (rw), err= 2022/04/15 06:38:29 DEBUG : file2: >OpenFile: fd=file2 (rw), err= 2022/04/15 06:38:29 DEBUG : file2(0xc0012f0e00): RWFileHandle.Flush 2022/04/15 06:38:29 DEBUG : file2(0xc0012f0e00): RWFileHandle.Release 2022/04/15 06:38:29 DEBUG : file2(0xc0012f0e00): close: 2022/04/15 06:38:29 DEBUG : file2: vfs cache: setting modification time to 2022-04-15 06:38:29.732326444 +0000 UTC m=+585.708163328 2022/04/15 06:38:29 INFO : file2: vfs cache: queuing for upload in 100ms 2022/04/15 06:38:29 DEBUG : file2(0xc0012f0e00): >close: err= dir_test.go:252: Error Trace: dir_test.go:252 read_write_test.go:420 Error: Not equal: expected: []string{"file1,0,false", "file2,0,false"} actual : []string{"dir,0,true", "file1,0,false", "file2,0,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=2) { +([]string) (len=3) { + (string) (len=10) "dir,0,true", (string) (len=13) "file1,0,false", Test: TestRWFileHandleWriteNoWrite 2022/04/15 06:38:29 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:38:29 DEBUG : dir: Looking for writers 2022/04/15 06:38:29 DEBUG : : Looking for writers 2022/04/15 06:38:29 DEBUG : file2: reading active writers 2022/04/15 06:38:29 DEBUG : dir: reading active writers 2022/04/15 06:38:29 DEBUG : file1: reading active writers 2022/04/15 06:38:29 DEBUG : Still 0 writers active and 2 cache items in use, waiting 10ms 2022/04/15 06:38:29 DEBUG : dir: Looking for writers 2022/04/15 06:38:29 DEBUG : : Looking for writers 2022/04/15 06:38:29 DEBUG : dir: reading active writers 2022/04/15 06:38:29 DEBUG : file1: reading active writers 2022/04/15 06:38:29 DEBUG : file2: reading active writers 2022/04/15 06:38:29 DEBUG : Still 0 writers active and 2 cache items in use, waiting 20ms 2022/04/15 06:38:29 DEBUG : dir: Looking for writers 2022/04/15 06:38:29 DEBUG : : Looking for writers 2022/04/15 06:38:29 DEBUG : dir: reading active writers 2022/04/15 06:38:29 DEBUG : file1: reading active writers 2022/04/15 06:38:29 DEBUG : file2: reading active writers 2022/04/15 06:38:29 DEBUG : Still 0 writers active and 2 cache items in use, waiting 40ms 2022/04/15 06:38:29 DEBUG : dir: Looking for writers 2022/04/15 06:38:29 DEBUG : : Looking for writers 2022/04/15 06:38:29 DEBUG : dir: reading active writers 2022/04/15 06:38:29 DEBUG : file1: reading active writers 2022/04/15 06:38:29 DEBUG : file2: reading active writers 2022/04/15 06:38:29 DEBUG : Still 0 writers active and 2 cache items in use, waiting 80ms 2022/04/15 06:38:29 DEBUG : file1: vfs cache: starting upload 2022/04/15 06:38:29 DEBUG : file2: vfs cache: starting upload 2022/04/15 06:38:29 DEBUG : dir: Looking for writers 2022/04/15 06:38:29 DEBUG : : Looking for writers 2022/04/15 06:38:29 DEBUG : dir: reading active writers 2022/04/15 06:38:29 DEBUG : file1: reading active writers 2022/04/15 06:38:29 DEBUG : file2: reading active writers 2022/04/15 06:38:29 DEBUG : Still 0 writers active and 2 cache items in use, waiting 160ms 2022/04/15 06:38:30 DEBUG : dir: Looking for writers 2022/04/15 06:38:30 DEBUG : : Looking for writers 2022/04/15 06:38:30 DEBUG : dir: reading active writers 2022/04/15 06:38:30 DEBUG : file1: reading active writers 2022/04/15 06:38:30 DEBUG : file2: reading active writers 2022/04/15 06:38:30 DEBUG : Still 0 writers active and 2 cache items in use, waiting 320ms 2022/04/15 06:38:30 INFO : file1: Copied (new) 2022/04/15 06:38:30 DEBUG : file1: vfs cache: fingerprint now "0" 2022/04/15 06:38:30 DEBUG : file1: vfs cache: writeback object to VFS layer 2022/04/15 06:38:30 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:30 INFO : file1: vfs cache: upload succeeded try #1 2022/04/15 06:38:30 INFO : file2: Copied (new) 2022/04/15 06:38:30 DEBUG : file2: vfs cache: fingerprint now "0" 2022/04/15 06:38:30 DEBUG : file2: vfs cache: writeback object to VFS layer 2022/04/15 06:38:30 DEBUG : : Added virtual directory entry vAddFile: "file2" 2022/04/15 06:38:30 INFO : file2: vfs cache: upload succeeded try #1 2022/04/15 06:38:30 DEBUG : dir: Looking for writers 2022/04/15 06:38:30 DEBUG : : Looking for writers 2022/04/15 06:38:30 DEBUG : dir: reading active writers 2022/04/15 06:38:30 DEBUG : file1: reading active writers 2022/04/15 06:38:30 DEBUG : file2: reading active writers 2022/04/15 06:38:30 DEBUG : >WaitForWriters: 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 read_write_test.go:426 Error: Should be true Test: TestRWFileHandleWriteNoWrite Messages: listing wrong, want file1 (0), file2 (0) got dir/file1 (14), file1 (0), file2 (0) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 read_write_test.go:426 Error: Should be true Test: TestRWFileHandleWriteNoWrite Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 read_write_test.go:426 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleWriteNoWrite Messages: directories 2022/04/15 06:38:37 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:38:37 DEBUG : dir: Looking for writers 2022/04/15 06:38:37 DEBUG : : Looking for writers 2022/04/15 06:38:37 DEBUG : dir: reading active writers 2022/04/15 06:38:37 DEBUG : file1: reading active writers 2022/04/15 06:38:37 DEBUG : file2: reading active writers 2022/04/15 06:38:37 DEBUG : >WaitForWriters: 2022/04/15 06:38:37 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:427 Error: Should be true Test: TestRWFileHandleWriteNoWrite Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:427 Error: Should be true Test: TestRWFileHandleWriteNoWrite Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:427 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleWriteNoWrite Messages: directories --- FAIL: TestRWFileHandleWriteNoWrite (18.00s) === RUN TestRWFileHandleFlushWrite run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:38:47 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:38:47 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:38:47 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:47 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:47 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:47 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:47 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:38:47 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:38:47 DEBUG : file1: newRWFileHandle: 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): openPending: 2022/04/15 06:38:47 DEBUG : file1: vfs cache: truncate to size=0 2022/04/15 06:38:47 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): >openPending: err= 2022/04/15 06:38:47 DEBUG : file1: >newRWFileHandle: err= 2022/04/15 06:38:47 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:47 DEBUG : file1: >Open: fd=file1 (rw), err= 2022/04/15 06:38:47 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): _writeAt: size=5, off=0 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): >_writeAt: n=5, err= 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): RWFileHandle.Flush 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): RWFileHandle.Flush 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): close: 2022/04/15 06:38:47 DEBUG : file1: vfs cache: setting modification time to 2022-04-15 06:38:47.720522814 +0000 UTC m=+603.696359668 2022/04/15 06:38:47 INFO : file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:38:47 DEBUG : file1(0xc001f3f340): >close: err= 2022/04/15 06:38:47 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:38:47 DEBUG : dir: Looking for writers 2022/04/15 06:38:47 DEBUG : : Looking for writers 2022/04/15 06:38:47 DEBUG : dir: reading active writers 2022/04/15 06:38:47 DEBUG : file1: reading active writers 2022/04/15 06:38:47 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item file1 not removed, freed 0 bytes 2022/04/15 06:38:47 INFO : vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 5 (was 5) 2022/04/15 06:38:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:38:47 DEBUG : dir: Looking for writers 2022/04/15 06:38:47 DEBUG : : Looking for writers 2022/04/15 06:38:47 DEBUG : dir: reading active writers 2022/04/15 06:38:47 DEBUG : file1: reading active writers 2022/04/15 06:38:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:38:47 DEBUG : dir: Looking for writers 2022/04/15 06:38:47 DEBUG : : Looking for writers 2022/04/15 06:38:47 DEBUG : dir: reading active writers 2022/04/15 06:38:47 DEBUG : file1: reading active writers 2022/04/15 06:38:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:38:47 DEBUG : dir: Looking for writers 2022/04/15 06:38:47 DEBUG : : Looking for writers 2022/04/15 06:38:47 DEBUG : dir: reading active writers 2022/04/15 06:38:47 DEBUG : file1: reading active writers 2022/04/15 06:38:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:38:47 DEBUG : file1: vfs cache: starting upload 2022/04/15 06:38:47 DEBUG : dir: Looking for writers 2022/04/15 06:38:47 DEBUG : : Looking for writers 2022/04/15 06:38:47 DEBUG : dir: reading active writers 2022/04/15 06:38:47 DEBUG : file1: reading active writers 2022/04/15 06:38:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:38:48 DEBUG : dir: Looking for writers 2022/04/15 06:38:48 DEBUG : : Looking for writers 2022/04/15 06:38:48 DEBUG : file1: reading active writers 2022/04/15 06:38:48 DEBUG : dir: reading active writers 2022/04/15 06:38:48 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:38:48 INFO : file1: Copied (new) 2022/04/15 06:38:48 DEBUG : file1: vfs cache: fingerprint now "5" 2022/04/15 06:38:48 DEBUG : file1: vfs cache: writeback object to VFS layer 2022/04/15 06:38:48 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:48 INFO : file1: vfs cache: upload succeeded try #1 2022/04/15 06:38:48 DEBUG : dir: Looking for writers 2022/04/15 06:38:48 DEBUG : : Looking for writers 2022/04/15 06:38:48 DEBUG : file1: reading active writers 2022/04/15 06:38:48 DEBUG : dir: reading active writers 2022/04/15 06:38:48 DEBUG : >WaitForWriters: 2022/04/15 06:38:48 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:456 Error: Should be true Test: TestRWFileHandleFlushWrite Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:456 Error: Should be true Test: TestRWFileHandleFlushWrite Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:456 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleFlushWrite Messages: directories --- FAIL: TestRWFileHandleFlushWrite (10.82s) === RUN TestRWFileHandleReleaseWrite run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:38:58 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:38:58 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:38:58 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:58 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:58 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:58 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:38:58 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:38:58 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:38:58 DEBUG : file1: newRWFileHandle: 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): openPending: 2022/04/15 06:38:58 DEBUG : file1: vfs cache: truncate to size=0 2022/04/15 06:38:58 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): >openPending: err= 2022/04/15 06:38:58 DEBUG : file1: >newRWFileHandle: err= 2022/04/15 06:38:58 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:58 DEBUG : file1: >Open: fd=file1 (rw), err= 2022/04/15 06:38:58 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): _writeAt: size=5, off=0 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): >_writeAt: n=5, err= 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): RWFileHandle.Release 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): close: 2022/04/15 06:38:58 DEBUG : file1: vfs cache: setting modification time to 2022-04-15 06:38:58.540609359 +0000 UTC m=+614.516446213 2022/04/15 06:38:58 INFO : file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): >close: err= 2022/04/15 06:38:58 DEBUG : file1(0xc00083e1c0): RWFileHandle.Release 2022/04/15 06:38:58 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:38:58 DEBUG : dir: Looking for writers 2022/04/15 06:38:58 DEBUG : : Looking for writers 2022/04/15 06:38:58 DEBUG : dir: reading active writers 2022/04/15 06:38:58 DEBUG : file1: reading active writers 2022/04/15 06:38:58 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item file1 not removed, freed 0 bytes 2022/04/15 06:38:58 INFO : vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 5 (was 5) 2022/04/15 06:38:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:38:58 DEBUG : dir: Looking for writers 2022/04/15 06:38:58 DEBUG : : Looking for writers 2022/04/15 06:38:58 DEBUG : dir: reading active writers 2022/04/15 06:38:58 DEBUG : file1: reading active writers 2022/04/15 06:38:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:38:58 DEBUG : dir: Looking for writers 2022/04/15 06:38:58 DEBUG : : Looking for writers 2022/04/15 06:38:58 DEBUG : dir: reading active writers 2022/04/15 06:38:58 DEBUG : file1: reading active writers 2022/04/15 06:38:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:38:58 DEBUG : dir: Looking for writers 2022/04/15 06:38:58 DEBUG : : Looking for writers 2022/04/15 06:38:58 DEBUG : dir: reading active writers 2022/04/15 06:38:58 DEBUG : file1: reading active writers 2022/04/15 06:38:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:38:58 DEBUG : file1: vfs cache: starting upload 2022/04/15 06:38:58 DEBUG : dir: Looking for writers 2022/04/15 06:38:58 DEBUG : : Looking for writers 2022/04/15 06:38:58 DEBUG : dir: reading active writers 2022/04/15 06:38:58 DEBUG : file1: reading active writers 2022/04/15 06:38:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:38:58 DEBUG : dir: Looking for writers 2022/04/15 06:38:58 DEBUG : : Looking for writers 2022/04/15 06:38:58 DEBUG : dir: reading active writers 2022/04/15 06:38:58 DEBUG : file1: reading active writers 2022/04/15 06:38:58 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:38:59 INFO : file1: Copied (new) 2022/04/15 06:38:59 DEBUG : file1: vfs cache: fingerprint now "5" 2022/04/15 06:38:59 DEBUG : file1: vfs cache: writeback object to VFS layer 2022/04/15 06:38:59 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:38:59 INFO : file1: vfs cache: upload succeeded try #1 2022/04/15 06:38:59 DEBUG : dir: Looking for writers 2022/04/15 06:38:59 DEBUG : : Looking for writers 2022/04/15 06:38:59 DEBUG : file1: reading active writers 2022/04/15 06:38:59 DEBUG : dir: reading active writers 2022/04/15 06:38:59 DEBUG : >WaitForWriters: 2022/04/15 06:38:59 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:476 Error: Should be true Test: TestRWFileHandleReleaseWrite Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:476 Error: Should be true Test: TestRWFileHandleReleaseWrite Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:476 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleReleaseWrite Messages: directories --- FAIL: TestRWFileHandleReleaseWrite (10.77s) === RUN TestRWFileHandleSizeTruncateExisting run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:39:09 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:39:09 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:39:09 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:09 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:09 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:09 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:09 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 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 read_write_test.go:41 read_write_test.go:489 Error: Should be true Test: TestRWFileHandleSizeTruncateExisting Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:489 Error: Not equal: expected: 16 actual : 14 Test: TestRWFileHandleSizeTruncateExisting Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:489 Error: Should be true Test: TestRWFileHandleSizeTruncateExisting Messages: Unexpected file "dir/file1" 2022/04/15 06:39:16 DEBUG : dir/file1: OpenFile: flags=O_WRONLY|O_TRUNC, perm=-rwxrwxrwx 2022/04/15 06:39:16 DEBUG : dir/file1: Open: flags=O_WRONLY|O_TRUNC 2022/04/15 06:39:16 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:39:16 DEBUG : dir/file1(0xc002115040): openPending: 2022/04/15 06:39:16 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2022/04/15 06:39:16 DEBUG : dir/file1: vfs cache: truncate to size=16 2022/04/15 06:39:16 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:16 DEBUG : dir/file1(0xc002115040): >openPending: err= 2022/04/15 06:39:16 DEBUG : dir/file1: vfs cache: truncate to size=0 2022/04/15 06:39:16 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:39:16 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:39:16 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2022/04/15 06:39:16 DEBUG : dir/file1(0xc002115040): _writeAt: size=5, off=0 2022/04/15 06:39:16 DEBUG : dir/file1(0xc002115040): >_writeAt: n=5, err= 2022/04/15 06:39:16 DEBUG : dir/file1(0xc002115040): close: 2022/04/15 06:39:16 DEBUG : vfs cache: looking for range={Pos:0 Size:5} in [{Pos:0 Size:5}] - present true 2022/04/15 06:39:16 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:39:16.57449194 +0000 UTC m=+632.550328804 2022/04/15 06:39:16 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:39:16 DEBUG : dir/file1(0xc002115040): >close: err= 2022/04/15 06:39:16 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:39:16 DEBUG : dir: Looking for writers 2022/04/15 06:39:16 DEBUG : file1: reading active writers 2022/04/15 06:39:16 DEBUG : : Looking for writers 2022/04/15 06:39:16 DEBUG : dir: reading active writers 2022/04/15 06:39:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:39:16 DEBUG : dir: Looking for writers 2022/04/15 06:39:16 DEBUG : file1: reading active writers 2022/04/15 06:39:16 DEBUG : : Looking for writers 2022/04/15 06:39:16 DEBUG : dir: reading active writers 2022/04/15 06:39:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:39:16 DEBUG : dir: Looking for writers 2022/04/15 06:39:16 DEBUG : file1: reading active writers 2022/04/15 06:39:16 DEBUG : : Looking for writers 2022/04/15 06:39:16 DEBUG : dir: reading active writers 2022/04/15 06:39:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:39:16 DEBUG : dir: Looking for writers 2022/04/15 06:39:16 DEBUG : file1: reading active writers 2022/04/15 06:39:16 DEBUG : : Looking for writers 2022/04/15 06:39:16 DEBUG : dir: reading active writers 2022/04/15 06:39:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:39:16 DEBUG : dir/file1: vfs cache: starting upload 2022/04/15 06:39:16 DEBUG : dir: Looking for writers 2022/04/15 06:39:16 DEBUG : file1: reading active writers 2022/04/15 06:39:16 DEBUG : : Looking for writers 2022/04/15 06:39:16 DEBUG : dir: reading active writers 2022/04/15 06:39:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:39:16 DEBUG : dir: Looking for writers 2022/04/15 06:39:16 DEBUG : file1: reading active writers 2022/04/15 06:39:16 DEBUG : : Looking for writers 2022/04/15 06:39:16 DEBUG : dir: reading active writers 2022/04/15 06:39:16 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:39:17 DEBUG : dir: Looking for writers 2022/04/15 06:39:17 DEBUG : file1: reading active writers 2022/04/15 06:39:17 DEBUG : : Looking for writers 2022/04/15 06:39:17 DEBUG : dir: reading active writers 2022/04/15 06:39:17 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:39:17 INFO : dir/file1: Copied (replaced existing) 2022/04/15 06:39:17 DEBUG : dir/file1: vfs cache: fingerprint now "5" 2022/04/15 06:39:17 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/04/15 06:39:17 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:17 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/04/15 06:39:17 DEBUG : dir: Looking for writers 2022/04/15 06:39:17 DEBUG : file1: reading active writers 2022/04/15 06:39:17 DEBUG : : Looking for writers 2022/04/15 06:39:17 DEBUG : dir: reading active writers 2022/04/15 06:39:17 DEBUG : >WaitForWriters: 2022/04/15 06:39:17 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:508 Error: Should be true Test: TestRWFileHandleSizeTruncateExisting Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:508 Error: Should be true Test: TestRWFileHandleSizeTruncateExisting Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:508 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleSizeTruncateExisting Messages: directories --- FAIL: TestRWFileHandleSizeTruncateExisting (18.65s) === RUN TestRWFileHandleSizeCreateExisting run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:39:27 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:39:27 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:39:27 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:27 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:27 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:27 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:27 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 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 read_write_test.go:41 read_write_test.go:511 Error: Should be true Test: TestRWFileHandleSizeCreateExisting Messages: listing wrong, want dir/file1 (16) got dir/file1 (14), dir/file1 (16) fstest.go:151: Error Trace: fstest.go:151 fstest.go:196 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:511 Error: Not equal: expected: 16 actual : 14 Test: TestRWFileHandleSizeCreateExisting Messages: dir/file1: size incorrect file=16 vs obj=14 fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 read_write_test.go:41 read_write_test.go:511 Error: Should be true Test: TestRWFileHandleSizeCreateExisting Messages: Unexpected file "dir/file1" 2022/04/15 06:39:35 DEBUG : dir/file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:39:35 DEBUG : dir/file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:39:35 DEBUG : dir/file1: newRWFileHandle: 2022/04/15 06:39:35 DEBUG : dir/file1: >newRWFileHandle: err= 2022/04/15 06:39:35 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:35 DEBUG : dir/file1: >Open: fd=dir/file1 (rw), err= 2022/04/15 06:39:35 DEBUG : dir/file1: >OpenFile: fd=dir/file1 (rw), err= 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): _writeAt: size=5, off=0 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): openPending: 2022/04/15 06:39:35 DEBUG : dir/file1: vfs cache: checking remote fingerprint "16" against cached fingerprint "" 2022/04/15 06:39:35 DEBUG : dir/file1: vfs cache: truncate to size=16 2022/04/15 06:39:35 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): >openPending: err= 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): >_writeAt: n=5, err= 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): _writeAt: size=15, off=5 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): >_writeAt: n=15, err= 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): close: 2022/04/15 06:39:35 DEBUG : vfs cache: looking for range={Pos:0 Size:20} in [{Pos:0 Size:20}] - present true 2022/04/15 06:39:35 DEBUG : dir/file1: vfs cache: setting modification time to 2022-04-15 06:39:35.757397383 +0000 UTC m=+651.733234236 2022/04/15 06:39:35 INFO : dir/file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:39:35 DEBUG : dir/file1(0xc001a47f00): >close: err= 2022/04/15 06:39:35 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:39:35 DEBUG : dir: Looking for writers 2022/04/15 06:39:35 DEBUG : file1: reading active writers 2022/04/15 06:39:35 DEBUG : : Looking for writers 2022/04/15 06:39:35 DEBUG : dir: reading active writers 2022/04/15 06:39:35 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:39:35 DEBUG : dir: Looking for writers 2022/04/15 06:39:35 DEBUG : file1: reading active writers 2022/04/15 06:39:35 DEBUG : : Looking for writers 2022/04/15 06:39:35 DEBUG : dir: reading active writers 2022/04/15 06:39:35 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:39:35 DEBUG : dir: Looking for writers 2022/04/15 06:39:35 DEBUG : file1: reading active writers 2022/04/15 06:39:35 DEBUG : : Looking for writers 2022/04/15 06:39:35 DEBUG : dir: reading active writers 2022/04/15 06:39:35 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:39:35 DEBUG : dir: Looking for writers 2022/04/15 06:39:35 DEBUG : file1: reading active writers 2022/04/15 06:39:35 DEBUG : : Looking for writers 2022/04/15 06:39:35 DEBUG : dir: reading active writers 2022/04/15 06:39:35 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:39:35 DEBUG : dir/file1: vfs cache: starting upload 2022/04/15 06:39:35 DEBUG : dir: Looking for writers 2022/04/15 06:39:35 DEBUG : file1: reading active writers 2022/04/15 06:39:35 DEBUG : : Looking for writers 2022/04/15 06:39:35 DEBUG : dir: reading active writers 2022/04/15 06:39:35 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:39:36 DEBUG : dir: Looking for writers 2022/04/15 06:39:36 DEBUG : file1: reading active writers 2022/04/15 06:39:36 DEBUG : : Looking for writers 2022/04/15 06:39:36 DEBUG : dir: reading active writers 2022/04/15 06:39:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:39:36 DEBUG : dir: Looking for writers 2022/04/15 06:39:36 DEBUG : file1: reading active writers 2022/04/15 06:39:36 DEBUG : : Looking for writers 2022/04/15 06:39:36 DEBUG : dir: reading active writers 2022/04/15 06:39:36 DEBUG : Still 0 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:39:36 INFO : dir/file1: Copied (replaced existing) 2022/04/15 06:39:36 DEBUG : dir/file1: vfs cache: fingerprint now "20" 2022/04/15 06:39:36 DEBUG : dir/file1: vfs cache: writeback object to VFS layer 2022/04/15 06:39:36 DEBUG : dir: Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:36 INFO : dir/file1: vfs cache: upload succeeded try #1 2022/04/15 06:39:37 DEBUG : dir: Looking for writers 2022/04/15 06:39:37 DEBUG : file1: reading active writers 2022/04/15 06:39:37 DEBUG : : Looking for writers 2022/04/15 06:39:37 DEBUG : dir: reading active writers 2022/04/15 06:39:37 DEBUG : >WaitForWriters: 2022/04/15 06:39:37 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:538 Error: Should be true Test: TestRWFileHandleSizeCreateExisting Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:538 Error: Should be true Test: TestRWFileHandleSizeCreateExisting Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:538 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleSizeCreateExisting Messages: directories --- FAIL: TestRWFileHandleSizeCreateExisting (19.54s) === RUN TestRWFileHandleSizeCreateNew run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:39:47 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:39:47 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:39:47 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:47 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:47 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:47 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:47 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:39:47 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:39:47 DEBUG : file1: newRWFileHandle: 2022/04/15 06:39:47 DEBUG : file1(0xc001eaaf00): openPending: 2022/04/15 06:39:47 DEBUG : file1: vfs cache: truncate to size=0 2022/04/15 06:39:47 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:47 DEBUG : file1(0xc001eaaf00): >openPending: err= 2022/04/15 06:39:47 DEBUG : file1: >newRWFileHandle: err= 2022/04/15 06:39:47 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:47 DEBUG : file1: >Open: fd=file1 (rw), err= 2022/04/15 06:39:47 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2022/04/15 06:39:47 DEBUG : file1(0xc001eaaf00): _writeAt: size=5, off=0 2022/04/15 06:39:47 DEBUG : file1(0xc001eaaf00): >_writeAt: n=5, err= 2022/04/15 06:39:47 DEBUG : file1(0xc001eaaf00): close: 2022/04/15 06:39:47 DEBUG : file1: vfs cache: setting modification time to 2022-04-15 06:39:47.496956441 +0000 UTC m=+663.472793306 2022/04/15 06:39:47 INFO : file1: vfs cache: queuing for upload in 100ms 2022/04/15 06:39:47 DEBUG : file1(0xc001eaaf00): >close: err= 2022/04/15 06:39:47 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item file1 not removed, freed 0 bytes 2022/04/15 06:39:47 INFO : vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 1, uploading 0, total size 5 (was 5) 2022/04/15 06:39:47 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:39:47 DEBUG : dir: Looking for writers 2022/04/15 06:39:47 DEBUG : : Looking for writers 2022/04/15 06:39:47 DEBUG : file1: reading active writers 2022/04/15 06:39:47 DEBUG : dir: reading active writers 2022/04/15 06:39:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:39:47 DEBUG : dir: Looking for writers 2022/04/15 06:39:47 DEBUG : : Looking for writers 2022/04/15 06:39:47 DEBUG : dir: reading active writers 2022/04/15 06:39:47 DEBUG : file1: reading active writers 2022/04/15 06:39:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:39:47 DEBUG : dir: Looking for writers 2022/04/15 06:39:47 DEBUG : : Looking for writers 2022/04/15 06:39:47 DEBUG : dir: reading active writers 2022/04/15 06:39:47 DEBUG : file1: reading active writers 2022/04/15 06:39:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:39:47 DEBUG : dir: Looking for writers 2022/04/15 06:39:47 DEBUG : : Looking for writers 2022/04/15 06:39:47 DEBUG : dir: reading active writers 2022/04/15 06:39:47 DEBUG : file1: reading active writers 2022/04/15 06:39:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:39:47 DEBUG : file1: vfs cache: starting upload 2022/04/15 06:39:47 DEBUG : dir: Looking for writers 2022/04/15 06:39:47 DEBUG : : Looking for writers 2022/04/15 06:39:47 DEBUG : dir: reading active writers 2022/04/15 06:39:47 DEBUG : file1: reading active writers 2022/04/15 06:39:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:39:47 DEBUG : dir: Looking for writers 2022/04/15 06:39:47 DEBUG : : Looking for writers 2022/04/15 06:39:47 DEBUG : dir: reading active writers 2022/04/15 06:39:47 DEBUG : file1: reading active writers 2022/04/15 06:39:47 DEBUG : Still 0 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:39:47 INFO : file1: Copied (new) 2022/04/15 06:39:47 DEBUG : file1: vfs cache: fingerprint now "5" 2022/04/15 06:39:47 DEBUG : file1: vfs cache: writeback object to VFS layer 2022/04/15 06:39:47 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:39:47 INFO : file1: vfs cache: upload succeeded try #1 2022/04/15 06:39:48 DEBUG : dir: Looking for writers 2022/04/15 06:39:48 DEBUG : : Looking for writers 2022/04/15 06:39:48 DEBUG : dir: reading active writers 2022/04/15 06:39:48 DEBUG : file1: reading active writers 2022/04/15 06:39:48 DEBUG : >WaitForWriters: 2022/04/15 06:39:48 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:563 Error: Should be true Test: TestRWFileHandleSizeCreateNew Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:563 Error: Should be true Test: TestRWFileHandleSizeCreateNew Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:563 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleSizeCreateNew Messages: directories --- FAIL: TestRWFileHandleSizeCreateNew (10.75s) === RUN TestRWFileHandleOpenTests run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:39:58 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:39:58 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:39:58 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:58 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:58 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:58 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:39:58 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:39:58 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:39:58 DEBUG : : Looking for writers 2022/04/15 06:39:58 DEBUG : >WaitForWriters: 2022/04/15 06:39:58 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:657 Error: Should be true Test: TestRWFileHandleOpenTests Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:657 Error: Should be true Test: TestRWFileHandleOpenTests Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:657 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileHandleOpenTests Messages: directories --- FAIL: TestRWFileHandleOpenTests (10.17s) === RUN TestRWFileModTimeWithOpenWriters run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:40:08 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:40:08 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:40:08 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:08 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:08 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:08 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:08 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:40:08 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:40:08 INFO : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0) 2022/04/15 06:40:08 DEBUG : file1: newRWFileHandle: 2022/04/15 06:40:08 DEBUG : file1(0xc000380240): openPending: 2022/04/15 06:40:08 DEBUG : file1: vfs cache: truncate to size=0 2022/04/15 06:40:08 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:40:08 DEBUG : file1(0xc000380240): >openPending: err= 2022/04/15 06:40:08 DEBUG : file1: >newRWFileHandle: err= 2022/04/15 06:40:08 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:40:08 DEBUG : file1: >Open: fd=file1 (rw), err= 2022/04/15 06:40:08 DEBUG : file1: >OpenFile: fd=file1 (rw), err= 2022/04/15 06:40:09 DEBUG : Can set mod time: false read_write_test.go:664: can't set mod time 2022/04/15 06:40:09 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:40:09 DEBUG : dir: Looking for writers 2022/04/15 06:40:09 DEBUG : : Looking for writers 2022/04/15 06:40:09 DEBUG : dir: reading active writers 2022/04/15 06:40:09 DEBUG : file1: reading active writers 2022/04/15 06:40:09 DEBUG : file1: active writers 1 2022/04/15 06:40:09 DEBUG : Still 1 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:40:09 DEBUG : dir: Looking for writers 2022/04/15 06:40:09 DEBUG : : Looking for writers 2022/04/15 06:40:09 DEBUG : dir: reading active writers 2022/04/15 06:40:09 DEBUG : file1: reading active writers 2022/04/15 06:40:09 DEBUG : file1: active writers 1 2022/04/15 06:40:09 DEBUG : Still 1 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:40:09 DEBUG : dir: Looking for writers 2022/04/15 06:40:09 DEBUG : : Looking for writers 2022/04/15 06:40:09 DEBUG : dir: reading active writers 2022/04/15 06:40:09 DEBUG : file1: reading active writers 2022/04/15 06:40:09 DEBUG : file1: active writers 1 2022/04/15 06:40:09 DEBUG : Still 1 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:40:09 DEBUG : dir: Looking for writers 2022/04/15 06:40:09 DEBUG : : Looking for writers 2022/04/15 06:40:09 DEBUG : file1: reading active writers 2022/04/15 06:40:09 DEBUG : file1: active writers 1 2022/04/15 06:40:09 DEBUG : dir: reading active writers 2022/04/15 06:40:09 DEBUG : Still 1 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:40:09 DEBUG : dir: Looking for writers 2022/04/15 06:40:09 DEBUG : : Looking for writers 2022/04/15 06:40:09 DEBUG : dir: reading active writers 2022/04/15 06:40:09 DEBUG : file1: reading active writers 2022/04/15 06:40:09 DEBUG : file1: active writers 1 2022/04/15 06:40:09 DEBUG : Still 1 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:40:09 DEBUG : dir: Looking for writers 2022/04/15 06:40:09 DEBUG : : Looking for writers 2022/04/15 06:40:09 DEBUG : dir: reading active writers 2022/04/15 06:40:09 DEBUG : file1: reading active writers 2022/04/15 06:40:09 DEBUG : file1: active writers 1 2022/04/15 06:40:09 DEBUG : Still 1 writers active and 1 cache items in use, waiting 320ms 2022/04/15 06:40:09 DEBUG : dir: Looking for writers 2022/04/15 06:40:09 DEBUG : : Looking for writers 2022/04/15 06:40:09 DEBUG : dir: reading active writers 2022/04/15 06:40:09 DEBUG : file1: reading active writers 2022/04/15 06:40:09 DEBUG : file1: active writers 1 2022/04/15 06:40:09 DEBUG : Still 1 writers active and 1 cache items in use, waiting 640ms 2022/04/15 06:40:10 DEBUG : dir: Looking for writers 2022/04/15 06:40:10 DEBUG : : Looking for writers 2022/04/15 06:40:10 DEBUG : dir: reading active writers 2022/04/15 06:40:10 DEBUG : file1: reading active writers 2022/04/15 06:40:10 DEBUG : file1: active writers 1 2022/04/15 06:40:10 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:11 DEBUG : dir: Looking for writers 2022/04/15 06:40:11 DEBUG : : Looking for writers 2022/04/15 06:40:11 DEBUG : file1: reading active writers 2022/04/15 06:40:11 DEBUG : file1: active writers 1 2022/04/15 06:40:11 DEBUG : dir: reading active writers 2022/04/15 06:40:11 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:12 DEBUG : dir: Looking for writers 2022/04/15 06:40:12 DEBUG : : Looking for writers 2022/04/15 06:40:12 DEBUG : dir: reading active writers 2022/04/15 06:40:12 DEBUG : file1: reading active writers 2022/04/15 06:40:12 DEBUG : file1: active writers 1 2022/04/15 06:40:12 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:13 DEBUG : dir: Looking for writers 2022/04/15 06:40:13 DEBUG : : Looking for writers 2022/04/15 06:40:13 DEBUG : dir: reading active writers 2022/04/15 06:40:13 DEBUG : file1: reading active writers 2022/04/15 06:40:13 DEBUG : file1: active writers 1 2022/04/15 06:40:13 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:14 DEBUG : dir: Looking for writers 2022/04/15 06:40:14 DEBUG : : Looking for writers 2022/04/15 06:40:14 DEBUG : dir: reading active writers 2022/04/15 06:40:14 DEBUG : file1: reading active writers 2022/04/15 06:40:14 DEBUG : file1: active writers 1 2022/04/15 06:40:14 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:15 DEBUG : dir: Looking for writers 2022/04/15 06:40:15 DEBUG : : Looking for writers 2022/04/15 06:40:15 DEBUG : dir: reading active writers 2022/04/15 06:40:15 DEBUG : file1: reading active writers 2022/04/15 06:40:15 DEBUG : file1: active writers 1 2022/04/15 06:40:15 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:16 DEBUG : dir: Looking for writers 2022/04/15 06:40:16 DEBUG : : Looking for writers 2022/04/15 06:40:16 DEBUG : dir: reading active writers 2022/04/15 06:40:16 DEBUG : file1: reading active writers 2022/04/15 06:40:16 DEBUG : file1: active writers 1 2022/04/15 06:40:16 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:17 DEBUG : dir: Looking for writers 2022/04/15 06:40:17 DEBUG : : Looking for writers 2022/04/15 06:40:17 DEBUG : file1: reading active writers 2022/04/15 06:40:17 DEBUG : file1: active writers 1 2022/04/15 06:40:17 DEBUG : dir: reading active writers 2022/04/15 06:40:17 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:18 DEBUG : dir: Looking for writers 2022/04/15 06:40:18 DEBUG : : Looking for writers 2022/04/15 06:40:18 DEBUG : dir: reading active writers 2022/04/15 06:40:18 DEBUG : file1: reading active writers 2022/04/15 06:40:18 DEBUG : file1: active writers 1 2022/04/15 06:40:18 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:19 DEBUG : dir: Looking for writers 2022/04/15 06:40:19 DEBUG : : Looking for writers 2022/04/15 06:40:19 DEBUG : dir: reading active writers 2022/04/15 06:40:19 DEBUG : file1: reading active writers 2022/04/15 06:40:19 DEBUG : file1: active writers 1 2022/04/15 06:40:19 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:20 DEBUG : dir: Looking for writers 2022/04/15 06:40:20 DEBUG : : Looking for writers 2022/04/15 06:40:20 DEBUG : file1: reading active writers 2022/04/15 06:40:20 DEBUG : file1: active writers 1 2022/04/15 06:40:20 DEBUG : dir: reading active writers 2022/04/15 06:40:20 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:21 DEBUG : dir: Looking for writers 2022/04/15 06:40:21 DEBUG : : Looking for writers 2022/04/15 06:40:21 DEBUG : dir: reading active writers 2022/04/15 06:40:21 DEBUG : file1: reading active writers 2022/04/15 06:40:21 DEBUG : file1: active writers 1 2022/04/15 06:40:21 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:22 DEBUG : dir: Looking for writers 2022/04/15 06:40:22 DEBUG : : Looking for writers 2022/04/15 06:40:22 DEBUG : dir: reading active writers 2022/04/15 06:40:22 DEBUG : file1: reading active writers 2022/04/15 06:40:22 DEBUG : file1: active writers 1 2022/04/15 06:40:22 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:23 DEBUG : dir: Looking for writers 2022/04/15 06:40:23 DEBUG : : Looking for writers 2022/04/15 06:40:23 DEBUG : dir: reading active writers 2022/04/15 06:40:23 DEBUG : file1: reading active writers 2022/04/15 06:40:23 DEBUG : file1: active writers 1 2022/04/15 06:40:23 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:24 DEBUG : dir: Looking for writers 2022/04/15 06:40:24 DEBUG : : Looking for writers 2022/04/15 06:40:24 DEBUG : dir: reading active writers 2022/04/15 06:40:24 DEBUG : file1: reading active writers 2022/04/15 06:40:24 DEBUG : file1: active writers 1 2022/04/15 06:40:24 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:25 DEBUG : dir: Looking for writers 2022/04/15 06:40:25 DEBUG : : Looking for writers 2022/04/15 06:40:25 DEBUG : dir: reading active writers 2022/04/15 06:40:25 DEBUG : file1: reading active writers 2022/04/15 06:40:25 DEBUG : file1: active writers 1 2022/04/15 06:40:25 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:26 DEBUG : dir: Looking for writers 2022/04/15 06:40:26 DEBUG : : Looking for writers 2022/04/15 06:40:26 DEBUG : dir: reading active writers 2022/04/15 06:40:26 DEBUG : file1: reading active writers 2022/04/15 06:40:26 DEBUG : file1: active writers 1 2022/04/15 06:40:26 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:27 DEBUG : dir: Looking for writers 2022/04/15 06:40:27 DEBUG : : Looking for writers 2022/04/15 06:40:27 DEBUG : file1: reading active writers 2022/04/15 06:40:27 DEBUG : file1: active writers 1 2022/04/15 06:40:27 DEBUG : dir: reading active writers 2022/04/15 06:40:27 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:28 DEBUG : dir: Looking for writers 2022/04/15 06:40:28 DEBUG : : Looking for writers 2022/04/15 06:40:28 DEBUG : file1: reading active writers 2022/04/15 06:40:28 DEBUG : file1: active writers 1 2022/04/15 06:40:28 DEBUG : dir: reading active writers 2022/04/15 06:40:28 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:29 DEBUG : dir: Looking for writers 2022/04/15 06:40:29 DEBUG : : Looking for writers 2022/04/15 06:40:29 DEBUG : file1: reading active writers 2022/04/15 06:40:29 DEBUG : file1: active writers 1 2022/04/15 06:40:29 DEBUG : dir: reading active writers 2022/04/15 06:40:29 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:30 DEBUG : dir: Looking for writers 2022/04/15 06:40:30 DEBUG : : Looking for writers 2022/04/15 06:40:30 DEBUG : file1: reading active writers 2022/04/15 06:40:30 DEBUG : file1: active writers 1 2022/04/15 06:40:30 DEBUG : dir: reading active writers 2022/04/15 06:40:30 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:31 DEBUG : dir: Looking for writers 2022/04/15 06:40:31 DEBUG : : Looking for writers 2022/04/15 06:40:31 DEBUG : dir: reading active writers 2022/04/15 06:40:31 DEBUG : file1: reading active writers 2022/04/15 06:40:31 DEBUG : file1: active writers 1 2022/04/15 06:40:31 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:32 DEBUG : dir: Looking for writers 2022/04/15 06:40:32 DEBUG : : Looking for writers 2022/04/15 06:40:32 DEBUG : dir: reading active writers 2022/04/15 06:40:32 DEBUG : file1: reading active writers 2022/04/15 06:40:32 DEBUG : file1: active writers 1 2022/04/15 06:40:32 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:33 DEBUG : dir: Looking for writers 2022/04/15 06:40:33 DEBUG : : Looking for writers 2022/04/15 06:40:33 DEBUG : dir: reading active writers 2022/04/15 06:40:33 DEBUG : file1: reading active writers 2022/04/15 06:40:33 DEBUG : file1: active writers 1 2022/04/15 06:40:33 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:34 DEBUG : dir: Looking for writers 2022/04/15 06:40:34 DEBUG : : Looking for writers 2022/04/15 06:40:34 DEBUG : dir: reading active writers 2022/04/15 06:40:34 DEBUG : file1: reading active writers 2022/04/15 06:40:34 DEBUG : file1: active writers 1 2022/04/15 06:40:34 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:35 DEBUG : dir: Looking for writers 2022/04/15 06:40:35 DEBUG : : Looking for writers 2022/04/15 06:40:35 DEBUG : file1: reading active writers 2022/04/15 06:40:35 DEBUG : file1: active writers 1 2022/04/15 06:40:35 DEBUG : dir: reading active writers 2022/04/15 06:40:35 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:36 DEBUG : dir: Looking for writers 2022/04/15 06:40:36 DEBUG : : Looking for writers 2022/04/15 06:40:36 DEBUG : file1: reading active writers 2022/04/15 06:40:36 DEBUG : file1: active writers 1 2022/04/15 06:40:36 DEBUG : dir: reading active writers 2022/04/15 06:40:36 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:37 DEBUG : dir: Looking for writers 2022/04/15 06:40:37 DEBUG : : Looking for writers 2022/04/15 06:40:37 DEBUG : dir: reading active writers 2022/04/15 06:40:37 DEBUG : file1: reading active writers 2022/04/15 06:40:37 DEBUG : file1: active writers 1 2022/04/15 06:40:37 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:38 DEBUG : dir: Looking for writers 2022/04/15 06:40:38 DEBUG : : Looking for writers 2022/04/15 06:40:38 DEBUG : dir: reading active writers 2022/04/15 06:40:38 DEBUG : file1: reading active writers 2022/04/15 06:40:38 DEBUG : file1: active writers 1 2022/04/15 06:40:38 DEBUG : Still 1 writers active and 1 cache items in use, waiting 1s 2022/04/15 06:40:39 ERROR : Exiting even though 1 writers active and 1 cache items in use after 30s Cache{ "file1": &{c:0xc000765b00 mu:{state:0 sema:0} cond:0xc000380200 name:file1 opens:1 downloaders: o: fd:0xc000748498 modified:true info:{ModTime:{wall:13875136019030699546 ext:684387758830 loc:0x2b713a0} ATime:{wall:13875136019030699546 ext:684387758830 loc:0x2b713a0} Size:0 Rs:[] Fingerprint: Dirty:true} writeBackID:0 pendingAccesses:0 beingReset:false}, } 2022/04/15 06:40:39 DEBUG : >WaitForWriters: 2022/04/15 06:40:39 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:858 testing.go:836 read_write_test.go:664 Error: Should be true Test: TestRWFileModTimeWithOpenWriters Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:858 testing.go:836 read_write_test.go:664 Error: Should be true Test: TestRWFileModTimeWithOpenWriters Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:858 testing.go:836 read_write_test.go:664 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWFileModTimeWithOpenWriters Messages: directories --- FAIL: TestRWFileModTimeWithOpenWriters (40.92s) === RUN TestRWCacheRename run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:40:49 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:40:49 DEBUG : vfs cache: root is "/home/rclone/.cache/rclone" 2022/04/15 06:40:49 DEBUG : vfs cache: data root is "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:49 DEBUG : vfs cache: metadata root is "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:49 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfs/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:49 DEBUG : Creating backend with remote "/home/rclone/.cache/rclone/vfsMeta/TestMega/rclone-test-vugureh4jivujif9tokehot6" 2022/04/15 06:40:49 DEBUG : rename_me: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:40:49 DEBUG : rename_me: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:40:49 DEBUG : rename_me: newRWFileHandle: 2022/04/15 06:40:49 DEBUG : rename_me(0xc0023d9440): openPending: 2022/04/15 06:40:49 DEBUG : rename_me: vfs cache: truncate to size=0 2022/04/15 06:40:49 DEBUG : : Added virtual directory entry vAddFile: "rename_me" 2022/04/15 06:40:49 DEBUG : rename_me(0xc0023d9440): >openPending: err= 2022/04/15 06:40:49 DEBUG : rename_me: >newRWFileHandle: err= 2022/04/15 06:40:49 DEBUG : : Added virtual directory entry vAddFile: "rename_me" 2022/04/15 06:40:49 DEBUG : rename_me: >Open: fd=rename_me (rw), err= 2022/04/15 06:40:49 DEBUG : rename_me: >OpenFile: fd=rename_me (rw), err= 2022/04/15 06:40:49 DEBUG : rename_me(0xc0023d9440): _writeAt: size=5, off=0 2022/04/15 06:40:49 DEBUG : rename_me(0xc0023d9440): >_writeAt: n=5, err= 2022/04/15 06:40:49 DEBUG : rename_me(0xc0023d9440): close: 2022/04/15 06:40:49 DEBUG : rename_me: vfs cache: setting modification time to 2022-04-15 06:40:49.326701969 +0000 UTC m=+725.302538823 2022/04/15 06:40:49 INFO : rename_me: vfs cache: queuing for upload in 100ms 2022/04/15 06:40:49 DEBUG : vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item rename_me not removed, freed 0 bytes 2022/04/15 06:40:49 INFO : vfs cache: cleaned: objects 1 (was 1) in use 1, to upload 0, uploading 0, total size 5 (was 5) 2022/04/15 06:40:49 DEBUG : rename_me(0xc0023d9440): >close: err= 2022/04/15 06:40:49 INFO : rename_me: vfs cache: renamed in cache to "i_was_renamed" 2022/04/15 06:40:49 DEBUG : i_was_renamed: Updating file with 0xc0008c1d40 2022/04/15 06:40:49 DEBUG : : Added virtual directory entry vDel: "rename_me" 2022/04/15 06:40:49 DEBUG : : Added virtual directory entry vAddFile: "i_was_renamed" 2022/04/15 06:40:49 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:40:49 DEBUG : dir: Looking for writers 2022/04/15 06:40:49 DEBUG : : Looking for writers 2022/04/15 06:40:49 DEBUG : dir: reading active writers 2022/04/15 06:40:49 DEBUG : i_was_renamed: reading active writers 2022/04/15 06:40:49 DEBUG : Still 0 writers active and 1 cache items in use, waiting 10ms 2022/04/15 06:40:49 DEBUG : dir: Looking for writers 2022/04/15 06:40:49 DEBUG : : Looking for writers 2022/04/15 06:40:49 DEBUG : i_was_renamed: reading active writers 2022/04/15 06:40:49 DEBUG : dir: reading active writers 2022/04/15 06:40:49 DEBUG : Still 0 writers active and 1 cache items in use, waiting 20ms 2022/04/15 06:40:49 DEBUG : dir: Looking for writers 2022/04/15 06:40:49 DEBUG : : Looking for writers 2022/04/15 06:40:49 DEBUG : dir: reading active writers 2022/04/15 06:40:49 DEBUG : i_was_renamed: reading active writers 2022/04/15 06:40:49 DEBUG : Still 0 writers active and 1 cache items in use, waiting 40ms 2022/04/15 06:40:49 DEBUG : dir: Looking for writers 2022/04/15 06:40:49 DEBUG : : Looking for writers 2022/04/15 06:40:49 DEBUG : dir: reading active writers 2022/04/15 06:40:49 DEBUG : i_was_renamed: reading active writers 2022/04/15 06:40:49 DEBUG : Still 0 writers active and 1 cache items in use, waiting 80ms 2022/04/15 06:40:49 DEBUG : i_was_renamed: vfs cache: starting upload 2022/04/15 06:40:49 DEBUG : dir: Looking for writers 2022/04/15 06:40:49 DEBUG : : Looking for writers 2022/04/15 06:40:49 DEBUG : dir: reading active writers 2022/04/15 06:40:49 DEBUG : i_was_renamed: reading active writers 2022/04/15 06:40:49 DEBUG : Still 0 writers active and 1 cache items in use, waiting 160ms 2022/04/15 06:40:49 INFO : i_was_renamed: Copied (new) 2022/04/15 06:40:49 DEBUG : i_was_renamed: vfs cache: fingerprint now "5" 2022/04/15 06:40:49 DEBUG : i_was_renamed: vfs cache: writeback object to VFS layer 2022/04/15 06:40:49 DEBUG : : Added virtual directory entry vAddFile: "i_was_renamed" 2022/04/15 06:40:49 INFO : i_was_renamed: vfs cache: upload succeeded try #1 2022/04/15 06:40:49 DEBUG : dir: Looking for writers 2022/04/15 06:40:49 DEBUG : : Looking for writers 2022/04/15 06:40:49 DEBUG : dir: reading active writers 2022/04/15 06:40:49 DEBUG : i_was_renamed: reading active writers 2022/04/15 06:40:49 DEBUG : >WaitForWriters: 2022/04/15 06:40:49 DEBUG : vfs cache: cleaner exiting run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:726 Error: Should be true Test: TestRWCacheRename Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:726 Error: Should be true Test: TestRWCacheRename Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 read_write_test.go:726 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestRWCacheRename Messages: directories --- FAIL: TestRWCacheRename (10.43s) === RUN TestCaseSensitivity run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 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 vfs_case_test.go:26 Error: Should be true Test: TestCaseSensitivity Messages: listing wrong, want FiLeA (5), FiLeB (5) got FiLeA (5), FiLeB (5), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 vfs_case_test.go:26 Error: Should be true Test: TestCaseSensitivity Messages: Unexpected file "dir/file1" 2022/04/15 06:41:07 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:41:07 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:41:07 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:41:07 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:41:07 DEBUG : FiLeA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:07 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:07 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:07 DEBUG : FiLeA: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:07 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:07 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:08 DEBUG : FiLeA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:08 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:08 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:08 DEBUG : FiLeA: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:08 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:08 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:08 DEBUG : FiLeA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:08 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:08 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:08 DEBUG : FiLeA: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:08 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:08 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:09 DEBUG : FiLeB: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:09 DEBUG : FiLeB: Open: flags=O_RDONLY 2022/04/15 06:41:09 DEBUG : FiLeB: >Open: fd=FiLeB (r), err= 2022/04/15 06:41:09 DEBUG : FiLeB: >OpenFile: fd=FiLeB (r), err= 2022/04/15 06:41:09 DEBUG : FiLeB: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:09 DEBUG : FiLeB: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:09 DEBUG : FilEb: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:09 DEBUG : FilEb: Open: flags=O_RDONLY 2022/04/15 06:41:09 DEBUG : FilEb: >Open: fd=FilEb (r), err= 2022/04/15 06:41:09 DEBUG : FilEb: >OpenFile: fd=FilEb (r), err= 2022/04/15 06:41:09 DEBUG : FilEb: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:10 DEBUG : FilEb: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 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 vfs_case_test.go:68 Error: Should be true Test: TestCaseSensitivity Messages: listing wrong, want FiLeA (5), FiLeB (5), FilEb (5) got FiLeA (5), FiLeB (5), FilEb (5), dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 vfs_case_test.go:68 Error: Should be true Test: TestCaseSensitivity Messages: Unexpected file "dir/file1" 2022/04/15 06:41:18 DEBUG : FiLeA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:18 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:18 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:18 DEBUG : FiLeA: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:18 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:18 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:18 DEBUG : fileA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:18 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:18 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:18 DEBUG : fileA: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:18 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:18 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:19 DEBUG : filea: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:19 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:19 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:19 DEBUG : filea: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:19 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:19 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:20 DEBUG : FILEA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:20 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:20 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:20 DEBUG : FILEA: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:20 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:20 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:20 DEBUG : FiLeB: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:20 DEBUG : FiLeB: Open: flags=O_RDONLY 2022/04/15 06:41:20 DEBUG : FiLeB: >Open: fd=FiLeB (r), err= 2022/04/15 06:41:20 DEBUG : FiLeB: >OpenFile: fd=FiLeB (r), err= 2022/04/15 06:41:20 DEBUG : FiLeB: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:20 DEBUG : FiLeB: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:21 DEBUG : FilEb: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:21 DEBUG : FilEb: Open: flags=O_RDONLY 2022/04/15 06:41:21 DEBUG : FilEb: >Open: fd=FilEb (r), err= 2022/04/15 06:41:21 DEBUG : FilEb: >OpenFile: fd=FilEb (r), err= 2022/04/15 06:41:21 DEBUG : FilEb: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:21 DEBUG : FilEb: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:21 DEBUG : fileb: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:21 ERROR : /: Dir.Stat error: duplicate filename "fileb" detected with --vfs-case-insensitive set 2022/04/15 06:41:21 DEBUG : fileb: >OpenFile: fd=, err=duplicate filename "fileb" detected with --vfs-case-insensitive set 2022/04/15 06:41:21 DEBUG : FILEB: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:21 ERROR : /: Dir.Stat error: duplicate filename "FILEB" detected with --vfs-case-insensitive set 2022/04/15 06:41:21 DEBUG : FILEB: >OpenFile: fd=, err=duplicate filename "FILEB" detected with --vfs-case-insensitive set 2022/04/15 06:41:21 DEBUG : FiLeA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:21 DEBUG : FiLeA: Open: flags=O_RDONLY 2022/04/15 06:41:21 DEBUG : FiLeA: >Open: fd=FiLeA (r), err= 2022/04/15 06:41:21 DEBUG : FiLeA: >OpenFile: fd=FiLeA (r), err= 2022/04/15 06:41:21 DEBUG : FiLeA: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:21 DEBUG : FiLeA: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:22 DEBUG : fileA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:22 DEBUG : fileA: >OpenFile: fd=, err=file does not exist 2022/04/15 06:41:22 DEBUG : filea: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:22 DEBUG : filea: >OpenFile: fd=, err=file does not exist 2022/04/15 06:41:22 DEBUG : FILEA: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:22 DEBUG : FILEA: >OpenFile: fd=, err=file does not exist 2022/04/15 06:41:22 DEBUG : FiLeB: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:22 DEBUG : FiLeB: Open: flags=O_RDONLY 2022/04/15 06:41:22 DEBUG : FiLeB: >Open: fd=FiLeB (r), err= 2022/04/15 06:41:22 DEBUG : FiLeB: >OpenFile: fd=FiLeB (r), err= 2022/04/15 06:41:22 DEBUG : FiLeB: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:22 DEBUG : FiLeB: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:23 DEBUG : FilEb: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:23 DEBUG : FilEb: Open: flags=O_RDONLY 2022/04/15 06:41:23 DEBUG : FilEb: >Open: fd=FilEb (r), err= 2022/04/15 06:41:23 DEBUG : FilEb: >OpenFile: fd=FilEb (r), err= 2022/04/15 06:41:23 DEBUG : FilEb: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:41:23 DEBUG : FilEb: ChunkedReader.Read at 0 length 5 chunkOffset 0 chunkSize 134217728 2022/04/15 06:41:23 DEBUG : fileb: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:23 DEBUG : fileb: >OpenFile: fd=, err=file does not exist 2022/04/15 06:41:23 DEBUG : FILEB: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:41:23 DEBUG : FILEB: >OpenFile: fd=, err=file does not exist 2022/04/15 06:41:23 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:41:23 DEBUG : dir: Looking for writers 2022/04/15 06:41:23 DEBUG : : Looking for writers 2022/04/15 06:41:23 DEBUG : FiLeA: reading active writers 2022/04/15 06:41:23 DEBUG : FiLeB: reading active writers 2022/04/15 06:41:23 DEBUG : FilEb: reading active writers 2022/04/15 06:41:23 DEBUG : dir: reading active writers 2022/04/15 06:41:23 DEBUG : >WaitForWriters: 2022/04/15 06:41:23 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:41:23 DEBUG : dir: Looking for writers 2022/04/15 06:41:23 DEBUG : : Looking for writers 2022/04/15 06:41:23 DEBUG : FiLeA: reading active writers 2022/04/15 06:41:23 DEBUG : FiLeB: reading active writers 2022/04/15 06:41:23 DEBUG : FilEb: reading active writers 2022/04/15 06:41:23 DEBUG : dir: reading active writers 2022/04/15 06:41:23 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_case_test.go:101 Error: Should be true Test: TestCaseSensitivity Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_case_test.go:101 Error: Should be true Test: TestCaseSensitivity Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_case_test.go:101 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestCaseSensitivity Messages: directories --- FAIL: TestCaseSensitivity (34.45s) === RUN TestVFSNew run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:41:34 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:41:34 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:41:34 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': Re-using VFS from active cache 2022/04/15 06:41:34 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:41:34 DEBUG : : Looking for writers 2022/04/15 06:41:34 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:161 Error: Should be true Test: TestVFSNew Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:161 Error: Should be true Test: TestVFSNew Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:161 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSNew Messages: directories --- FAIL: TestVFSNew (10.05s) === RUN TestVFSNewWithOpts run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:41:44 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:41:44 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:41:44 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:41:44 DEBUG : : Looking for writers 2022/04/15 06:41:44 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:177 Error: Should be true Test: TestVFSNewWithOpts Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:177 Error: Should be true Test: TestVFSNewWithOpts Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:177 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSNewWithOpts Messages: directories --- FAIL: TestVFSNewWithOpts (10.04s) === RUN TestVFSRoot run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:41:54 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:41:54 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:41:54 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:41:54 DEBUG : : Looking for writers 2022/04/15 06:41:54 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:189 Error: Should be true Test: TestVFSRoot Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:189 Error: Should be true Test: TestVFSRoot Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:189 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSRoot Messages: directories --- FAIL: TestVFSRoot (10.04s) === RUN TestVFSStat run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:42:04 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:42:04 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 vfs_test.go:197 Error: Should be true Test: TestVFSStat Messages: listing wrong, want dir/file2 (14), file1 (14) got dir/file1 (14), dir/file2 (14), file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 vfs_test.go:197 Error: Should be true Test: TestVFSStat Messages: Unexpected file "dir/file1" 2022/04/15 06:42:13 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:42:13 DEBUG : dir: Looking for writers 2022/04/15 06:42:13 DEBUG : file1: reading active writers 2022/04/15 06:42:13 DEBUG : file2: reading active writers 2022/04/15 06:42:13 DEBUG : : Looking for writers 2022/04/15 06:42:13 DEBUG : dir: reading active writers 2022/04/15 06:42:13 DEBUG : file1: reading active writers 2022/04/15 06:42:13 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:225 Error: Should be true Test: TestVFSStat Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:225 Error: Should be true Test: TestVFSStat Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:225 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSStat Messages: directories --- FAIL: TestVFSStat (19.18s) === RUN TestVFSStatParent run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:42:23 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:42:23 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 vfs_test.go:233 Error: Should be true Test: TestVFSStatParent Messages: listing wrong, want dir/file2 (14), file1 (14) got dir/file1 (14), dir/file2 (14), file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 vfs_test.go:233 Error: Should be true Test: TestVFSStatParent Messages: Unexpected file "dir/file1" 2022/04/15 06:42:32 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:42:32 DEBUG : dir: Looking for writers 2022/04/15 06:42:32 DEBUG : : Looking for writers 2022/04/15 06:42:32 DEBUG : dir: reading active writers 2022/04/15 06:42:32 DEBUG : file1: reading active writers 2022/04/15 06:42:32 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:258 Error: Should be true Test: TestVFSStatParent Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:258 Error: Should be true Test: TestVFSStatParent Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:258 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 (19.66s) === RUN TestVFSOpenFile run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:42:43 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:42:43 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 vfs_test.go:266 Error: Should be true Test: TestVFSOpenFile Messages: listing wrong, want dir/file2 (14), file1 (14) got dir/file1 (14), dir/file2 (14), file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 vfs_test.go:266 Error: Should be true Test: TestVFSOpenFile Messages: Unexpected file "dir/file1" 2022/04/15 06:42:52 DEBUG : file1: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:42:52 DEBUG : file1: Open: flags=O_RDONLY 2022/04/15 06:42:52 DEBUG : file1: >Open: fd=file1 (r), err= 2022/04/15 06:42:52 DEBUG : file1: >OpenFile: fd=file1 (r), err= 2022/04/15 06:42:52 DEBUG : dir: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:42:52 DEBUG : dir: >OpenFile: fd=dir/ (r), err= 2022/04/15 06:42:52 DEBUG : dir/new_file.txt: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx 2022/04/15 06:42:52 DEBUG : dir/new_file.txt: >OpenFile: fd=, err=file does not exist 2022/04/15 06:42:52 DEBUG : dir/new_file.txt: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:42:52 DEBUG : dir/new_file.txt: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:42:52 DEBUG : dir: Added virtual directory entry vAddFile: "new_file.txt" 2022/04/15 06:42:52 DEBUG : dir/new_file.txt: >Open: fd=dir/new_file.txt (w), err= 2022/04/15 06:42:52 DEBUG : dir/new_file.txt: >OpenFile: fd=dir/new_file.txt (w), err= 2022/04/15 06:42:52 DEBUG : dir: Added virtual directory entry vAddFile: "new_file.txt" 2022/04/15 06:42:52 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (0 bytes), uploading instead of streaming 2022/04/15 06:42:52 INFO : dir/new_file.txt: Copied (new) 2022/04/15 06:42:52 DEBUG : dir: Added virtual directory entry vAddFile: "new_file.txt" 2022/04/15 06:42:52 DEBUG : not found/new_file.txt: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:42:52 DEBUG : not found/new_file.txt: >OpenFile: fd=, err=file does not exist 2022/04/15 06:42:52 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:42:52 DEBUG : dir: Looking for writers 2022/04/15 06:42:52 DEBUG : file1: reading active writers 2022/04/15 06:42:52 DEBUG : file2: reading active writers 2022/04/15 06:42:52 DEBUG : new_file.txt: reading active writers 2022/04/15 06:42:52 DEBUG : : Looking for writers 2022/04/15 06:42:52 DEBUG : dir: reading active writers 2022/04/15 06:42:52 DEBUG : file1: reading active writers 2022/04/15 06:42:52 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:293 Error: Should be true Test: TestVFSOpenFile Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:293 Error: Should be true Test: TestVFSOpenFile Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:293 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSOpenFile Messages: directories --- FAIL: TestVFSOpenFile (20.39s) === RUN TestVFSRename run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:43:03 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:43:03 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 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 vfs_test.go:305 Error: Should be true Test: TestVFSRename Messages: listing wrong, want dir/file2 (14) got dir/file1 (14), dir/file2 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 vfs_test.go:305 Error: Should be true Test: TestVFSRename Messages: Unexpected file "dir/file1" 2022/04/15 06:43:10 INFO : dir/file1: Deleted 2022/04/15 06:43:11 INFO : dir/file2: Moved (server-side) to: dir/file1 2022/04/15 06:43:11 DEBUG : dir/file1: Updating file with dir/file1 0xc000744600 2022/04/15 06:43:11 DEBUG : dir: Added virtual directory entry vDel: "file2" 2022/04/15 06:43:11 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 vfs_test.go:310 Error: Should be true Test: TestVFSRename 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 vfs_test.go:310 Error: Should be true Test: TestVFSRename Messages: Unexpected file "dir/file1" 2022/04/15 06:43:19 INFO : dir/file1: Moved (server-side) to: file0 2022/04/15 06:43:19 DEBUG : file0: Updating file with file0 0xc000744600 2022/04/15 06:43:19 DEBUG : dir: Added virtual directory entry vDel: "file1" 2022/04/15 06:43:19 DEBUG : : Added virtual directory entry vAddFile: "file0" 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 vfs_test.go:315 Error: Should be true Test: TestVFSRename Messages: listing wrong, want file0 (14) got dir/file1 (14), file0 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 fstest.go:351 run.go:342 vfs_test.go:315 Error: Should be true Test: TestVFSRename Messages: Unexpected file "dir/file1" 2022/04/15 06:43:26 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:43:26 DEBUG : dir: Looking for writers 2022/04/15 06:43:26 DEBUG : : Looking for writers 2022/04/15 06:43:26 DEBUG : dir: reading active writers 2022/04/15 06:43:26 DEBUG : file0: reading active writers 2022/04/15 06:43:26 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:322 Error: Should be true Test: TestVFSRename Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:322 Error: Should be true Test: TestVFSRename Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:322 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSRename Messages: directories --- FAIL: TestVFSRename (32.84s) === RUN TestVFSStatfs run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:43:36 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:43:36 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:43:36 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:43:36 DEBUG : : Looking for writers 2022/04/15 06:43:36 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:373 Error: Should be true Test: TestVFSStatfs Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:373 Error: Should be true Test: TestVFSStatfs Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 vfs_test.go:373 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestVFSStatfs Messages: directories --- FAIL: TestVFSStatfs (10.19s) === RUN TestWriteFileHandleMethods run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:43:46 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:43:46 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:43:46 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:43:46 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:43:46 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:46 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:43:46 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:43:46 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:46 ERROR : file1: WriteFileHandle: Read: Can't read and write to file without --vfs-cache-mode >= minimal 2022/04/15 06:43:46 ERROR : file1: WriteFileHandle: ReadAt: Can't read and write to file without --vfs-cache-mode >= minimal 2022/04/15 06:43:46 ERROR : file1: WriteFileHandle: Truncate: Can't change size without --vfs-cache-mode >= writes 2022/04/15 06:43:46 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (5 bytes), uploading instead of streaming 2022/04/15 06:43:46 INFO : file1: Copied (new) 2022/04/15 06:43:46 DEBUG : : Added virtual directory entry vAddFile: "file1" dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:93 Error: Not equal: expected: []string{"file1,5,false"} actual : []string{"dir,0,true", "file1,5,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=13) "file1,5,false" Test: TestWriteFileHandleMethods 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 write_test.go:97 Error: Should be true Test: TestWriteFileHandleMethods Messages: listing wrong, want file1 (5) got dir/file1 (14), file1 (5) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 write_test.go:97 Error: Should be true Test: TestWriteFileHandleMethods Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 write_test.go:97 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestWriteFileHandleMethods Messages: directories 2022/04/15 06:43:53 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:43:53 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:43:53 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:53 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:43:53 DEBUG : file1: >OpenFile: fd=file1 (w), err= dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:104 Error: Not equal: expected: []string{"file1,5,false"} actual : []string{"dir,0,true", "file1,5,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=13) "file1,5,false" Test: TestWriteFileHandleMethods 2022/04/15 06:43:53 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:43:53 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:43:53 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:53 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:43:53 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:43:53 ERROR : file1: WriteFileHandle: Can't open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:113 Error: Not equal: expected: []string{"file1,5,false"} actual : []string{"dir,0,true", "file1,5,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=13) "file1,5,false" Test: TestWriteFileHandleMethods 2022/04/15 06:43:53 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE|O_TRUNC, perm=-rwxrwxrwx 2022/04/15 06:43:53 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE|O_TRUNC 2022/04/15 06:43:53 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:53 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:43:53 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:43:53 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:53 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (0 bytes), uploading instead of streaming 2022/04/15 06:43:54 INFO : file1: Copied (new) 2022/04/15 06:43:54 DEBUG : : Added virtual directory entry vAddFile: "file1" dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:122 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: TestWriteFileHandleMethods 2022/04/15 06:43:54 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE|O_TRUNC, perm=-rwxrwxrwx 2022/04/15 06:43:54 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE|O_TRUNC 2022/04/15 06:43:54 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:54 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:43:54 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:43:54 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:43:54 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (7 bytes), uploading instead of streaming 2022/04/15 06:43:55 INFO : file1: Copied (new) 2022/04/15 06:43:55 DEBUG : : Added virtual directory entry vAddFile: "file1" dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:131 Error: Not equal: expected: []string{"file1,7,false"} actual : []string{"dir,0,true", "file1,7,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=13) "file1,7,false" Test: TestWriteFileHandleMethods 2022/04/15 06:43:55 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:43:55 DEBUG : dir: Looking for writers 2022/04/15 06:43:55 DEBUG : : Looking for writers 2022/04/15 06:43:55 DEBUG : dir: reading active writers 2022/04/15 06:43:55 DEBUG : file1: reading active writers 2022/04/15 06:43:55 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 write_test.go:132 Error: Should be true Test: TestWriteFileHandleMethods Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:132 Error: Should be true Test: TestWriteFileHandleMethods Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:132 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestWriteFileHandleMethods Messages: directories --- FAIL: TestWriteFileHandleMethods (18.81s) === RUN TestWriteFileHandleWriteAt run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:44:05 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:44:05 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:44:05 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:44:05 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:44:05 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:05 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:44:05 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:44:05 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:05 DEBUG : file1: waiting for in-sequence write to 100 for 1s 2022/04/15 06:44:06 DEBUG : file1: aborting in-sequence write wait, off=100 2022/04/15 06:44:06 DEBUG : file1: failed to wait for in-sequence write to 100 2022/04/15 06:44:06 ERROR : file1: WriteFileHandle.Write: can't seek in file without --vfs-cache-mode >= writes 2022/04/15 06:44:06 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (11 bytes), uploading instead of streaming 2022/04/15 06:44:06 INFO : file1: Copied (new) 2022/04/15 06:44:06 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:06 ERROR : file1: WriteFileHandle.Write: error: Bad file descriptor dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:172 Error: Not equal: expected: []string{"file1,11,false"} actual : []string{"dir,0,true", "file1,11,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=14) "file1,11,false" Test: TestWriteFileHandleWriteAt 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 write_test.go:176 Error: Should be true Test: TestWriteFileHandleWriteAt Messages: listing wrong, want file1 (11) got dir/file1 (14), file1 (11) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 write_test.go:176 Error: Should be true Test: TestWriteFileHandleWriteAt Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 write_test.go:176 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestWriteFileHandleWriteAt Messages: directories 2022/04/15 06:44:13 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:44:13 DEBUG : dir: Looking for writers 2022/04/15 06:44:13 DEBUG : : Looking for writers 2022/04/15 06:44:13 DEBUG : dir: reading active writers 2022/04/15 06:44:13 DEBUG : file1: reading active writers 2022/04/15 06:44:13 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 write_test.go:177 Error: Should be true Test: TestWriteFileHandleWriteAt Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:177 Error: Should be true Test: TestWriteFileHandleWriteAt Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:177 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestWriteFileHandleWriteAt Messages: directories --- FAIL: TestWriteFileHandleWriteAt (18.39s) === RUN TestWriteFileHandleFlush run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:44:23 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:44:23 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:44:23 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:44:23 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:44:23 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:23 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:44:23 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:44:23 DEBUG : file1: WriteFileHandle.Flush unwritten handle, writing 0 bytes to avoid race conditions 2022/04/15 06:44:23 DEBUG : : Added virtual directory entry vAddFile: "file1" dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:189 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 2022/04/15 06:44:23 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (5 bytes), uploading instead of streaming 2022/04/15 06:44:24 INFO : file1: Copied (new) 2022/04/15 06:44:24 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:24 DEBUG : file1: WriteFileHandle.Flush nothing to do dir_test.go:252: Error Trace: dir_test.go:252 write_test.go:209 Error: Not equal: expected: []string{"file1,5,false"} actual : []string{"dir,0,true", "file1,5,false"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) (len=1) { +([]string) (len=2) { + (string) (len=10) "dir,0,true", (string) (len=13) "file1,5,false" Test: TestWriteFileHandleFlush 2022/04/15 06:44:24 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:44:24 DEBUG : dir: Looking for writers 2022/04/15 06:44:24 DEBUG : : Looking for writers 2022/04/15 06:44:24 DEBUG : dir: reading active writers 2022/04/15 06:44:24 DEBUG : file1: reading active writers 2022/04/15 06:44:24 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 write_test.go:210 Error: Should be true Test: TestWriteFileHandleFlush Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:210 Error: Should be true Test: TestWriteFileHandleFlush Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:210 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestWriteFileHandleFlush Messages: directories --- FAIL: TestWriteFileHandleFlush (10.66s) === RUN TestWriteFileHandleRelease run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:44:34 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:44:34 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:44:34 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:44:34 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:44:34 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:34 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:44:34 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:44:34 DEBUG : file1: WriteFileHandle.Release closing 2022/04/15 06:44:34 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:34 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (0 bytes), uploading instead of streaming 2022/04/15 06:44:34 INFO : file1: Copied (new) 2022/04/15 06:44:34 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:34 DEBUG : file1: WriteFileHandle.Release nothing to do 2022/04/15 06:44:34 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:44:34 DEBUG : dir: Looking for writers 2022/04/15 06:44:34 DEBUG : : Looking for writers 2022/04/15 06:44:34 DEBUG : file1: reading active writers 2022/04/15 06:44:34 DEBUG : dir: reading active writers 2022/04/15 06:44:34 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 write_test.go:229 Error: Should be true Test: TestWriteFileHandleRelease Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:229 Error: Should be true Test: TestWriteFileHandleRelease Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:229 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestWriteFileHandleRelease Messages: directories --- FAIL: TestWriteFileHandleRelease (10.49s) === RUN TestWriteFileModTimeWithOpenWriters run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:44:44 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:44:44 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:44:44 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:44:44 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:44:44 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:44:44 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:44:44 DEBUG : file1: >OpenFile: fd=file1 (w), err= write_test.go:265: can't set mod time 2022/04/15 06:44:44 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:44:44 DEBUG : dir: Looking for writers 2022/04/15 06:44:44 DEBUG : : Looking for writers 2022/04/15 06:44:44 DEBUG : dir: reading active writers 2022/04/15 06:44:44 DEBUG : file1: reading active writers 2022/04/15 06:44:44 DEBUG : file1: active writers 1 2022/04/15 06:44:44 DEBUG : Still 1 writers active and 0 cache items in use, waiting 10ms 2022/04/15 06:44:44 DEBUG : dir: Looking for writers 2022/04/15 06:44:44 DEBUG : : Looking for writers 2022/04/15 06:44:44 DEBUG : file1: reading active writers 2022/04/15 06:44:44 DEBUG : file1: active writers 1 2022/04/15 06:44:44 DEBUG : dir: reading active writers 2022/04/15 06:44:44 DEBUG : Still 1 writers active and 0 cache items in use, waiting 20ms 2022/04/15 06:44:44 DEBUG : dir: Looking for writers 2022/04/15 06:44:44 DEBUG : : Looking for writers 2022/04/15 06:44:44 DEBUG : dir: reading active writers 2022/04/15 06:44:44 DEBUG : file1: reading active writers 2022/04/15 06:44:44 DEBUG : file1: active writers 1 2022/04/15 06:44:44 DEBUG : Still 1 writers active and 0 cache items in use, waiting 40ms 2022/04/15 06:44:45 DEBUG : dir: Looking for writers 2022/04/15 06:44:45 DEBUG : : Looking for writers 2022/04/15 06:44:45 DEBUG : dir: reading active writers 2022/04/15 06:44:45 DEBUG : file1: reading active writers 2022/04/15 06:44:45 DEBUG : file1: active writers 1 2022/04/15 06:44:45 DEBUG : Still 1 writers active and 0 cache items in use, waiting 80ms 2022/04/15 06:44:45 DEBUG : dir: Looking for writers 2022/04/15 06:44:45 DEBUG : : Looking for writers 2022/04/15 06:44:45 DEBUG : dir: reading active writers 2022/04/15 06:44:45 DEBUG : file1: reading active writers 2022/04/15 06:44:45 DEBUG : file1: active writers 1 2022/04/15 06:44:45 DEBUG : Still 1 writers active and 0 cache items in use, waiting 160ms 2022/04/15 06:44:45 DEBUG : dir: Looking for writers 2022/04/15 06:44:45 DEBUG : : Looking for writers 2022/04/15 06:44:45 DEBUG : dir: reading active writers 2022/04/15 06:44:45 DEBUG : file1: reading active writers 2022/04/15 06:44:45 DEBUG : file1: active writers 1 2022/04/15 06:44:45 DEBUG : Still 1 writers active and 0 cache items in use, waiting 320ms 2022/04/15 06:44:45 DEBUG : dir: Looking for writers 2022/04/15 06:44:45 DEBUG : : Looking for writers 2022/04/15 06:44:45 DEBUG : dir: reading active writers 2022/04/15 06:44:45 DEBUG : file1: reading active writers 2022/04/15 06:44:45 DEBUG : file1: active writers 1 2022/04/15 06:44:45 DEBUG : Still 1 writers active and 0 cache items in use, waiting 640ms 2022/04/15 06:44:46 DEBUG : dir: Looking for writers 2022/04/15 06:44:46 DEBUG : : Looking for writers 2022/04/15 06:44:46 DEBUG : dir: reading active writers 2022/04/15 06:44:46 DEBUG : file1: reading active writers 2022/04/15 06:44:46 DEBUG : file1: active writers 1 2022/04/15 06:44:46 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:47 DEBUG : dir: Looking for writers 2022/04/15 06:44:47 DEBUG : : Looking for writers 2022/04/15 06:44:47 DEBUG : dir: reading active writers 2022/04/15 06:44:47 DEBUG : file1: reading active writers 2022/04/15 06:44:47 DEBUG : file1: active writers 1 2022/04/15 06:44:47 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:48 DEBUG : dir: Looking for writers 2022/04/15 06:44:48 DEBUG : : Looking for writers 2022/04/15 06:44:48 DEBUG : dir: reading active writers 2022/04/15 06:44:48 DEBUG : file1: reading active writers 2022/04/15 06:44:48 DEBUG : file1: active writers 1 2022/04/15 06:44:48 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:49 DEBUG : dir: Looking for writers 2022/04/15 06:44:49 DEBUG : : Looking for writers 2022/04/15 06:44:49 DEBUG : dir: reading active writers 2022/04/15 06:44:49 DEBUG : file1: reading active writers 2022/04/15 06:44:49 DEBUG : file1: active writers 1 2022/04/15 06:44:49 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:50 DEBUG : dir: Looking for writers 2022/04/15 06:44:50 DEBUG : : Looking for writers 2022/04/15 06:44:50 DEBUG : dir: reading active writers 2022/04/15 06:44:50 DEBUG : file1: reading active writers 2022/04/15 06:44:50 DEBUG : file1: active writers 1 2022/04/15 06:44:50 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:51 DEBUG : dir: Looking for writers 2022/04/15 06:44:51 DEBUG : : Looking for writers 2022/04/15 06:44:51 DEBUG : dir: reading active writers 2022/04/15 06:44:51 DEBUG : file1: reading active writers 2022/04/15 06:44:51 DEBUG : file1: active writers 1 2022/04/15 06:44:51 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:52 DEBUG : dir: Looking for writers 2022/04/15 06:44:52 DEBUG : : Looking for writers 2022/04/15 06:44:52 DEBUG : dir: reading active writers 2022/04/15 06:44:52 DEBUG : file1: reading active writers 2022/04/15 06:44:52 DEBUG : file1: active writers 1 2022/04/15 06:44:52 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:53 DEBUG : dir: Looking for writers 2022/04/15 06:44:53 DEBUG : : Looking for writers 2022/04/15 06:44:53 DEBUG : dir: reading active writers 2022/04/15 06:44:53 DEBUG : file1: reading active writers 2022/04/15 06:44:53 DEBUG : file1: active writers 1 2022/04/15 06:44:53 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:54 DEBUG : dir: Looking for writers 2022/04/15 06:44:54 DEBUG : : Looking for writers 2022/04/15 06:44:54 DEBUG : dir: reading active writers 2022/04/15 06:44:54 DEBUG : file1: reading active writers 2022/04/15 06:44:54 DEBUG : file1: active writers 1 2022/04/15 06:44:54 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:55 DEBUG : dir: Looking for writers 2022/04/15 06:44:55 DEBUG : : Looking for writers 2022/04/15 06:44:55 DEBUG : dir: reading active writers 2022/04/15 06:44:55 DEBUG : file1: reading active writers 2022/04/15 06:44:55 DEBUG : file1: active writers 1 2022/04/15 06:44:55 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:56 DEBUG : dir: Looking for writers 2022/04/15 06:44:56 DEBUG : : Looking for writers 2022/04/15 06:44:56 DEBUG : dir: reading active writers 2022/04/15 06:44:56 DEBUG : file1: reading active writers 2022/04/15 06:44:56 DEBUG : file1: active writers 1 2022/04/15 06:44:56 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:57 DEBUG : dir: Looking for writers 2022/04/15 06:44:57 DEBUG : : Looking for writers 2022/04/15 06:44:57 DEBUG : dir: reading active writers 2022/04/15 06:44:57 DEBUG : file1: reading active writers 2022/04/15 06:44:57 DEBUG : file1: active writers 1 2022/04/15 06:44:57 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:58 DEBUG : dir: Looking for writers 2022/04/15 06:44:58 DEBUG : : Looking for writers 2022/04/15 06:44:58 DEBUG : dir: reading active writers 2022/04/15 06:44:58 DEBUG : file1: reading active writers 2022/04/15 06:44:58 DEBUG : file1: active writers 1 2022/04/15 06:44:58 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:44:59 DEBUG : dir: Looking for writers 2022/04/15 06:44:59 DEBUG : : Looking for writers 2022/04/15 06:44:59 DEBUG : dir: reading active writers 2022/04/15 06:44:59 DEBUG : file1: reading active writers 2022/04/15 06:44:59 DEBUG : file1: active writers 1 2022/04/15 06:44:59 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:00 DEBUG : dir: Looking for writers 2022/04/15 06:45:00 DEBUG : : Looking for writers 2022/04/15 06:45:00 DEBUG : dir: reading active writers 2022/04/15 06:45:00 DEBUG : file1: reading active writers 2022/04/15 06:45:00 DEBUG : file1: active writers 1 2022/04/15 06:45:00 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:01 DEBUG : dir: Looking for writers 2022/04/15 06:45:01 DEBUG : : Looking for writers 2022/04/15 06:45:01 DEBUG : dir: reading active writers 2022/04/15 06:45:01 DEBUG : file1: reading active writers 2022/04/15 06:45:01 DEBUG : file1: active writers 1 2022/04/15 06:45:01 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:02 DEBUG : dir: Looking for writers 2022/04/15 06:45:02 DEBUG : : Looking for writers 2022/04/15 06:45:02 DEBUG : dir: reading active writers 2022/04/15 06:45:02 DEBUG : file1: reading active writers 2022/04/15 06:45:02 DEBUG : file1: active writers 1 2022/04/15 06:45:02 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:03 DEBUG : dir: Looking for writers 2022/04/15 06:45:03 DEBUG : : Looking for writers 2022/04/15 06:45:03 DEBUG : dir: reading active writers 2022/04/15 06:45:03 DEBUG : file1: reading active writers 2022/04/15 06:45:03 DEBUG : file1: active writers 1 2022/04/15 06:45:03 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:04 DEBUG : dir: Looking for writers 2022/04/15 06:45:04 DEBUG : : Looking for writers 2022/04/15 06:45:04 DEBUG : dir: reading active writers 2022/04/15 06:45:04 DEBUG : file1: reading active writers 2022/04/15 06:45:04 DEBUG : file1: active writers 1 2022/04/15 06:45:04 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:05 DEBUG : dir: Looking for writers 2022/04/15 06:45:05 DEBUG : : Looking for writers 2022/04/15 06:45:05 DEBUG : dir: reading active writers 2022/04/15 06:45:05 DEBUG : file1: reading active writers 2022/04/15 06:45:05 DEBUG : file1: active writers 1 2022/04/15 06:45:05 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:06 DEBUG : dir: Looking for writers 2022/04/15 06:45:06 DEBUG : : Looking for writers 2022/04/15 06:45:06 DEBUG : dir: reading active writers 2022/04/15 06:45:06 DEBUG : file1: reading active writers 2022/04/15 06:45:06 DEBUG : file1: active writers 1 2022/04/15 06:45:06 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:07 DEBUG : dir: Looking for writers 2022/04/15 06:45:07 DEBUG : : Looking for writers 2022/04/15 06:45:07 DEBUG : dir: reading active writers 2022/04/15 06:45:07 DEBUG : file1: reading active writers 2022/04/15 06:45:07 DEBUG : file1: active writers 1 2022/04/15 06:45:07 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:08 DEBUG : dir: Looking for writers 2022/04/15 06:45:08 DEBUG : : Looking for writers 2022/04/15 06:45:08 DEBUG : dir: reading active writers 2022/04/15 06:45:08 DEBUG : file1: reading active writers 2022/04/15 06:45:08 DEBUG : file1: active writers 1 2022/04/15 06:45:08 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:09 DEBUG : dir: Looking for writers 2022/04/15 06:45:09 DEBUG : : Looking for writers 2022/04/15 06:45:09 DEBUG : dir: reading active writers 2022/04/15 06:45:09 DEBUG : file1: reading active writers 2022/04/15 06:45:09 DEBUG : file1: active writers 1 2022/04/15 06:45:09 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:10 DEBUG : dir: Looking for writers 2022/04/15 06:45:10 DEBUG : : Looking for writers 2022/04/15 06:45:10 DEBUG : file1: reading active writers 2022/04/15 06:45:10 DEBUG : file1: active writers 1 2022/04/15 06:45:10 DEBUG : dir: reading active writers 2022/04/15 06:45:10 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:11 DEBUG : dir: Looking for writers 2022/04/15 06:45:11 DEBUG : : Looking for writers 2022/04/15 06:45:11 DEBUG : dir: reading active writers 2022/04/15 06:45:11 DEBUG : file1: reading active writers 2022/04/15 06:45:11 DEBUG : file1: active writers 1 2022/04/15 06:45:11 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:12 DEBUG : dir: Looking for writers 2022/04/15 06:45:12 DEBUG : : Looking for writers 2022/04/15 06:45:12 DEBUG : dir: reading active writers 2022/04/15 06:45:12 DEBUG : file1: reading active writers 2022/04/15 06:45:12 DEBUG : file1: active writers 1 2022/04/15 06:45:12 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:13 DEBUG : dir: Looking for writers 2022/04/15 06:45:13 DEBUG : : Looking for writers 2022/04/15 06:45:13 DEBUG : dir: reading active writers 2022/04/15 06:45:13 DEBUG : file1: reading active writers 2022/04/15 06:45:13 DEBUG : file1: active writers 1 2022/04/15 06:45:13 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:14 DEBUG : dir: Looking for writers 2022/04/15 06:45:14 DEBUG : : Looking for writers 2022/04/15 06:45:14 DEBUG : dir: reading active writers 2022/04/15 06:45:14 DEBUG : file1: reading active writers 2022/04/15 06:45:14 DEBUG : file1: active writers 1 2022/04/15 06:45:14 DEBUG : Still 1 writers active and 0 cache items in use, waiting 1s 2022/04/15 06:45:14 ERROR : Exiting even though 1 writers active and 0 cache items in use after 30s Cache: 2022/04/15 06:45:14 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:858 testing.go:836 write_test.go:265 Error: Should be true Test: TestWriteFileModTimeWithOpenWriters Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:858 testing.go:836 write_test.go:265 Error: Should be true Test: TestWriteFileModTimeWithOpenWriters Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 panic.go:642 testing.go:858 testing.go:836 write_test.go:265 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestWriteFileModTimeWithOpenWriters Messages: directories --- FAIL: TestWriteFileModTimeWithOpenWriters (40.04s) === RUN TestFileReadAtZeroLength run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:45:24 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:45:24 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:45:24 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:45:24 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:45:24 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:45:24 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:45:24 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:45:24 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:45:24 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (0 bytes), uploading instead of streaming 2022/04/15 06:45:25 INFO : file1: Copied (new) 2022/04/15 06:45:25 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:45:25 DEBUG : file1: OpenFile: flags=O_RDONLY, perm=---------- 2022/04/15 06:45:25 DEBUG : file1: Open: flags=O_RDONLY 2022/04/15 06:45:25 DEBUG : file1: >Open: fd=file1 (r), err= 2022/04/15 06:45:25 DEBUG : file1: >OpenFile: fd=file1 (r), err= 2022/04/15 06:45:25 DEBUG : file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:45:25 DEBUG : file1: ChunkedReader.Read at 0 length 1024 chunkOffset 0 chunkSize 134217728 2022/04/15 06:45:25 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:45:25 DEBUG : dir: Looking for writers 2022/04/15 06:45:25 DEBUG : : Looking for writers 2022/04/15 06:45:25 DEBUG : dir: reading active writers 2022/04/15 06:45:25 DEBUG : file1: reading active writers 2022/04/15 06:45:25 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 write_test.go:322 write_test.go:325 Error: Should be true Test: TestFileReadAtZeroLength Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:322 write_test.go:325 Error: Should be true Test: TestFileReadAtZeroLength Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:322 write_test.go:325 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestFileReadAtZeroLength Messages: directories --- FAIL: TestFileReadAtZeroLength (10.84s) === RUN TestFileReadAtNonZeroLength run.go:181: Remote "mega root 'rclone-test-vugureh4jivujif9tokehot6'", Local "Local file system at /tmp/rclone2052507487", Modify Window "876000h0m0s" 2022/04/15 06:45:35 INFO : mega root 'rclone-test-vugureh4jivujif9tokehot6': poll-interval is not supported by this remote 2022/04/15 06:45:35 NOTICE: mega root 'rclone-test-vugureh4jivujif9tokehot6': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2022/04/15 06:45:35 DEBUG : file1: OpenFile: flags=O_WRONLY|O_CREATE, perm=-rwxrwxrwx 2022/04/15 06:45:35 DEBUG : file1: Open: flags=O_WRONLY|O_CREATE 2022/04/15 06:45:35 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:45:35 DEBUG : file1: >Open: fd=file1 (w), err= 2022/04/15 06:45:35 DEBUG : file1: >OpenFile: fd=file1 (w), err= 2022/04/15 06:45:35 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:45:35 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': File to upload is small (100 bytes), uploading instead of streaming 2022/04/15 06:45:36 INFO : file1: Copied (new) 2022/04/15 06:45:36 DEBUG : : Added virtual directory entry vAddFile: "file1" 2022/04/15 06:45:36 DEBUG : file1: OpenFile: flags=O_RDONLY, perm=---------- 2022/04/15 06:45:36 DEBUG : file1: Open: flags=O_RDONLY 2022/04/15 06:45:36 DEBUG : file1: >Open: fd=file1 (r), err= 2022/04/15 06:45:36 DEBUG : file1: >OpenFile: fd=file1 (r), err= 2022/04/15 06:45:36 DEBUG : file1: ChunkedReader.openRange at 0 length 134217728 2022/04/15 06:45:36 DEBUG : file1: ChunkedReader.Read at 0 length 1024 chunkOffset 0 chunkSize 134217728 2022/04/15 06:45:37 DEBUG : WaitForWriters: timeout=30s 2022/04/15 06:45:37 DEBUG : dir: Looking for writers 2022/04/15 06:45:37 DEBUG : : Looking for writers 2022/04/15 06:45:37 DEBUG : dir: reading active writers 2022/04/15 06:45:37 DEBUG : file1: reading active writers 2022/04/15 06:45:37 DEBUG : >WaitForWriters: run.go:126: removing dir "dir" failed - try 1/3: directory not empty run.go:126: removing dir "dir" failed - try 2/3: directory not empty run.go:126: removing dir "dir" failed - try 3/3: directory not empty run.go:129: removing dir "dir" failed: directory not empty 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 run.go:174 run.go:376 vfs_test.go:54 write_test.go:322 write_test.go:329 Error: Should be true Test: TestFileReadAtNonZeroLength Messages: listing wrong, want got dir/file1 (14) fstest.go:192: Error Trace: fstest.go:192 fstest.go:309 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:322 write_test.go:329 Error: Should be true Test: TestFileReadAtNonZeroLength Messages: Unexpected file "dir/file1" fstest.go:328: Error Trace: fstest.go:328 fstest.go:339 run.go:174 run.go:376 vfs_test.go:54 write_test.go:322 write_test.go:329 Error: Not equal: expected: []string{} actual : []string{"dir"} Diff: --- Expected +++ Actual @@ -1,2 +1,3 @@ -([]string) { +([]string) (len=1) { + (string) (len=3) "dir" } Test: TestFileReadAtNonZeroLength Messages: directories --- FAIL: TestFileReadAtNonZeroLength (11.44s) FAIL 2022/04/15 06:45:47 DEBUG : mega root 'rclone-test-vugureh4jivujif9tokehot6': Purge remote "./vfs.test -test.v -test.timeout 1h0m0s -remote TestMega: -verbose -test.run '^(TestCaseSensitivity|TestFileReadAtNonZeroLength|TestFileReadAtZeroLength|TestFileRename|TestRWCacheRename|TestRWFileHandleFlushRead|TestRWFileHandleFlushWrite|TestRWFileHandleMethodsRead|TestRWFileHandleMethodsWrite|TestRWFileHandleOpenTests|TestRWFileHandleReadAt|TestRWFileHandleReleaseRead|TestRWFileHandleReleaseWrite|TestRWFileHandleSeek|TestRWFileHandleSizeCreateExisting|TestRWFileHandleSizeCreateNew|TestRWFileHandleSizeTruncateExisting|TestRWFileHandleWriteAt|TestRWFileHandleWriteNoWrite|TestRWFileModTimeWithOpenWriters|TestRcGetVFS|TestReadFileHandleFlush|TestReadFileHandleMethods|TestReadFileHandleReadAt|TestReadFileHandleRelease|TestReadFileHandleSeek|TestVFSNew|TestVFSNewWithOpts|TestVFSOpenFile|TestVFSRename|TestVFSRoot|TestVFSStat|TestVFSStatParent|TestVFSStatfs|TestWriteFileHandleFlush|TestWriteFileHandleMethods|TestWriteFileHandleRelease|TestWriteFileHandleWriteAt|TestWriteFileModTimeWithOpenWriters)$/^(full,forceCache=false|minimal,forceCache=false|minimal,forceCache=true|off,forceCache=false|writes,forceCache=false|writes,forceCache=true)$'" - Finished ERROR in 17m3.794109836s (try 3/5): exit status 1: Failed [TestFileRename/off,forceCache=false TestFileRename/minimal,forceCache=false TestFileRename/minimal,forceCache=true TestFileRename/writes,forceCache=false TestFileRename/full,forceCache=false TestRcGetVFS TestReadFileHandleMethods TestReadFileHandleSeek TestReadFileHandleReadAt TestReadFileHandleFlush TestReadFileHandleRelease TestRWFileHandleMethodsRead TestRWFileHandleSeek TestRWFileHandleReadAt TestRWFileHandleFlushRead TestRWFileHandleReleaseRead TestRWFileHandleMethodsWrite TestRWFileHandleWriteAt TestRWFileHandleWriteNoWrite TestRWFileHandleFlushWrite TestRWFileHandleReleaseWrite TestRWFileHandleSizeTruncateExisting TestRWFileHandleSizeCreateExisting TestRWFileHandleSizeCreateNew TestRWFileHandleOpenTests TestRWFileModTimeWithOpenWriters TestRWCacheRename TestCaseSensitivity TestVFSNew TestVFSNewWithOpts TestVFSRoot TestVFSStat TestVFSStatParent TestVFSOpenFile TestVFSRename TestVFSStatfs TestWriteFileHandleMethods TestWriteFileHandleWriteAt TestWriteFileHandleFlush TestWriteFileHandleRelease TestWriteFileModTimeWithOpenWriters TestFileReadAtZeroLength TestFileReadAtNonZeroLength]