There seems to be a race condition in the wait_for_vector_indexing() function that the index status is reported for a moment as Ready while vectorQueueLength is 0 while objectCount is less than objectCountBefore + len(objectsInserted)
It would be convenient to check objectCount and the number of inserted objects in the batch to determine whether the indexing is done