Skip to content

tokio-rt-worker panic causing crash w/o restarting Kubernetes Pod #1160

Description

@gl-jkeys

PgDog version
e.g., v0.1.34 or a41e41d1

Helm chart v0.58

Description
pgdog issues a tokio panic, but then failed to restart the affected pod. This left our environment in a bad state, and required a manual restart of the underlying Kubernetes Pod to remediate.

Logs
Attach trace logs, if the issue can be reproduced locally. To get trace logs, set RUST_LOG=trace, e.g.:

thread 'tokio-rt-worker' (7) panicked at /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.52.1/src/runtime/time/entry.rs:181:13:
mark_pending called when the timer entry is in an invalid state

Configuration

pgdog.toml:
----
[general]
port                      =   5432
workers                   =   2
default_pool_size         =   10
log_format                =   "text"
log_level                 =   "info"
pooler_mode               =   "transaction"
healthcheck_interval      =   30_000
idle_healthcheck_interval =   30_000
idle_healthcheck_delay    =   5_000
healthcheck_timeout       =   5_000
rollback_timeout          =   5_000
load_balancing_strategy   =   "round_robin"
read_write_strategy       =   "conservative"
tls_client_required       =   false
tls_verify                =   "prefer"
shutdown_timeout          =   60_000
prepared_statements       =   "extended"
passthrough_auth          =   "disabled"
connect_timeout           =   5_000
connect_attempts          =   1
connect_attempt_delay     =   0
checkout_timeout          =   5_000
dry_run                   =   false
client_idle_timeout       =   60000
mirror_queue              =   128
mirror_exposure           =   1.0
auth_type                 =   "scram"
cross_shard_disabled      =   false
openmetrics_port = 9090
openmetrics_namespace = "pgdog_"
server_lifetime = 86400000
log_connections = true
log_disconnections = true
expanded_explain = false

Activity

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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions