Project

General

Profile

Actions

Bug #23097

closed

Stale directories and files in CentOS (release <= 7.3 or kernel version < 3.19) cannot get refreshed in time.

Added by yupeng chen about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
vfs
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
kcephfs
Crash signature (v1):
Crash signature (v2):

Description

In our cephfs environments(CentOS 7.2 with kernel: 3.10.0-514.10.2.el7.x86_64), we have an one-producer-multiple-consumers sceanario:

1、Assume the mountpoint for the cephfs is /mnt/cephfs
2、We performed like what the following code snippet does:
On producer client:
while [ true ]; do rm -fr /mnt/cephfs/pro.bak; mv /mnt/cephfs/pro /mnt/cephfs/pro.bak; mkdir /mnt/cephfs/pro && touch /mnt/cephfs/pro/[1..2]; sleep 60; done
On consumer client:
wath -n 10 "stat /mnt/cephfs/pro/* | tee -a ~/log.txt"
3、We expected that the consumers fetch the refreshed data immediately after the producer finished production. However, the actual result is that 'stat's issuied by the consumers did not refresh the stale directries or files. The stale directories or files got extinguished with the lease expiration.

Actions

Also available in: Atom PDF