Browse files

NEXUS-5654 fixed race between offer/revoke and initializePrefixFile

The race was only possible if a new repository was provisioned and
deploys to the new repository happened very close in time. Extremely
unlikely unless repository provisioning and deployment are executed
by the same script.

The fix is to remove redundant 'unpublish' call during

Signed-off-by: Igor Fedorenko <>
  • Loading branch information...
1 parent 4064554 commit d95e4be85bbde60adc496c0acfe27f10fcdbf286 @ifedorenko ifedorenko committed Apr 1, 2013
@@ -238,8 +238,6 @@ public void initializePrefixFile( final MavenRepository mavenRepository )
getLogger().debug( "Initializing prefix file of newly added {}", mavenRepository );
- // mark it for noscrape if not marked yet
- unpublish( mavenRepository );
// spawn update, this will do whatever is needed (and handle cases like blocked, out of service etc),
// and publish
updatePrefixFile( mavenRepository );

0 comments on commit d95e4be

Please sign in to comment.