juicedata / juicefs

JuiceFS is a distributed POSIX file system built on top of Redis and S3.
https://juicefs.com
Apache License 2.0
10.63k stars 928 forks source link

After the cache disk is recovered, write data times out for 5 minutes #4870

Closed YunhuiChen closed 4 months ago

YunhuiChen commented 4 months ago

What happened:

Use writeback mode

1、fio randwrite fio --name=big-file-multi-write --directory=/var/lib/juicefs/volume/pvc-618dce8f-e2a1-4847-93e8-8a4a7ce247b9-ttbxpf --rw=randwrite --refill_buffers --bs=4k --size=1G --numjobs=1 --end_fsync=1

2、Simulated cache disk failure

3、fio is stuck. Return to EIO

4、Restore cache disk, wait a few minutes to write fio again, still stuck to return to EIO log.tar.gz [Uploading log.tar.gz…]()

5、But after waiting for a long time, I can read and write normally

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?

Environment:

davies commented 4 months ago

Should be fixed by #4871