Bug 698771 - better handling for server shutdown while long running tasks are active
Summary: better handling for server shutdown while long running tasks are active
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: 389
Classification: Retired
Component: Directory Server
Version: 1.2.8
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 690319 781533
TreeView+ depends on / blocked
 
Reported: 2011-04-21 18:01 UTC by Rich Megginson
Modified: 2015-01-04 23:48 UTC (History)
2 users (show)

Fixed In Version: 389-ds-base-1.2.10.a7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 781533 (view as bug list)
Environment:
Last Closed: 2012-02-07 16:14:46 UTC


Attachments (Terms of Use)

Description Rich Megginson 2011-04-21 18:01:29 UTC
We need to better handle the case where a server is shutdown while a long running task is active e.g. fixup-memberof.

Tasks should check to see if the server is shutdown and gracefully exit.

For some tasks that will leave the database in a inconsistent state, we could do one of two things:

1) the server will refuse to shutdown until all tasks are finished
2) the server will print an ugly error message to the log: "hey, you killed me before I could finish task X - the database will be in an inconsistent state until you let the task complete"

Comment 3 Martin Kosek 2012-01-04 13:23:59 UTC
Upstream ticket:
https://fedorahosted.org/389/ticket/49

Comment 4 Rich Megginson 2012-02-07 16:14:46 UTC
Fixed in version 1.2.10.a7


Note You need to log in before you can comment on or make changes to this bug.