// (this thread waits even in async backend mode)
for ( int i = 0; i < queueSize; i++ ) {
Future task = submittedTasks[i];
try {
task.get();
errorContextBuilder.workCompleted( queue.get( i ) );
}
catch (ExecutionException e) {
if ( failedUpdates == null ) {
failedUpdates = new LinkedList<LuceneWork>();
}