Posted on 18/12/2018 13:55:14
Hi Morten,
I have looked at the code in the "Build repository index" provider, it should work the way you describe.
The way this provider works is that the build selected in "Build" will run everytime the ScheduledTask runs, and the "Secondary Build" will only run at the specified time. In both of these cases all instances in the selected Index will be rebuild in the following way.
First we build all the instances, which isn't the current instance (from the IndexBalancer), and if just one of these are succesfully build, we will also build the current instance, otherwise we won't touch it.
However... We have a registered bug on the IndexBalancer (TFS#58597), where it can select a current instance, which state is "Failed" eventhough there are an instance with the state "Completed". This makes the logic above unpredictable. This bug has been fixed and is awaiting QA to test it. After that a new version of the "Dynamicweb.Indexing.Lucene" package will become available (1.0.17) with the fix.
I hope it answers at least some of your questions.
Best regards,
Steffen