0129926 Ticket 50741 - bdb_start - Detected Disorderly Shutdown last time Directory Server was running

Authored and Committed by tbordaz 4 years ago
    Ticket 50741 - bdb_start - Detected Disorderly Shutdown last time Directory Server was running
    
    Bug description:
    	At startup plugins are started (plugin_dependency_startall) including ldbm database
    	that read/remove the guardian file (bdb_start).
    	If one of the plugin fails to start, for example because of a missing dependency,
    	the statup function just exits without recreating the guardian file.
    	The next restart will not find the guardian file, trigger a recovery and
    	log the alarming message "Detected Disorderly Shutdown last time Directory Server was running..."
    
    Fix description:
    	In case the startup function fails it should call the closing function of all
    	started plugin: plugin_closeall
    	The fix also contains fixes for plugin acceptance tests. If DS startup is expected
    	to fail, it is caught by subprocess.CalledProcessError but actually the startup
    	function can also return ValueError exception
    
    https://pagure.io/389-ds-base/issue/50741
    
    Reviewed By: Mark Reynolds
    
        
file modified
+1 -0