Bug 1126289
| Summary: | [SNAPSHOT]: Deletion of a snapshot in a volume or system fails if some operation which acquires the volume lock comes in between. | |||
|---|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Sachin Pandit <spandit> | |
| Component: | glusterd | Assignee: | bugs <bugs> | |
| Status: | CLOSED NOTABUG | QA Contact: | ||
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | mainline | CC: | amukherj, bugs, smohan | |
| Target Milestone: | --- | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | SNAPSHOT | |||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1145911 (view as bug list) | Environment: | ||
| Last Closed: | 2018-10-07 13:06:23 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1145911 | |||
REVIEW: http://review.gluster.org/8454 (glusterd/snapshot : Differentiating between various error scenario.) posted (#1) for review on master by Sachin Pandit (spandit) IMO, we don't need to fix this in GD1, at least not a priority. |
Description of problem: gluster snapshot delete volume <volname> (or) gluster snapshot delete all The above two commands might fail if some operation which acquires the lock comes in between. Explanation : snapshot delete volume <volname> does a multiple RPC when tried to do deletion of multiple snapshots in a volume. If some other operation which acquires the lock comes in between, then snapshot delete will fail with "another transaction in progress" error. Version-Release number of selected component (if applicable): How reproducible: 1/1 Steps to Reproduce: 1. issue a snapshot delete volume <volname> (say volname is vol1) 2. when step (1) is in progress, issue another command which takes a lock on volume vol1 Actual results: snapshot delete fails with another transaction in progress. Expected results: command should not fail. Additional info: Its better to give certain retries before failing.