[Bugs] [Bug 1286970] New: Write-behind should serve the true file size in LOOKUP callback?

bugzilla at redhat.com bugzilla at redhat.com
Tue Dec 1 09:24:43 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1286970

            Bug ID: 1286970
           Summary: Write-behind should serve the true file size in LOOKUP
                    callback?
           Product: GlusterFS
           Version: mainline
         Component: write-behind
          Keywords: Triaged
          Assignee: bugs at gluster.org
          Reporter: kdhananj at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com,
                    rgowdapp at redhat.com



Description of problem:

As part of reviewing http://review.gluster.org/#/c/12594/, figured write-behind
translator does not implement LOOKUP fop. In the event of a "revalidate" LOOKUP
on a file while writes on it are still held by write-behind from being flushed,
once the fop hits the disk, in its return path the postbuf might still contain
the old file size and other attributes (to the application it is as if the
writes it had sent never happened on this file in the first place). This could
*possibly* lead to errors if md-cache stores the old(er) attributes and serves
them as part of (f)stat, subsequent lookups etc. Md-cache also uses iatts from
LINK and UNLINK callbacks, both of which are unimplemented in write-behind.

I haven't tested this theory on an actual volume. It is also quite possible
that I am missing something important in some other part of the code. Adding
Raghavendra G in CC list in any case.

@Raghavendra: Feel free to close this bug if the theory is not valid. :)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list