mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 17:40:37 +00:00
Test detach while attach is still in progress
This commit is contained in:
committed by
Christian Schwarz
parent
978f1879b9
commit
0d533ce840
@@ -640,6 +640,10 @@ impl Tenant {
|
||||
crashsafe::fsync(marker_file.parent().expect("marker file has parent dir"))
|
||||
.context("fsync tenant directory after unlinking attach marker file")?;
|
||||
|
||||
fail::fail_point!("attach-before-activate", |_| {
|
||||
anyhow::bail!("failpoint attach-beore-activate");
|
||||
});
|
||||
|
||||
// FIXME: Check if the state has changed to Stopping while we were downloading stuff
|
||||
// We're ready for business.
|
||||
// Change to active state under the hood spawns background loops
|
||||
|
||||
Reference in New Issue
Block a user