pg.ddx.io  aws/aws-advanced-jdbc-wrapper GitHub issues and pull requests  
help / color / mirror / Atom feed
From: aaron-congo (@aaron-congo) <noreply+aaron-congo@github.com>
To: aws/aws-advanced-jdbc-wrapper <noreply+aws-aws-advanced-jdbc-wrapper@github.com>
Subject: Re: [aws/aws-advanced-jdbc-wrapper] PR #2242: fix: B/G plugin stuck in POST after a completed switchover
Date: Mon, 16 Nov 2026 22:58:24 +0000
Message-ID: <gh-aws-aws-advanced-jdbc-wrapper-2242-rc4592854011@github.com> (raw)
In-Reply-To: <gh-aws-aws-advanced-jdbc-wrapper-2242@github.com>
References: <gh-aws-aws-advanced-jdbc-wrapper-2242@github.com>

(on wrapper/src/main/java/software/amazon/jdbc/plugin/bluegreen/BlueGreenStatusProvider.java:637)

When a fresh context first reads a lingering POST or COMPLETED, it now reports POST for the full `bgSwitchoverTimeoutMs` before this block resets it. That's for a switchover that already finished before this context existed:

- Its monitors record the post-switchover IPs as their start IPs, so `allStartTopologyIpChanged` can't become true and nothing ends POST early.
- When the timer expires, `logSwitchoverFinalSummary()` logs a "switchover COMPLETED" summary at INFO, together with the `bgd.switchoverTimeout` WARNING, for a switchover this context never actually saw.

How long does the deployment keep reporting POST or COMPLETED after a switchover? If it can stay readable for longer than the timeout, the reset context reads it again and the cycle repeats: another 3 minutes of POST, a new pair of monitors, and another WARNING and summary, for as long as the status stays readable. Do you know from the 4.6.0 case how long it lasted?

Either way, should a context that never saw the start of the switchover (no PREPARATION or IN_PROGRESS in `phaseTimeNano`) treat a first-seen POST or COMPLETED as already finished, and go back to idle monitoring right away without arming the timer?


view thread (8+ messages)  latest in thread

Message-ID: <gh-aws-aws-advanced-jdbc-wrapper-2242-rc4592854011@github.com>
Permalink:  ../gh-aws-aws-advanced-jdbc-wrapper-2242-rc4592854011@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox