[Pki-devel] [PATCH] 140 Fixed error handling in RetrieveModificationsTask.

Endi Sukma Dewata edewata at redhat.com
Fri Oct 19 18:02:36 UTC 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-edewata-0140-Fixed-error-handling-in-RetrieveModificationsTask.patch
Type: text/x-patch
Size: 7281 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20121019/26463a64/attachment.bin>


More information about the Pki-devel mailing list