Bug 1486063
Summary: | 0 kByte file not self-healing with replica 2 + arbiter | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | mabi | ||||
Component: | replicate | Assignee: | Ravishankar N <ravishankar> | ||||
Status: | CLOSED WONTFIX | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.8 | CC: | bugs, ravishankar | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2017-10-03 04:49:04 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
mabi
2017-08-28 21:34:44 UTC
> Steps to Reproduce:
> 1. Ask Ravi
1. Create a zero-byte file (`touch file`) on an arbiter volume via fuse mount.
2. Attach gdb to mount process, put break points before winding pre-op and write.
3. echo "hello" >>file
4. after pre-op is stack_wound on all bricks, `pkill gluster && pkill gdb`
5. Now we have the dirty bit set (and no pending bits) for the file on all bricks and an entry inside .glusterfs/indices/dirty.
6. restart all gluster processes.
7. `heal info` will show the entry as needing heal.
8. Heal won't complete because data self-heal algo picks up the brick with latest ctime as source. In this case arbiter is likely the source because the pre-op in step-4 happened last on the arbiter.
Sent patch https://review.gluster.org/#/c/18283/ against BZ 1491670. (In reply to Ravishankar N from comment #2) > Sent patch https://review.gluster.org/#/c/18283/ against BZ 1491670. The addendum patch to address review comments in 18283 has also been merged in master: https://review.gluster.org/#/c/18391/ Note: I'm back porting these patches to only the 3.12 and 3.8 branches. glusterfs-3.8 is EOL, hence moving this bug to CLOSED. |