merge
Merge an ORSet received from another replica (via anti-entropy / gossip) into this exporter's state, then flush the merged result to store.
If a WarpCausalClock was supplied, the remote replica's causal frontier is folded into the local clock first, so the next auto-stamped span records those remote dots as predecessors — the cross-replica happens-before path (#846).
The clock's floor is raised too, to the highest dot of this replica's the remote set carries or names, in the same hold of lock as the join (#3407). A peer can hand back spans this replica minted and then lost, and a stamp minted after they land must not collide with one. The high-water mark the span bytes carry (#3435) already covers every own dot that was in memory when a span write was encoded, and snapshot shows an export only once its writes have landed (#3517), so a stamp minted before the merge collides only with a dot whose durable record this store has since lost, as a corrupt entry does. The raise takes the peer's seq as given: a dot at Long.MAX_VALUE leaves the clock ClockTick.Exhausted, so later spans are saved unstamped. Whether a merge should refuse such a dot is #3432.
Idempotent: merging the same set twice produces the same result.
Until a read of the stored spans has landed, the merge makes that read first, or skips it inside the backoff window recover describes (#3436), and while the read is refused or skipped it returns ExportResult.Failure without writing (#3390). The remote set stays in memory and is written with the stored one once a read lands.