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