| Summary: | [DHT]: Directory ends up with different gfid on different subvols, when gfid is removed on the hashed subvol and a lookup is performed | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | krishnaram Karthick <kramdoss> |
| Component: | distribute | Assignee: | Raghavendra G <rgowdapp> |
| Status: | CLOSED NOTABUG | QA Contact: | Anoop <annair> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rhgs-3.1 | CC: | rhs-bugs, storage-qa-internal |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-21 06:29:08 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: | |
|
Description
krishnaram Karthick
2016-04-20 05:57:18 UTC
RCA: First lookup to dht-subvols, which is sent to hashed-subvol has the "gfid-req" set by fuse. So, this will be a new gfid generated by fuse during this call. So, if gfid is missing on hashed-subvol, then this new gfid is set on it and synced to other non-hashed subvols that doesn't have the gfid. Note that if gfid is missing from non-hashed subvols, they all get the gfid of the directory stored on hashed-subvol, as for lookup calls on them, dht sets "gfid-req" with the gfid on hashed-subvol. I think this issue can only be reproduced if someone removes gfid from backend directly. Other than backend corruption, this issue cannot be reproduced for following reasons: 1. An mkdir is successful on a brick only after gfid is set. 2. Only after a successful mkdir on hashed-subvol, mkdir is attempted on non-hashed subvols with gfid set on hashed subvol. So, I would consider this as NOT A BUG |