On Tue, Feb 04, 2020 at 07:25:31PM +0200, Alan Orth wrote:
> Is there a difference in the automatic re-indexing that is triggered by the
> existence of the `dspace/solr/search/conf/reindex.flag` and a manually
> triggered `dspace index-discovery -b`? After my database migration was
> completed I started Tomcat and then immediately triggered a manual
> re-indexing. I lost a few hours investigating the cause of this, only to
> stumble on the fact that the "automatic" re-indexing apparently does
> something differently—the effects of which are only visible if the
> "automatic" re-indexing actually completes without interruption! Very
> strange...
I think the relevant code is in
org.dspace.storage.rdbms.DatabaseUtils.ReindexerThread
It appears to be doing the equivalent of 'dspace index-discovery -c;
dspace index-discovery -b; dspace index-discovery -s'.
(Aside: IndexClient's option processing could be better. For
example, 'index-discovery -c -b -s' would run, ignoring -b and -s. It
should complain that -c and -b are mutually exclusive.
'index-discovery -b -s' would run, ignoring -s, but there's no reason
not to obey both (though they should be sequenced: first -b and then
-s).)