sonatype/nexus — pull request #780 by cstamas (2013-03-19 10:26:24+00:00)
Title: WL update misbehaving

This pull contains fix for two issues, both related to WL performance. Nexus even without these changes behaves correctly, but it looses precious cycles in critical steps like booting or configuration changes. These changes fixes both of that problems.

First, group WL's were double updated in some cases (like group member addition or removal). This resulted in correct results but the "wl update" operation was done twice, redundantly.

Second, on Nexus boot groups were "inited" multiple times, redundantly. The "init loop" of WL was traversing hosted and proxy reposes only, leaving group init to happen as "side effect" of cascade operation (when a repo WL changes, it cascades to all groups where repo in question is member). But this also meant, that one group WL was updated (published, event fired, but no WL content change after 1st pass) as many times as many members it had. Now, the boot process is modified, to not use "cascade" and explicitly init group repositories too.

Related issues:
https://issues.sonatype.org/browse/NEXUS-5602
https://issues.sonatype.org/browse/NEXUS-5608

CI:
https://bamboo.zion.sonatype.com/browse/NXO-OSSF39-1