Skip to content

feat: GDB Failover#625

Open
karenc-bq wants to merge 10 commits intodev/v3from
feat/gdb-failover
Open

feat: GDB Failover#625
karenc-bq wants to merge 10 commits intodev/v3from
feat/gdb-failover

Conversation

@karenc-bq
Copy link
Copy Markdown
Contributor

Summary

Description

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@karenc-bq karenc-bq requested a review from a team as a code owner March 13, 2026 18:09
@karenc-bq karenc-bq changed the base branch from main to refactor/monitor-service March 13, 2026 18:10
@karenc-bq karenc-bq force-pushed the feat/gdb-failover branch 3 times, most recently from cc4c6aa to bcc243b Compare March 15, 2026 08:39
@karenc-bq karenc-bq force-pushed the refactor/monitor-service branch from 81930fe to 00d8176 Compare March 15, 2026 09:18
@karenc-bq karenc-bq force-pushed the feat/gdb-failover branch 2 times, most recently from 5b7069a to 14c1bb3 Compare March 15, 2026 12:52
}

// Check writer region to determine failover mode
const writerRegion = this.rdsHelper.getRdsRegion(writerCandidate.host);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this return null? Would we have issues if it does?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

equalsIgnoreCase has null checks and would return false if writerRegion is null

@karenc-bq karenc-bq changed the base branch from refactor/monitor-service to dev/v3 March 26, 2026 17:32
Comment on lines +244 to +245
if (!(ex instanceof FailoverFailedError)) {
this.failoverWriterFailedCounter.inc();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit confusing could we maybe add a comment explaining that we only want to increment the counter if we haven't already marked it and then thrown a failover failed error? Also what is the benefit to marking it above instead of just always incrementing it here? Is it about timing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comment. It is already incremented in Failover2Plugin.

@karenc-bq karenc-bq force-pushed the feat/gdb-failover branch from ae2a9f6 to 0162bac Compare April 6, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants