Project

General

Profile

Bug #57361

cephfs: rbytes seems not work correctly

Added by Xiubo Li 3 months ago. Updated 3 months ago.

Status:
Triaged
Priority:
Low
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Tags:
Backport:
pacific,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, MDS
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I had two client with the rbytes enabled, one is kclient and another is ceph-fuse client. In kclient after I created a file in the subdir and write some contents to it and in the ceph-fuse client when stating the parent directory I didn't see the stat.size got updated, even I umount the kclient.

I need to wait for a long time or after remount the ceph-fuse client to see the size updated.

History

#1 Updated by Venky Shankar 3 months ago

Xiubo Li wrote:

I had two client with the rbytes enabled, one is kclient and another is ceph-fuse client. In kclient after I created a file in the subdir and write some contents to it and in the ceph-fuse client when stating the parent directory I didn't see the stat.size got updated, even I umount the kclient.

I need to wait for a long time or after remount the ceph-fuse client to see the size updated.

Do you have the MDS logs, Xiubo?

#2 Updated by Xiubo Li 3 months ago

Venky Shankar wrote:

Xiubo Li wrote:

I had two client with the rbytes enabled, one is kclient and another is ceph-fuse client. In kclient after I created a file in the subdir and write some contents to it and in the ceph-fuse client when stating the parent directory I didn't see the stat.size got updated, even I umount the kclient.

I need to wait for a long time or after remount the ceph-fuse client to see the size updated.

Do you have the MDS logs, Xiubo?

No, but I can reproduce it every time.

#3 Updated by Venky Shankar 3 months ago

  • Category set to Correctness/Safety
  • Assignee set to Neeraj Pratap Singh
  • Target version set to v18.0.0
  • Backport set to pacific,quincy
  • Component(FS) Client, MDS added

Neeraj, PTAL.

#4 Updated by Venky Shankar 3 months ago

  • Status changed from New to Triaged

#5 Updated by Neeraj Pratap Singh 3 months ago

  • Subject changed from cpehfs: rbytes seems not work correctly to cephfs: rbytes seems not work correctly
  • Priority changed from Normal to Low

Setting the priority to low: rbytes is disabled by default.As directory size is recursive size with rbytes enabled,if we try to get the stats.size, mds lazilly updates the recursive stats.

Also available in: Atom PDF