bad file descriptor
when rapidly appending and writeback_cache
is enabled
#5315
Labels
kind/bug
Something isn't working
What happened:
I ran R code which rapidly appended data to a .csv file, but I got errors about a bad file descriptor when I call for
warnings
:The file is not correctly written, it is missing substantial pieces that should be there. It seems random, like a race condition, how many pieces are missing.
What you expected to happen:
The data should be appended (even if it takes some time).
How to reproduce it (as minimally and precisely as possible):
This bash simulation worked to get the same (or very similar) behavior on our mount:
Anything else we need to know?
The issue consistently disappeared when we removed
writeback_cache
from the mount options.writeback
still works.Here is a sample
.accesslog
from when the bug with the R code was happening. Notice thebad file descriptor
onread
.Environment:
juicefs --version
) or Hadoop Java SDK version:juicefs version 1.2.1+2024-08-30.cd871d1
AWS EC2 instance.
cat /etc/os-release
):uname -a
):Amazon S3.
Redis on Amazon EC2, self maintained. Version 6.2.7
Amazon EC2 IP networking, and networking to Amazon S3.
Systemd mount options at the time of failure looked like this:
The text was updated successfully, but these errors were encountered: