initdb cache

This commit is contained in:
Heikki Linnakangas
2024-09-11 01:38:36 +03:00
parent 8e7f336540
commit 4da40cbbfb
2 changed files with 5 additions and 1 deletions

View File

@@ -3534,6 +3534,7 @@ impl Tenant {
// Flush loop needs to be spawned in order to be able to flush.
unfinished_timeline.maybe_spawn_flush_loop();
info!("starting to import from datadir");
import_datadir::import_timeline_from_postgres_datadir(
unfinished_timeline,
&pgdata_path,
@@ -3549,6 +3550,7 @@ impl Tenant {
anyhow::bail!("failpoint before-checkpoint-new-timeline");
});
info!("calling freeze_and_flush");
unfinished_timeline
.freeze_and_flush()
.await
@@ -3559,7 +3561,9 @@ impl Tenant {
})?;
// All done!
info!("calling finish_creation");
let timeline = raw_timeline.finish_creation()?;
info!("call to finish_creation done");
Ok(timeline)
}

View File

@@ -50,7 +50,7 @@ class NeonBroker:
raise RuntimeError(
f"timed out waiting {elapsed:.0f}s for storage_broker start: {e}"
) from e
time.sleep(0.5)
time.sleep(0.1)
else:
break # success