pub fn latest_checkpoint_index(ids: &[(i64, i32)]) -> Option<usize>
Return the index of the maximum (end offset, epoch) checkpoint id.
(end offset, epoch)