[Bugs] [Bug 1138897] NetBSD port

bugzilla at redhat.com bugzilla at redhat.com
Tue May 19 13:15:30 UTC 2015


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



--- Comment #85 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/10178 committed in release-3.6 by Raghavendra
Bhat (raghavendra at redhat.com) 
------
commit 690c87816d412cc2a6c6f735c1941810bcb700ea
Author: Emmanuel Dreyfus <manu at netbsd.org>
Date:   Thu Apr 16 09:24:52 2015 +0200

    Tests: fix spurious failure in read-subvol-entry.t

    read-subvol-entry.t tests that if a brick has pending operations,
    it is not used for readdir operations. On NetBSD this test exhibits
    spurious failures, with the wrong brick being used to perform readdir.

    It happens because when afr_replies_interpret() looks at xattr for
    pending attributes, it uses alternative bahvior whether it is working
    on a directory or another object. The decision is based on inode->ia_type,
    which may be IA_INVAL at that time if we come there from:
      afr_replies_interpret.()
      afr_xattrs_are_equal()
      afr_lookup_metadata_heal_chec()
      afr_lookup_entry_heal()
      afr_lookup_cbk()

    Using replies[i].poststat.ia_type, which is correctly set, works around
    the problem.

    Resubmitted as is after rebase.

    This is a backport of Id9ccdd8604f79a69db5f1902697f8913acac50ad

    BUG: 1138897
    Change-Id: I73f5e04dec86e648a28363f417559b0cbf80324d
    Signed-off-by: Emmanuel Dreyfus <manu at netbsd.org>
    Reviewed-on: http://review.gluster.org/10178
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
    Reviewed-by: Raghavendra Bhat <raghavendra at redhat.com>

-- 
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