Skip to content

Commit f8be36d

Browse files
committed
chore: ensure consistent naming for GlobalDB related functionalities.
1 parent de1e574 commit f8be36d

30 files changed

Lines changed: 212 additions & 200 deletions

common/lib/authentication/iam_authentication_plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { RegionUtils } from "../utils/region_utils";
2828
import { CanReleaseResources } from "../can_release_resources";
2929
import { RdsUrlType } from "../utils/rds_url_type";
3030
import { RdsUtils } from "../utils/rds_utils";
31-
import { GDBRegionUtils } from "../utils/gdb_region_utils";
31+
import { GlobalDbRegionUtils } from "../utils/global_db_region_utils";
3232

3333
export class IamAuthenticationPlugin extends AbstractConnectionPlugin implements CanReleaseResources {
3434
private static readonly SUBSCRIBED_METHODS = new Set<string>(["connect", "forceConnect"]);
@@ -85,7 +85,7 @@ export class IamAuthenticationPlugin extends AbstractConnectionPlugin implements
8585
const port = this.iamAuthUtils.getIamPort(props, hostInfo, this.pluginService.getCurrentClient().defaultPort);
8686

8787
const type: RdsUrlType = this.rdsUtils.identifyRdsType(host.host);
88-
this.regionUtils = type == RdsUrlType.RDS_GLOBAL_WRITER_CLUSTER ? new GDBRegionUtils() : new RegionUtils();
88+
this.regionUtils = type == RdsUrlType.RDS_GLOBAL_WRITER_CLUSTER ? new GlobalDbRegionUtils() : new RegionUtils();
8989
const region: string | null = await this.regionUtils.getRegion(WrapperProperties.IAM_REGION.name, host, props);
9090

9191
if (!region) {

common/lib/connection_plugin_chain_builder.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ import { CustomEndpointPluginFactory } from "./plugins/custom_endpoint/custom_en
4343
import { ConfigurationProfile } from "./profile/configuration_profile";
4444
import { HostMonitoring2PluginFactory } from "./plugins/efm/v2/host_monitoring2_plugin_factory";
4545
import { BlueGreenPluginFactory } from "./plugins/bluegreen/blue_green_plugin_factory";
46-
import { GlobalDbFailoverPluginFactory } from "./plugins/gdb_failover/global_db_failover_plugin_factory";
46+
import { GlobalDbFailoverPluginFactory } from "./plugins/global_db_failover/global_db_failover_plugin_factory";
4747
import { FullServicesContainer } from "./utils/full_services_container";
48-
import { GdbReadWriteSplittingPluginFactory } from "./plugins/read_write_splitting/gdb_read_write_splitting_plugin_factory";
48+
import { GlobalDbReadWriteSplittingPluginFactory } from "./plugins/read_write_splitting/global_db_read_write_splitting_plugin_factory";
4949

5050
/*
5151
Type alias used for plugin factory sorting. It holds a reference to a plugin
@@ -66,7 +66,7 @@ export class ConnectionPluginChainBuilder {
6666
["staleDns", { factory: StaleDnsPluginFactory, weight: 500 }],
6767
["bg", { factory: BlueGreenPluginFactory, weight: 550 }],
6868
["readWriteSplitting", { factory: ReadWriteSplittingPluginFactory, weight: 600 }],
69-
["gdbReadWriteSplitting", { factory: GdbReadWriteSplittingPluginFactory, weight: 610 }],
69+
["gdbReadWriteSplitting", { factory: GlobalDbReadWriteSplittingPluginFactory, weight: 610 }],
7070
["failover", { factory: FailoverPluginFactory, weight: 700 }],
7171
["failover2", { factory: Failover2PluginFactory, weight: 710 }],
7272
["gdbFailover", { factory: GlobalDbFailoverPluginFactory, weight: 720 }],
@@ -89,7 +89,7 @@ export class ConnectionPluginChainBuilder {
8989
[StaleDnsPluginFactory, 500],
9090
[BlueGreenPluginFactory, 550],
9191
[ReadWriteSplittingPluginFactory, 600],
92-
[GdbReadWriteSplittingPluginFactory, 610],
92+
[GlobalDbReadWriteSplittingPluginFactory, 610],
9393
[FailoverPluginFactory, 700],
9494
[Failover2PluginFactory, 710],
9595
[GlobalDbFailoverPluginFactory, 720],

common/lib/host_list_provider/global_topology_utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import { isDialectTopologyAware } from "../database_dialect/topology_aware_datab
2222
import { Messages } from "../utils/messages";
2323
import { AwsWrapperError } from "../utils/errors";
2424

25-
export interface GdbTopologyUtils {
25+
export interface GlobalDbTopologyUtils {
2626
getRegion(instanceId: string, targetClient: ClientWrapper, dialect: DatabaseDialect): Promise<string | null>;
2727
}
2828

29-
export class GlobalTopologyUtils extends TopologyUtils implements GdbTopologyUtils {
29+
export class GlobalTopologyUtils extends TopologyUtils implements GlobalDbTopologyUtils {
3030
async queryForTopology(
3131
targetClient: ClientWrapper,
3232
dialect: DatabaseDialect,

common/lib/host_list_provider/monitoring/global_aurora_topology_monitor.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import { ClusterTopologyMonitorImpl } from "./cluster_topology_monitor";
18-
import { GdbTopologyUtils } from "../global_topology_utils";
18+
import { GlobalDbTopologyUtils } from "../global_topology_utils";
1919
import { FullServicesContainer } from "../../utils/full_services_container";
2020
import { HostInfo } from "../../host_info";
2121
import { ClientWrapper } from "../../client_wrapper";
@@ -24,19 +24,19 @@ import { Messages } from "../../utils/messages";
2424
import { TopologyUtils } from "../topology_utils";
2525
import { AccessibleRegions } from "../../utils/accessible_regions";
2626
import { MonitoringConnectionHandler } from "./monitoring_connection_handler";
27-
import { GdbMonitoringConnectionHandler } from "./gdb_monitoring_connection_handler";
27+
import { GlobalDbMonitoringConnectionHandler } from "./global_db_monitoring_connection_handler";
2828
import { WrapperProperties } from "../../wrapper_property";
2929
import { RdsUtils } from "../../utils/rds_utils";
3030
import { logger } from "../../../logutils";
3131

32-
function isGdbTopologyUtils(utils: TopologyUtils): utils is TopologyUtils & GdbTopologyUtils {
33-
return "getRegion" in utils && typeof (utils as unknown as GdbTopologyUtils).getRegion === "function";
32+
function isGlobalDbTopologyUtils(utils: TopologyUtils): utils is TopologyUtils & GlobalDbTopologyUtils {
33+
return "getRegion" in utils && typeof (utils as unknown as GlobalDbTopologyUtils).getRegion === "function";
3434
}
3535

3636
export class GlobalAuroraTopologyMonitor extends ClusterTopologyMonitorImpl {
3737
protected readonly instanceTemplatesByRegion: Map<string, HostInfo>;
3838
protected readonly accessibleRegions: string[] | null;
39-
protected readonly gdbRdsUtils: RdsUtils = new RdsUtils();
39+
protected readonly globalDbRdsUtils: RdsUtils = new RdsUtils();
4040
declare public readonly topologyUtils: TopologyUtils;
4141

4242
constructor(
@@ -63,8 +63,8 @@ export class GlobalAuroraTopologyMonitor extends ClusterTopologyMonitorImpl {
6363

6464
protected override createConnectionHandler(): MonitoringConnectionHandler {
6565
const homeRegion =
66-
WrapperProperties.FAILOVER_HOME_REGION.get(this.monitoringProperties) ?? this.gdbRdsUtils.getRdsRegion(this.initialHostInfo.host);
67-
return new GdbMonitoringConnectionHandler(
66+
WrapperProperties.FAILOVER_HOME_REGION.get(this.monitoringProperties) ?? this.globalDbRdsUtils.getRdsRegion(this.initialHostInfo.host);
67+
return new GlobalDbMonitoringConnectionHandler(
6868
this.pluginService,
6969
this.monitoringProperties,
7070
this.accessibleRegions,
@@ -84,7 +84,7 @@ export class GlobalAuroraTopologyMonitor extends ClusterTopologyMonitorImpl {
8484
if (this.accessibleRegions) {
8585
// Only fail loud when the initial host's region is known and excluded. If the region can't be
8686
// determined, defer to the normal workflow rather than blocking the connection.
87-
const region = this.gdbRdsUtils.getRdsRegion(this.initialHostInfo.host);
87+
const region = this.globalDbRdsUtils.getRdsRegion(this.initialHostInfo.host);
8888
if (region && !this.accessibleRegions.includes(region.toLowerCase())) {
8989
const msg = Messages.get("GlobalAuroraTopologyMonitor.initialHostNotInAccessibleRegion", this.initialHostInfo.host, region);
9090
throw new AwsWrapperError(msg);
@@ -95,7 +95,7 @@ export class GlobalAuroraTopologyMonitor extends ClusterTopologyMonitorImpl {
9595
}
9696

9797
protected override async getInstanceTemplate(hostId: string, targetClient: ClientWrapper): Promise<HostInfo> {
98-
if (!isGdbTopologyUtils(this.topologyUtils)) {
98+
if (!isGlobalDbTopologyUtils(this.topologyUtils)) {
9999
throw new AwsWrapperError(Messages.get("GlobalAuroraTopologyMonitor.invalidTopologyUtils"));
100100
}
101101

common/lib/host_list_provider/monitoring/gdb_monitoring_connection_handler.ts renamed to common/lib/host_list_provider/monitoring/global_db_monitoring_connection_handler.ts

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { Messages } from "../../utils/messages";
2525
import { AbstractMonitoringConnectionHandler } from "./monitoring_connection_handler";
2626
import { equalsIgnoreCase } from "../../utils/utils";
2727

28-
export enum GdbMonitoringConnectionPriority {
28+
export enum GlobalDbMonitoringConnectionPriority {
2929
STRICT_WRITER_PRIMARY = "strict-writer-primary",
3030
STRICT_WRITER_SECONDARY = "strict-writer-secondary",
3131
STRICT_READER_PRIMARY = "strict-reader-primary",
@@ -35,44 +35,44 @@ export enum GdbMonitoringConnectionPriority {
3535
REGION = "region"
3636
}
3737

38-
interface GdbPriorityConfig {
39-
type: GdbMonitoringConnectionPriority;
38+
interface GlobalDbPriorityConfig {
39+
type: GlobalDbMonitoringConnectionPriority;
4040
region?: string;
4141
}
4242

4343
// AWS region identifiers look like "us-east-1", "eu-west-2", "ap-southeast-1".
4444
const REGION_SHAPE = /^[a-z]{2}-[a-z]+-\d+$/;
4545

46-
function parseGdbPriority(value: string | null): GdbPriorityConfig | null {
46+
function parseGlobalDbPriority(value: string | null): GlobalDbPriorityConfig | null {
4747
if (!value) {
4848
return null;
4949
}
5050
const lower = value.toLowerCase().trim();
5151
switch (lower) {
5252
case "strict-writer-primary":
53-
return { type: GdbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY };
53+
return { type: GlobalDbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY };
5454
case "strict-writer-secondary":
55-
return { type: GdbMonitoringConnectionPriority.STRICT_WRITER_SECONDARY };
55+
return { type: GlobalDbMonitoringConnectionPriority.STRICT_WRITER_SECONDARY };
5656
case "strict-reader-primary":
57-
return { type: GdbMonitoringConnectionPriority.STRICT_READER_PRIMARY };
57+
return { type: GlobalDbMonitoringConnectionPriority.STRICT_READER_PRIMARY };
5858
case "strict-reader-secondary":
59-
return { type: GdbMonitoringConnectionPriority.STRICT_READER_SECONDARY };
59+
return { type: GlobalDbMonitoringConnectionPriority.STRICT_READER_SECONDARY };
6060
case "writer-or-reader-primary":
61-
return { type: GdbMonitoringConnectionPriority.WRITER_OR_READER_PRIMARY };
61+
return { type: GlobalDbMonitoringConnectionPriority.WRITER_OR_READER_PRIMARY };
6262
case "writer-or-reader-secondary":
63-
return { type: GdbMonitoringConnectionPriority.WRITER_OR_READER_SECONDARY };
63+
return { type: GlobalDbMonitoringConnectionPriority.WRITER_OR_READER_SECONDARY };
6464
default:
6565
// Any unrecognized token is treated as a region literal. If it doesn't look like an AWS
6666
// region identifier, it is most likely a typo (e.g. "strict-wrtier-primary") that will
6767
// never match any host, so warn to aid diagnosis.
6868
if (!REGION_SHAPE.test(lower)) {
69-
logger.warn(Messages.get("GdbMonitoringConnectionHandler.unrecognizedPriority", value));
69+
logger.warn(Messages.get("GlobalDbMonitoringConnectionHandler.unrecognizedPriority", value));
7070
}
71-
return { type: GdbMonitoringConnectionPriority.REGION, region: lower };
71+
return { type: GlobalDbMonitoringConnectionPriority.REGION, region: lower };
7272
}
7373
}
7474

75-
export class GdbMonitoringConnectionHandler extends AbstractMonitoringConnectionHandler<GdbPriorityConfig> {
75+
export class GlobalDbMonitoringConnectionHandler extends AbstractMonitoringConnectionHandler<GlobalDbPriorityConfig> {
7676
private readonly rdsUtils: RdsUtils = new RdsUtils();
7777
private readonly accessibleRegions: string[] | null;
7878
private primaryRegion: string | null = null;
@@ -86,24 +86,26 @@ export class GdbMonitoringConnectionHandler extends AbstractMonitoringConnection
8686
getMonitoringClient: () => ClientWrapper | null,
8787
setMonitoringClient: (client: ClientWrapper | null) => void
8888
) {
89-
const priorities = GdbMonitoringConnectionHandler.parsePriorities(WrapperProperties.GDB_MONITORING_CONNECTION_PRIORITY.get(monitoringProperties));
89+
const priorities = GlobalDbMonitoringConnectionHandler.parsePriorities(
90+
WrapperProperties.GLOBAL_DB_MONITORING_CONNECTION_PRIORITY.get(monitoringProperties)
91+
);
9092
super(pluginService, monitoringProperties, priorities, getMonitoringClient, setMonitoringClient);
9193
this.accessibleRegions = accessibleRegions;
92-
logger.debug(Messages.get("GdbMonitoringConnectionHandler.initialized", JSON.stringify(this.priorities)));
94+
logger.debug(Messages.get("GlobalDbMonitoringConnectionHandler.initialized", JSON.stringify(this.priorities)));
9395
}
9496

95-
private static parsePriorities(value: string | null): GdbPriorityConfig[] {
97+
private static parsePriorities(value: string | null): GlobalDbPriorityConfig[] {
9698
if (!value) {
97-
return [{ type: GdbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY }];
99+
return [{ type: GlobalDbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY }];
98100
}
99-
const results: GdbPriorityConfig[] = [];
101+
const results: GlobalDbPriorityConfig[] = [];
100102
for (const part of value.split(",")) {
101-
const p = parseGdbPriority(part.trim());
103+
const p = parseGlobalDbPriority(part.trim());
102104
if (p) {
103105
results.push(p);
104106
}
105107
}
106-
return results.length > 0 ? results : [{ type: GdbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY }];
108+
return results.length > 0 ? results : [{ type: GlobalDbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY }];
107109
}
108110

109111
override acceptConnection(client: ClientWrapper, isWriter: boolean, hostInfo: HostInfo): boolean {
@@ -148,21 +150,21 @@ export class GdbMonitoringConnectionHandler extends AbstractMonitoringConnection
148150
return -1;
149151
}
150152

151-
private isSatisfiedBy(priority: GdbPriorityConfig, hostInfo: HostInfo, isWriter: boolean): boolean {
153+
private isSatisfiedBy(priority: GlobalDbPriorityConfig, hostInfo: HostInfo, isWriter: boolean): boolean {
152154
switch (priority.type) {
153-
case GdbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY:
155+
case GlobalDbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY:
154156
return isWriter && this.isInPrimaryRegion(hostInfo);
155-
case GdbMonitoringConnectionPriority.STRICT_WRITER_SECONDARY:
157+
case GlobalDbMonitoringConnectionPriority.STRICT_WRITER_SECONDARY:
156158
return isWriter && !this.isInPrimaryRegion(hostInfo);
157-
case GdbMonitoringConnectionPriority.STRICT_READER_PRIMARY:
159+
case GlobalDbMonitoringConnectionPriority.STRICT_READER_PRIMARY:
158160
return !isWriter && this.isInPrimaryRegion(hostInfo);
159-
case GdbMonitoringConnectionPriority.STRICT_READER_SECONDARY:
161+
case GlobalDbMonitoringConnectionPriority.STRICT_READER_SECONDARY:
160162
return !isWriter && !this.isInPrimaryRegion(hostInfo);
161-
case GdbMonitoringConnectionPriority.WRITER_OR_READER_PRIMARY:
163+
case GlobalDbMonitoringConnectionPriority.WRITER_OR_READER_PRIMARY:
162164
return this.isInPrimaryRegion(hostInfo);
163-
case GdbMonitoringConnectionPriority.WRITER_OR_READER_SECONDARY:
165+
case GlobalDbMonitoringConnectionPriority.WRITER_OR_READER_SECONDARY:
164166
return !this.isInPrimaryRegion(hostInfo);
165-
case GdbMonitoringConnectionPriority.REGION:
167+
case GlobalDbMonitoringConnectionPriority.REGION:
166168
return equalsIgnoreCase(this.getHostRegion(hostInfo), priority.region);
167169
default:
168170
return false;
@@ -177,29 +179,29 @@ export class GdbMonitoringConnectionHandler extends AbstractMonitoringConnection
177179
const filtered = this.filterAccessible(candidates);
178180
this.updatePrimaryRegion(filtered);
179181
switch (priority.type) {
180-
case GdbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY:
182+
case GlobalDbMonitoringConnectionPriority.STRICT_WRITER_PRIMARY:
181183
return filtered.filter((h) => h.role === HostRole.WRITER && this.isInPrimaryRegion(h));
182184

183-
case GdbMonitoringConnectionPriority.STRICT_WRITER_SECONDARY:
185+
case GlobalDbMonitoringConnectionPriority.STRICT_WRITER_SECONDARY:
184186
return filtered.filter((h) => h.role === HostRole.WRITER && !this.isInPrimaryRegion(h));
185187

186-
case GdbMonitoringConnectionPriority.STRICT_READER_PRIMARY:
188+
case GlobalDbMonitoringConnectionPriority.STRICT_READER_PRIMARY:
187189
return filtered.filter((h) => h.role === HostRole.READER && this.isInPrimaryRegion(h));
188190

189-
case GdbMonitoringConnectionPriority.STRICT_READER_SECONDARY:
191+
case GlobalDbMonitoringConnectionPriority.STRICT_READER_SECONDARY:
190192
return filtered.filter((h) => h.role === HostRole.READER && !this.isInPrimaryRegion(h));
191193

192-
case GdbMonitoringConnectionPriority.WRITER_OR_READER_PRIMARY: {
194+
case GlobalDbMonitoringConnectionPriority.WRITER_OR_READER_PRIMARY: {
193195
const writers = filtered.filter((h) => h.role === HostRole.WRITER && this.isInPrimaryRegion(h));
194196
return writers.length > 0 ? writers : filtered.filter((h) => h.role === HostRole.READER && this.isInPrimaryRegion(h));
195197
}
196198

197-
case GdbMonitoringConnectionPriority.WRITER_OR_READER_SECONDARY: {
199+
case GlobalDbMonitoringConnectionPriority.WRITER_OR_READER_SECONDARY: {
198200
const writers = filtered.filter((h) => h.role === HostRole.WRITER && !this.isInPrimaryRegion(h));
199201
return writers.length > 0 ? writers : filtered.filter((h) => h.role === HostRole.READER && !this.isInPrimaryRegion(h));
200202
}
201203

202-
case GdbMonitoringConnectionPriority.REGION: {
204+
case GlobalDbMonitoringConnectionPriority.REGION: {
203205
const targetRegion = priority.region!;
204206
const writers = filtered.filter((h) => h.role === HostRole.WRITER && equalsIgnoreCase(this.getHostRegion(h), targetRegion));
205207
return writers.length > 0 ? writers : filtered.filter((h) => equalsIgnoreCase(this.getHostRegion(h), targetRegion));

common/lib/host_list_provider/monitoring/monitoring_connection_handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export interface MonitoringConnectionHandler {
101101
* Base class for monitoring connection handlers that manage a priority-ordered connection
102102
* lifecycle. Subclasses provide priority-specific logic via abstract hooks.
103103
*
104-
* @typeParam P the priority type (e.g. MonitoringConnectionPriority, GdbPriorityConfig)
104+
* @typeParam P the priority type (e.g. MonitoringConnectionPriority, GlobalDbPriorityConfig)
105105
*/
106106
export abstract class AbstractMonitoringConnectionHandler<P> implements MonitoringConnectionHandler {
107107
protected readonly pluginService: PluginService;

common/lib/plugins/custom_endpoint/custom_endpoint_plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { CustomEndpointMonitor, CustomEndpointMonitorImpl } from "./custom_endpo
3232
import { SubscribedMethodHelper } from "../../utils/subscribed_method_helper";
3333
import { CanReleaseResources } from "../../can_release_resources";
3434
import { RdsUrlType } from "../../utils/rds_url_type";
35-
import { GDBRegionUtils } from "../../utils/gdb_region_utils";
35+
import { GlobalDbRegionUtils } from "../../utils/global_db_region_utils";
3636

3737
export class CustomEndpointPlugin extends AbstractConnectionPlugin implements CanReleaseResources {
3838
private static readonly TELEMETRY_WAIT_FOR_INFO_COUNTER = "customEndpoint.waitForInfo.counter";

common/lib/plugins/federated_auth/saml_auth_plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { ClientWrapper } from "../../client_wrapper";
2929
import { TelemetryCounter } from "../../utils/telemetry/telemetry_counter";
3030
import { RegionUtils } from "../../utils/region_utils";
3131
import { RdsUrlType } from "../../utils/rds_url_type";
32-
import { GDBRegionUtils } from "../../utils/gdb_region_utils";
32+
import { GlobalDbRegionUtils } from "../../utils/global_db_region_utils";
3333
import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types/dist-types/identity/awsCredentialIdentity";
3434

3535
export class BaseSamlAuthPlugin extends AbstractConnectionPlugin {
@@ -93,7 +93,7 @@ export class BaseSamlAuthPlugin extends AbstractConnectionPlugin {
9393
credentialsProvider = await this.credentialsProviderFactory.getAwsCredentialsProvider(hostInfo.host, null, props);
9494
}
9595

96-
this.regionUtils = type == RdsUrlType.RDS_GLOBAL_WRITER_CLUSTER ? new GDBRegionUtils(credentialsProvider) : new RegionUtils();
96+
this.regionUtils = type == RdsUrlType.RDS_GLOBAL_WRITER_CLUSTER ? new GlobalDbRegionUtils(credentialsProvider) : new RegionUtils();
9797
const region: string | null = await this.regionUtils.getRegion(WrapperProperties.IAM_REGION.name, host, props);
9898

9999
if (!region) {

common/lib/plugins/gdb_failover/global_db_failover_mode.ts renamed to common/lib/plugins/global_db_failover/global_db_failover_mode.ts

File renamed without changes.

common/lib/plugins/gdb_failover/global_db_failover_plugin.ts renamed to common/lib/plugins/global_db_failover/global_db_failover_plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class GlobalDbFailoverPlugin extends Failover2Plugin {
104104
// The home region must be reachable. If it is excluded from the accessible regions, failover
105105
// candidate filtering would always drop it, so fail loudly at configuration time.
106106
if (this.homeRegion && !this.accessibleRegions.includes(this.homeRegion.toLowerCase())) {
107-
throw new AwsWrapperError(Messages.get("Gdb.homeRegionNotAccessible", this.homeRegion, this.accessibleRegions.join(",")));
107+
throw new AwsWrapperError(Messages.get("GlobalDb.homeRegionNotAccessible", this.homeRegion, this.accessibleRegions.join(",")));
108108
}
109109
}
110110

0 commit comments

Comments
 (0)