mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 23:58:23 -05:00
Add a sleep() prior to calling tasks to ensure postop writes are done
We were seeing a rare deadlock of DS when creating the memberOf task because one thread was adding memberOf in a postop while another was trying to create an index and this was causing a PRLock deadlock.
This commit is contained in:
@@ -265,6 +265,9 @@ class LDAPUpdate:
|
||||
def create_index_task(self, attribute):
|
||||
"""Create a task to update an index for an attribute"""
|
||||
|
||||
# Sleep a bit to ensure previous operations are complete
|
||||
time.sleep(5)
|
||||
|
||||
r = random.SystemRandom()
|
||||
|
||||
# Refresh the time to make uniqueness more probable. Add on some
|
||||
|
||||
Reference in New Issue
Block a user