Closed tonywang16 closed 1 year ago
Hi @tonywang16,
Thanks for this bug fix! I'm curious about how did you come to the wb+
solution?
Also, can you please change the lock file mode to wb+
in throughput.py too?
Hi @tonywang16,
Thanks for this bug fix! I'm curious about how did you come to the
wb+
solution?Also, can you please change the lock file mode to
wb+
in throughput.py too?
Sure, updated the throughput.py.
The issue is due to it opens the file in "wb" (Open the file for writing) only mode on NFS mount.
Then it trying to acquire SHARED LOCK(LOCK_SH) which is commonly called a reader lock without read permission. Adding "+" allows for both types of locks on the same file descriptor.
BTW, the exclusive lock fcntl.LOCK_EX having no issue on NFS mount.
Fix #515 unable to acquire shared lock on NFS mounted directory