#50743 Ticket 50741 - bdb_start - Detected Disorderly Shutdown last time Directory Server was running
Closed by spichugi. Opened by tbordaz.
tbordaz/389-ds-base ticket_50741  into  master

Download 50743.patch

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: ?

rebased onto 012992639264120576197d617d4bc23e65b3e843

Pull-Request has been merged by tbordaz

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3798

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

Metadata