[LU-4925] bad negative dentry caching in striped directory Created: 17/Apr/14  Updated: 22/May/14  Resolved: 22/May/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.6.0
Fix Version/s: Lustre 2.6.0

Type: Bug Priority: Blocker
Reporter: John Hammond Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: dne2

Issue Links:
Related
is related to LU-3531 DNE2: striped directory Resolved
Severity: 3
Rank (Obsolete): 13614

 Description   

Using 2.5.57-87-g57d8f6d with or without http://review.whamcloud.com/#/c/9511/17, I see spurious negative dentry caching in a striped directory.

# export MDSCOUNT=2
# export MOUNT_2=y
# llmount.sh
...
u:~# cd /mnt/lustre
u:lustre# rm -rf d0/0 d1/0 d0 d1
u:lustre# ls
u:lustre# lfs mkdir -c4 -i0 d0
u:lustre# lfs mkdir -c4 -i0 d1
u:lustre# sleep 30
u:lustre# touch d0/0
u:lustre# sys_rename d0/0 d1/0
u:lustre# sys_stat d0/0
cannot stat `d0/0': No such file or directory
u:lustre# sys_rename /mnt/lustre2/d1/0 /mnt/lustre2/d0/0
u:lustre# sys_stat d0/0
cannot stat `d0/0': No such file or directory
u:lustre# 
u:lustre# sys_stat d1/0
cannot stat `d1/0': No such file or directory
u:lustre# sys_getdents d0
d 180144002274689027 '..'
d 216172799293652995 '.'
d 144115188193296385 '..'
d 180144002274689027 '..'
d 234187197803134979 '.'
d 180144002274689027 '.'
r 234187197819912194 '0'
d 198158400784171011 '.'
d 180144002274689027 '..'
u:lustre# echo > d0/0
u:lustre# sys_stat d0/0
dev             743766374
ino      234187197819912194
mode                33188
nlink                   1
uid                     0
gid                     0
rdev                    0
size                    1
blksize           4194304
blocks                  8
atime          1397770152
mtime          1397770174
ctime          1397770174


 Comments   
Comment by Di Wang [ 19/Apr/14 ]

http://review.whamcloud.com/#/c/10026/

Comment by Jodi Levi (Inactive) [ 22/May/14 ]

Patch landed to Master. Please reopen ticket if more work is needed.

Generated at Sat Feb 10 01:47:02 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.