[PATCH] 140 Fixed error handling in RetrieveModificationsTask.
The RetrieveModificationsTask has been modified such that it can recover from errors while still allowing graceful shutdown. The task is scheduled to run once. When it's done it will schecule another one depending on the situation. If the search is abandoned or the connection is closed it will wait one minute before reconnecting. If the system is being shutdown it will not schedule any more task. Ticket #365 To test the patch: 1. Create CA. 2. Add the following parameter into CS.cfg: ca.listenToCloneModifications=true 3. Restart CA. 4. Watch the debug log. 5. Stop slapd, an exception will appear, then it will retry every 1 minute. 6. Start slapd again, the task will eventually continue. 7. Stop CA, it will show the task being shutdown. Note that it may miss modifications that happen during the 1-minute window between slapd startup and next task execution. -- Endi S. Dewata
On 10/19/2012 1:02 PM, Endi Sukma Dewata wrote:
The RetrieveModificationsTask has been modified such that it can recover from errors while still allowing graceful shutdown.
The task is scheduled to run once. When it's done it will schecule another one depending on the situation. If the search is abandoned or the connection is closed it will wait one minute before reconnecting. If the system is being shutdown it will not schedule any more task.
Ticket #365
ACKed by Ade. Pushed to master. -- Endi S. Dewata
participants (1)
-
Endi Sukma Dewata