Bug 571677
Summary: | Busy replica on consumers when directly deleting a replication conflict | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Juan <okelet> | ||||
Component: | Replication - General | Assignee: | Rich Megginson <rmeggins> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.2.6 | CC: | jgalipea, mitchb, rmeggins | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-07 16:47:48 UTC | Type: | --- | ||||
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: | 434914, 543590 | ||||||
Attachments: |
|
Description
Juan
2010-03-09 07:56:18 UTC
This is definitely a deadlock. The problem is that when you delete the conflict entry, it calls this function internally to first remove the conflict attribute: del_replconflict_attr(). This is called by urp_delete_operation() which is called as as bepreop plugin from ldbm_back_delete. ldbm_back_delete has already acquired the cache lock on the backentry. del_replconflict_attr() does an internal modify on this same entry, which also tries to acquire the cache lock on the same backentry, which deadlocks. The workaround appears to be - delete the nsds5ReplConflict attribute from the entry first, then delete it. Is that specific to 1.2.5 version and not 1.1.3? The workaround above should work on all servers all versions. I'm not sure why the bug only shows up on certain servers - I'm not aware of anything that would have changed this behavior. OK, I will try to delete some replication conflicts that already exist with that workround, and i will post the results. Created attachment 402171 [details]
patch
To ssh://git.fedorahosted.org/git/389/ds.git 2e7f973..03c2dcc ds82 -> fedora/Directory_Server_8_2_Branch commit 03c2dcc26a50f58348d1cb201f912fdb5839b79f Author: Rich Megginson <rmeggins> Date: Tue Mar 23 19:08:13 2010 -0600 commit to master commit eac3f15f2209719e05640e1576b4273d03bef079 Author: Rich Megginson <rmeggins> Date: Tue Mar 23 19:08:13 2010 -0600 To ssh://git.fedorahosted.org/git/389/ds.git 2e7f973..5db9031 Directory_Server_8_2_Branch -> Directory_Server_8_2_Branch commit 5db90314f1d0239b928a35e325b4810d14677c6b Author: Rich Megginson <rmeggins> Date: Thu Mar 25 12:10:46 2010 -0600 |