pub fn tiered_latest_finished_index( starts: &[i64], ends: &[i64], finished: &[bool], ) -> Option<usize>
Select the finished remote segment with the greatest valid inclusive end.