pending

open suspend override fun pending(type: AggregateType, revision: Int, after: AggregateRef?, limit: Int): List<AggregateRef>

A search, which sees a write once a refresh made it searchable: a scan from the first (no after) refreshes the index before it reads, so it lists every write that returned before it, and its pages after read what that refresh made searchable at least (SnapshotRebuildStore.pending). It refreshes whatever this store's own refresh: the writes it must see may be another node's, at another refresh (a rolling upgrade that sets wait-for with a raised revision). The refresh needs the index privilege maintenance (or manage): refused, it fails naming the index and the privilege.