Skip to content

Commit

Permalink
ACTIVE_TENANT_TIMEOUT: fix accidental use of http timeout; #8339 (com…
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Jul 31, 2024
1 parent f9961a0 commit 38b0f3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pageserver/src/page_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ use crate::basebackup;
use crate::basebackup::BasebackupError;
use crate::config::PageServerConf;
use crate::context::{DownloadBehavior, RequestContext};
use crate::http::routes::ACTIVE_TENANT_TIMEOUT;
use crate::metrics;
use crate::metrics::{ComputeCommandKind, COMPUTE_COMMANDS_COUNTERS, LIVE_CONNECTIONS};
use crate::pgdatadir_mapping::Version;
Expand All @@ -63,6 +62,12 @@ use pageserver_api::reltag::SlruKind;
use postgres_ffi::pg_constants::DEFAULTTABLESPACE_OID;
use postgres_ffi::BLCKSZ;

/// How long we may wait for a [`crate::tenant::mgr::TenantSlot::InProgress`]` and/or a [`crate::tenant::Tenant`] which
/// is not yet in state [`TenantState::Active`].
///
/// NB: this is a different value than [`crate::http::routes::ACTIVE_TENANT_TIMEOUT`].
const ACTIVE_TENANT_TIMEOUT: Duration = Duration::from_millis(30000);

///////////////////////////////////////////////////////////////////////////////

pub struct Listener {
Expand Down

0 comments on commit 38b0f3c

Please sign in to comment.