Race condition in workspace collection add and delete

Description

storeManifest(...) in ArchiveBase calls:

If two threads execute this at similar times for different MPs, there is a possibility of a race condition, where thread1 removes the parent collection folder (workspace/collection/archive) in deleteFromCollection while thread2 is running putInCollection.

This has been seen in our production 3.x system and leads to a FileNotFoundException:

As there's no real need to remove the collection folder, we should leave it around to avoid the race condition.

Assignee

Stephen Marquard

Reporter

Stephen Marquard

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Configure