perf(ecstore): retry degraded GET with late parity (#6933)

Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
houseme
2026-08-31 13:32:46 +08:00
committed by GitHub
parent dc2e25b48c
commit 1d606e1cf6
2 changed files with 26 additions and 2 deletions
@@ -1442,6 +1442,14 @@ mod data_read_metadata_early_stop_request_shape_tests {
restore_opts.transition.restore_request.days = Some(1);
assert!(!data_read_metadata_early_stop_request_shape_allowed(&None, &restore_opts));
}
#[test]
fn late_materialized_retry_clears_partial_buffer_after_error() {
let mut output = b"partial-prefix".to_vec();
let result = Err(Error::FileCorrupt);
assert!(prepare_late_materialized_retry(&result, &mut output, 1024));
assert!(output.is_empty());
}
}
/// Length of the full plaintext body when — and only when — this read's output