[Bugs] [Bug 1248393] DHT: readdirp fails to read some directories.
bugzilla at redhat.com
bugzilla at redhat.com
Wed Aug 16 08:22:32 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1248393
Nithya Balachandran <nbalacha at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |POST
--- Comment #4 from Nithya Balachandran <nbalacha at redhat.com> ---
This issue is also tracked in https://github.com/gluster/glusterfs/issues/239
For directory structure dir-1/dir-2/dir-3
Earlier behaviour:
gf_defrag_fix_layout (mydir):
lookup mydir
process mydir (migrate files)
for every directory d in mydir
setxattr (fix-layout, d) <-- calculates new layout and saves it to disk.
At this point, any child dirs of 'd' which hash to the newly added bricks will
not be listed by a dht_readdirp on 'd'
gf_defrag_fix_layout (d)
set_commit_hash (d)
done
done
New behaviour:
gf_defrag_fix_layout (mydir):
lookup mydir
for every directory d in mydir
gf_defrag_fix_layout (d)
done
setxattr (fix-layout, mydir)
process mydir (migrate files)
set_commit_hash (mydir)
done
With this change, all child dirs will be healed before the parent directory's
layout is changed so this issue will not exist.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=NMbF3xq8uH&a=cc_unsubscribe
More information about the Bugs
mailing list