Netflix/curator — pull request #102 by artemip (2012-07-05 19:14:39+00:00)
Title: Reaper utility fixes

Fixes for some of the issues discussed in https://github.com/Netflix/curator/issues/29.

Mainly:
- The Reaper utility should be able to mark a path as 'deleted' and remove all references to it if, in the initial reaping attempt, the path is found not to exist. This mode is called REAP_UNTIL_GONE, and works the same way as REAP_UNTIL_DELETE, except the Reaper does not have to delete the path for it to be forgotten.
- If removePath is not called on the Reaper, then the 'activePaths' set could grow indefinitely. This may be a problem for clients that do not know when a path may be removed, and just may want to add it to the Reaper and forget about it. The fix is to remove all deleted paths from 'activePaths' (unless the mode is REAP_INDEFINITELY)