Skip to content

DynamicConfigurationRefreshIntervalSecs in gateway SetupConfiguration has no effect on the dynamic-config refresh cadence #724

Closed

Description

@morch23mj

Describe the bug

Setting DynamicConfigurationRefreshIntervalSecs in the gateway's SetupConfiguration.json does not change the dynamic-configuration refresh cadence. The gateway keeps refreshing (and re-acquiring topology) at the built-in default of 300 seconds regardless of the configured value.

Environment

  • documentdb-local v0.114-0 (self-hosted gateway, pg_documentdb_gw)
  • Self-managed PostgreSQL backend

Reproduction Steps

  1. Start the gateway with "DynamicConfigurationRefreshIntervalSecs": 86400 in SetupConfiguration.json.
  2. Confirm the value is present in the config file the running gateway is actually using.
  3. Watch the logs for Topology acquired (emitted by PgConfiguration::load_topology on each refresh_configuration()).

Expected behavior

With the interval at 86400s, Topology acquired should log ~once per day.

Actual behavior

Topology acquired keeps logging ~every 300s — the built-in default (SetupConfiguration::dynamic_configuration_refresh_interval_secs() -> unwrap_or(60 * 5) in configuration/setup.rs), as if the configured value were never applied. start_dynamic_configuration_refresh_thread (configuration/pg_configuration.rs) is expected to use the configured interval directly.

Additional context

Adjacent to, but distinct from, the config-load issue in #723 — worth checking whether they share a root cause. Happy to provide more logs if useful.

Activity

  1. added
    gateway
    on Aug 18, 2026
  2. documentdb-triage-tool commented on Aug 18, 2026

    @documentdb-triage-tool

    🤖 Auto-triaged by documentdb-triage-tool.

    Applied: gateway, bug
    Project fields suggested: Component gateway · Priority P2 · Effort M · Status Triage
    Confidence: 0.85 (llm)

    Reasoning

    LLM: The configured DynamicConfigurationRefreshIntervalSecs value is silently ignored by the gateway's refresh thread, which always falls back to the 300s default — a functional bug in gateway configuration logic within pg_documentdb_gw.

    If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

  3. guanzhousongmicrosoft commented on Aug 31, 2026

    @guanzhousongmicrosoft
    Member

    Fixed in v0.116-0: the configured dynamic refresh interval is now honored. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggateway

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions