glusterfs icon indicating copy to clipboard operation
glusterfs copied to clipboard

Optimized the mdcache return error attribute bug (for devel)

Open huping-chinamobile opened this issue 1 year ago • 7 comments

mdcache : xlators/performance/md-cache/src/md-cache.c

Problem:
In the distributed replication volume scenario, when a single host node
breaks down or the brick goes offline, mdcache returns an error
attribute: stale file handle when an NFS client creates a folder and
immediately searches for the folder

Solution:
Return from afr consistent-metadata,do not cache

Fixes: #4117

Change-Id: I00b72fb9b0dc73eebefdd8110947883774cc14c9
Signed-off-by: Hu Ping <[email protected]>

Change-Id: If9ef3a77b2738f6d7f881c122b6d6bcbd23ca14c

huping-chinamobile avatar May 08 '23 02:05 huping-chinamobile

Can one of the admins verify this patch?

gluster-ant avatar May 08 '23 02:05 gluster-ant

Can one of the admins verify this patch?

gluster-ant avatar May 08 '23 02:05 gluster-ant

Can one of the admins verify this patch?

gluster-ant avatar May 08 '23 02:05 gluster-ant

We sincerely hope that you two experts can help us pre-evaluate whether this patch is effective in solving the cache layer return error. @amarts @avati

huping-chinamobile avatar May 08 '23 02:05 huping-chinamobile

/run regression

mohit84 avatar May 08 '23 02:05 mohit84

1 test(s) failed ./tests/bugs/glusterd/check_elastic_server.t

0 test(s) generated core

1 test(s) needed retry ./tests/bugs/glusterd/check_elastic_server.t https://build.gluster.org/job/gh_centos7-regression/3304/

gluster-ant avatar May 08 '23 05:05 gluster-ant

Thank you for your contributions. Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity. It will be closed in 2 weeks if no one responds with a comment here.

stale[bot] avatar Dec 15 '23 08:12 stale[bot]

Closing this issue as there was no update since my last update on issue. If this is an issue which is still valid, feel free to open it.

stale[bot] avatar Mar 17 '24 15:03 stale[bot]