/// <summary> /// Index population is now completed, the populator hasn't yet been flipped and so sample hasn't been extracted. /// The IndexPopulationJob, who is calling this method will now wait for the UpdatesTracker to notice that the index is online /// so that it will complete whatever update it's doing and then snapshot its created/deleted values for later assertions. /// When the UpdatesTracker notices this it will trigger this thread to continue and eventually call populationCompleteOn below, /// completing the flip and the sampling. The barrier should prevent UpdatesTracker and IndexPopulationJob from racing in this area. /// </summary> public override void IndexPopulationScanComplete() { IsOnline = true; if (Barrier != null) { try { Barrier.await(); } catch (InterruptedException e) { throw new Exception(e); } } }