mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-16 12:40:36 +00:00
log while waiting for tenant to finish activation
This commit is contained in:
@@ -1716,7 +1716,13 @@ impl Tenant {
|
||||
|
||||
// cannot stop before we're done activating, so wait out until we're done activating
|
||||
rx.wait_for(|state| match state {
|
||||
TenantState::Activating | TenantState::Loading | TenantState::Attaching => false, // TODO log that we're waiting
|
||||
TenantState::Activating | TenantState::Loading | TenantState::Attaching => {
|
||||
info!(
|
||||
"waiting for {} to turn Active|Broken|Stopping",
|
||||
<&'static str>::from(state)
|
||||
);
|
||||
false
|
||||
}
|
||||
TenantState::Active | TenantState::Broken { .. } | TenantState::Stopping {} => true,
|
||||
})
|
||||
.await
|
||||
@@ -1770,7 +1776,13 @@ impl Tenant {
|
||||
// The load & attach routines own the tenant state until it has reached `Active`.
|
||||
// So, wait until it's done.
|
||||
rx.wait_for(|state| match state {
|
||||
TenantState::Activating | TenantState::Loading | TenantState::Attaching => false, // TODO log that we're waiting
|
||||
TenantState::Activating | TenantState::Loading | TenantState::Attaching => {
|
||||
info!(
|
||||
"waiting for {} to turn Active|Broken|Stopping",
|
||||
<&'static str>::from(state)
|
||||
);
|
||||
false
|
||||
}
|
||||
TenantState::Active | TenantState::Broken { .. } | TenantState::Stopping {} => true,
|
||||
})
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user