Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] entry lost for directory list #2860

Closed
Wine93 opened this issue Nov 2, 2023 · 1 comment
Closed

[BUG] entry lost for directory list #2860

Wine93 opened this issue Nov 2, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Wine93
Copy link
Contributor

Wine93 commented Nov 2, 2023

Background

We use vdbench to test curvefs by specified configure file,it will create the directory /mnt/curvefs/test1/d1 as expect, but when we get all entries of the directory/mnt/curvefs/test, the entry d1 has lostd:

run vdbench

sudo ./vdbench -jn -f profile

configure

data_errors=1
fsd=fsd1,anchor=/mnt/curvefs/test1/d1,depth=1,width=10,files=50,sizes=(100m,0),shared=yes,openflags=o_direct
fsd=fsd2,anchor=/mnt/curvefs/test2/d2,depth=1,width=10,files=20,sizes=(100m,0),shared=yes,openflags=o_direct
fsd=fsd3,anchor=/mnt/curvefs/test3/d3,depth=1,width=10,files=50,sizes=(300m,0),shared=yes,openflags=o_direct
fwd=fwd1,fsd=fsd*,threads=10,xfersize=(512,20,4k,20,64k,20,512k,20,1024k,20),fileio=random,fileselect=random,rdpct=70
rd=rd1,fwd=fwd*,fwdrate=max,format=restart,elapsed=2000000,interval=1

list all entries

nbs@pubbeta2-nova48:/mnt/curvefs/test1$ ls -ls
total 1
1 -rwxrwxrwx 1 root root 68 Nov  2 12:28 no_dismount.txt

How to reproduce

It is easy to reproduce:

# Image: quay.io/opencurve/curve/curvefs:v2.7.0-beta1_aff0ebf
# Any mountpoint of curvefs, e.g. /mnt/curvefs/

$ cd /mnt/curvefs
$ mkdir d1
$ ls
d1
$ mkdir d2
$ ls 
d1

Hints

Maybe some wrong with directory cache.

@Wine93 Wine93 added the bug Something isn't working label Nov 2, 2023
@Wine93 Wine93 added this to the CurveFS-2.7.0 milestone Nov 2, 2023
@Wine93 Wine93 changed the title [BUG] dentry lost. [BUG] entry lost for directory list Nov 2, 2023
@wuhongsong
Copy link
Contributor

image is: quay.io/opencurve/curve/curvefs:v2.7.0-beta1_aff0ebf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants