Bug 1692612 - Locking issue when restarting bricks
Summary: Locking issue when restarting bricks
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: glusterd
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-26 03:09 UTC by Zhang Huan
Modified: 2019-03-27 17:18 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-03-27 17:18:08 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gluster.org Gerrit 22417 0 None Merged glusterd: fix potential locking issue on peer probe 2019-03-27 17:18:07 UTC

Description Zhang Huan 2019-03-26 03:09:44 UTC
Description of problem:
Found a potential locking issue when reading code.

There are two cases to restart brick, one is when glusterd starts or quorum is met, another is when new peers are joined and quorum is changes. In the later case, sync_lock is not taken, and may cause lock corruption.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2019-03-26 03:13:10 UTC
REVIEW: https://review.gluster.org/22417 (glusterd: fix potential locking issue on peer probe) posted (#1) for review on master by Zhang Huan

Comment 2 Worker Ant 2019-03-27 17:18:08 UTC
REVIEW: https://review.gluster.org/22417 (glusterd: fix potential locking issue on peer probe) merged (#2) on master by Amar Tumballi


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