Allow reindexation without purging expired entries

Description

public void reindexSync(URI contextURI, boolean purgeAllBeforeReindex) needs an additional boolean parameter, e.g. purgeExpiredEntriesAfterReindex, to skip the purging thread. This should then be used for the full reindexation that is initiated by RepositoryManagerImpl, e.g. when a new version is detected. In that case we don’t have anything in the repo, but the purging thread is still used (which it shouldn’t be).

An alternative could be the introducation of an enum to provide a purging strategy to use, e.g. PurgingStrategy.BEFORE_REINDEX, AFTER_REINDEX, NO_PURGE.

Environment

None

Activity

Show:

Details

Assignee

Reporter

Fix versions

Priority

Created December 20, 2024 at 10:56 AM
Updated last week