opencurve / curve

Curve is a sandbox project hosted by the CNCF Foundation. It's cloud-native, high-performance, and easy to operate. Curve is an open-source distributed storage system for block and shared file storage.

Home Page:https://opencurve.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[curvefs]client: dbench fail

Cyber-SiKu opened this issue · comments

commented

Describe the bug (描述bug)

First mount a curvefs client.
Then run a quay.io/siku/curve:fstransh container and map the curvefs client directory to the container (/mnt/mnt-1).
in container
Copy dbench.sh to /mnt/mnt-1.
run this file will get error:

[34392] open ./clients/client4/~dmtmp/EXCEL/51EC0000 failed for handle 13001 (No such file or directory)
(34393) ERROR: handle 13001 was not found
[33192] open ./clients/client1/~dmtmp/WORD/~WRD1119.TMP failed for handle 12744 (No such file or directory)
(33193) ERROR: handle 12744 was not found
Child failed with status 1

To Reproduce (复现方法)

Expected behavior (期望行为)

Versions (各种版本)
OS:
Compiler:
branch: v2.7.0-beta2_6639d26
commit id:

Additional context/screenshots (更多上下文/截图)

commented

Related to the following two configuration items

fs.lookupCache.negativeTimeoutSec: 1
fs.lookupCache.minUses: 5

This configuration item means that if you continuously return to the server and cannot find it 5 times within 1 second, it will cache the not found for 1 second, and will not return to the source within this 1 second, but will directly return to not found~
Many caching systems have this configuration item, such as NFS and Nginx. Users need to configure it according to the actual scenario to suit their own scenario.