mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-28 18:40:38 +00:00
Fix test_timeline_copy flakiness.
fixes https://github.com/neondatabase/neon/issues/8355
This commit is contained in:
committed by
Christian Schwarz
parent
1637a6ee05
commit
537ecf45f8
@@ -74,10 +74,16 @@ pub async fn handle_request(request: Request) -> Result<()> {
|
||||
assert!(flush_lsn >= start_lsn);
|
||||
|
||||
if request.until_lsn > flush_lsn {
|
||||
bail!("requested LSN is beyond the end of the timeline");
|
||||
bail!(format!(
|
||||
"requested LSN {} is beyond the end of the timeline {}",
|
||||
request.until_lsn, flush_lsn
|
||||
));
|
||||
}
|
||||
if request.until_lsn < start_lsn {
|
||||
bail!("requested LSN is before the start of the timeline");
|
||||
bail!(format!(
|
||||
"requested LSN {} is before the start of the timeline {}",
|
||||
request.until_lsn, start_lsn
|
||||
));
|
||||
}
|
||||
|
||||
if request.until_lsn > commit_lsn {
|
||||
|
||||
Reference in New Issue
Block a user