Bug 764590 (GLUSTER-2858) - volume-mark corruption swallowed
Summary: volume-mark corruption swallowed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2858
Product: GlusterFS
Classification: Community
Component: geo-replication
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Csaba Henk
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-28 15:11 UTC by Csaba Henk
Modified: 2011-06-01 10:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Csaba Henk 2011-04-28 15:11:46 UTC
- enable indexing (xtime marking) on a volume
- mount the vol with --client-pid=-1
- delete the timestamp file(s) (/etc/glusterd/vols/<volname>/marker.tstamp)
- see what you get when you query the xattr "trusted.glusterfs.volume-mark" on the mountpoint -- expected result is a blob of 27 octets the so that the octet at index 18 is 1; actually you get a blob of 27 octets which has the octet at index 18 being 0. (Alternative testing with gsyncd: use the volume as geo-rep master; expected behavior is to see gsyncd crash with message "master is corrupt".)

After fix provided, it's suggested to be verified on both single-brick setups (to test just marker's composition of the xattr in question) and on multi-node clustered setups where you just delete the timestamp file on some nodes (to test xattr aggregation).

Comment 1 Anand Avati 2011-05-09 17:26:58 UTC
PATCH: http://patches.gluster.com/patch/7093 in master (marker: fill out the volume-mark properly in case of marking corruption)

Comment 2 Anand Avati 2011-05-31 14:01:40 UTC
PATCH: http://patches.gluster.com/patch/7342 in release-3.2 (marker: fill out the volume-mark properly in case of marking corruption)

Comment 3 Lakshmipathi G 2011-06-01 07:19:05 UTC
verified with 3.2.0 and above patch


Note You need to log in before you can comment on or make changes to this bug.