[Bugs] [Bug 1436086] New: Parallel readdir on Gluster NFS displays less number of dentries

bugzilla at redhat.com bugzilla at redhat.com
Mon Mar 27 06:38:40 UTC 2017


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

            Bug ID: 1436086
           Summary: Parallel readdir on Gluster NFS displays less number
                    of dentries
           Product: GlusterFS
           Version: mainline
         Component: unclassified
          Assignee: bugs at gluster.org
          Reporter: pgurusid at redhat.com
                CC: bugs at gluster.org



Description of problem:

    In readdirp fop, op_errno is overloaded to indicate the EOD detection.
    If op_errno contains ENOENT, then it indicates that there are no
    further entries pending read in the directory. Currently NFS uses the
    ENOENT to identify the EOD.

    Issue:
    NFS clients issues a 4K buffer for readdirp, readdir-ahead converts it
    to 128K buffer as its reading ahead. If there are 100 entries in the
    bricks, 128K can get all 100 and store in readdir-ahead, but only 23
    entries that can be fit in 4K will be sent to NFS. Since the whole
    100 entries were read from brick, the op_errno is set to ENOENT, and
    the op_errno is propagated as is when sent to NFS. Hence NFS client
    in reading 23 entries thinks it reached EOD.

Reproducer:
Run the test case with parallel readdir on
./tests/bugs/distribute/bug-1190734.t

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