vashirov / slapi-nis

Forked from slapi-nis 2 years ago
Clone

43db38c Bug 1751295: When sync-repl is enabled, slapi-nis can deadlock during retrochanglog trimming

1 file Authored by tbordaz 4 years ago, Committed by abbra 4 years ago,
    Bug 1751295: When sync-repl is enabled, slapi-nis can deadlock during retrochanglog trimming
    
    Bug Description:
    	When sync-repl is enabled, it enables retroCL that can lead to the following deadlock scenario.
    
    	Since 1435663, slapi-nis lock is acquired from be_preop to be_postop.
    	So during a write operation on domain, retroCL is updated and being a BE_TXN_POST it holds slapi-nis lock when it tries to acquire retroCL backend lock.
    	If at the same time an operation on the retroCL (like retroCL trimming) acquire retroCL backend lock then during its BE_TXN_POST it tries to acquire slapi-nis lock.
    
    	This is a common scenario, when there are updates on several backends, there is a chance
    	that two updates are acquiring the backends lock in the opposite order.
    	Here the backends are slapi-nis and retroCL.
    
    Fix Description:
    
    	Slapi-nis does nothing when an update happens on retroCL, so this suffix
    	can be ignored. It will prevent retroCL trimming to try to acquire slapi-nis lock.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1751295
    
        
file modified
+1 -1