Re: inconsistent file issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 21, 2017 at 8:25 PM, 陶冬冬 <tdd21151186@xxxxxxxxx> wrote:
>
> thanks zheng,
>
> that issue happened again today.
> and from the log, client A write one file, but the mds didn’t revoke the
> CEPH_CAP_FILE_CACHE of the file from client B.
> so that, when client B trying to read that file, client B just read it from
> its page cache which has the old data.

Are you sure that mds didn't revoke CEPH_CAP_FILE_CACHE? could you
provide mds log. In old version kernel, there are code paths that
operate directly on page cache, without checking if
CEPH_CAP_FILE_CACHE is issued.

Regards
Yan, Zheng


>
> Regards,
> Dongdong
>
> 在 2017年9月21日,下午8:00,Yan, Zheng <ukernel@xxxxxxxxx> 写道:
>
> On Wed, Sep 20, 2017 at 11:42 AM, 陶冬冬 <tdd21151186@xxxxxxxxx> wrote:
>
> Hi Zheng,
>
> we have been suffering from an inconsistent issue in cephfs :
>
> kernel version : 3.1.0
> ceph version: 10.2.5
>
> we are using the kernel client to mount cephfs
> we mount the ceph filesystem on two machines all with kernel 3.1.0,
> but the strange thing is that the content of one same file is different from
> the two machines.
> and we are certain one machine has the correct content.
>
> we didn’t know the way to reproduce it , and we don’t have the log here.
> i’m wondering maybe it’s because  there is some bug within kernel client, so
> that the client think
> it has enough capability to read it just from it’s buffer, no need to get
> the cap from mds, so it didn’t get the latest content.
>
> since the kernel is too old, may be you have fixed this kind inconsistent
> issues ?
>
>
> we fixed a splice issue about 1 year ago, it could cause inconsistent
> data when multiples client read/write a file at the same time. The
> issue the is the only bug I remember, that can cause inconsistent
> data. Please try recent kernel, check if the issue still happen.
>
> Regards
> Yan, Zheng
>
>
> Regards,
> Dongdong
>
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux