+++ This bug was initially created as a clone of Bug #1578647 +++
Description of problem:
While trying to reproduce https://bugzilla.redhat.com/show_bug.cgi?id=1529072 on a build older than the fix, it is found that if parallel-readdir is enabled, the readdir-optimize option even when it is set to on it is behaving as off.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
There are no specific steps to reproduce this issue. It can be reproduced by attaching gdb or by looking at tcpdump wireshark.
When parallel-readdir is enabled, the readdir-optimize option when set to on it is behaving as off.
When parallel-readdir is enabled, the readdir-optimize option when set to on should continue as on.
REVIEW: https://review.gluster.org/20026 (readdir-ahead: Fix an issue with parallel-readdir and readdir-optimize interaction) posted (#1) for review on master by Poornima G
COMMIT: https://review.gluster.org/20026 committed in master by "Raghavendra G" <email@example.com> with a commit message- readdir-ahead: Fix an issue with parallel-readdir and readdir-optimize
Issue: When parallel-readdir is enabled, readdir-optimize automatically
stops working because of a bug in rda_opendir.
RCA: In rda_opendir, the xattrs that indicate readdir-optimize or not
is sent in xdata. This xdata is sent to all the readdirp prefetch
calls. A dict_ref is taken on xdata and kept in rda_opendir to be
used by rda_fill_fd, but dht_opendir deletes some elements in xdata
after calling rda_opendir. Hence dict_ref is not a right choice here,
dict_copy needs to used.
Signed-off-by: Poornima G <firstname.lastname@example.org>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-5.0, please open a new bug report.
glusterfs-5.0 has been announced on the Gluster mailinglists , packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist  and the update infrastructure for your distribution.