sonatype/nexus — pull request #115 by cstamas (2011-11-30 15:36:44+00:00)
Title: NEXUS-4640: SnapshotRemover improvements

One of the oldest piece in Nexus heavily under-maintained.

In general, lessening the extra-work we were doing even if it was not needed (like extra walks doing nothing).

Fixes:

* moving all the work related/applied to processing hosted repositories into single place
* executing hosted related walk when it is actually needed (before, walk was always done, but the actual WalkerProcessor was disabled)
* not _expiring caches_ (walks whole repository to flip the "expired" flag on items) but just purging NFC (no walk happens, just flushes EHCache), since it was the original need. But, the separate method was not (yet) exposed when snapshot remover was written!
* improved method `releaseExistsForSnapshot()` a bit, but it's still linear (read: slow)