mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 06:00:38 +00:00
use utils::failpoint_sleep_millis_async!("attach-before-activate")
The detach_while_attaching test still passes, presumably because the two request execute on different OS threads.
This commit is contained in:
committed by
Christian Schwarz
parent
791eebefe2
commit
1022b4b98f
@@ -640,9 +640,7 @@ 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");
|
||||
});
|
||||
utils::failpoint_sleep_millis_async!("attach-before-activate");
|
||||
|
||||
// Start background operations and open the tenant for business.
|
||||
// The loops will shut themselves down when they notice that the tenant is inactive.
|
||||
|
||||
@@ -153,7 +153,7 @@ def test_detach_while_attaching(
|
||||
pageserver_http.tenant_detach(tenant_id)
|
||||
|
||||
# And re-attach
|
||||
pageserver_http.configure_failpoints([("attach-before-activate", "sleep(5000)")])
|
||||
pageserver_http.configure_failpoints([("attach-before-activate", "return(5000)")])
|
||||
|
||||
pageserver_http.tenant_attach(tenant_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user