[server] Keep KV recovery and retention on the same snapshot
KV recovery currently identifies the effective snapshot by the largest registered snapshot ID. Snapshot allocation and publication order do not necessarily identify the KV state that should be used. A bucket needs an explicit recovery snapshot selection that is respected by readers and cleanup.
Scope
For normal primary-key buckets:
- Persist an optional recovery snapshot ID, reusing the ordinary snapshot reference for its offset and metadata path. Publish the reference and selection atomically, without moving the recovery offset backwards.
- Resolve the designated source for replica recovery and latest-snapshot queries. Use the largest registered ID only when no designation exists; an invalid designation must fail rather than fall back to another snapshot.
- Carry the original KV recovery identity in ordinary snapshot commits. Advance the designation only when that identity still matches, so a preceding KV context cannot replace the effective source.
- Preserve the designated snapshot and its shared SST files during retention. Remove retired snapshot references before releasing file protection, and keep local and remote WAL cleanup within the effective recovery boundary.
- Preserve normal client, Flink and tiering behavior when the designated ID is smaller than another retained ID. Subsequent tiering continues from its committed WAL offset.
Historical partitions retain their lake-based recovery model. The implementation reuses the existing bucket lock and I/O executor.
Compatibility
All Coordinators and TabletServers must support recovery-aware snapshot commits before explicit selection is enabled. Downgrading those servers while designations remain is unsupported. Remote _METADATA, ordinary snapshot references and public client API signatures remain unchanged.