Skip to content

Commit 3662820

Browse files
authored
docs: Known issue added to SupportForRDSMultiAzDBCluster.md (#417)
1 parent 22b63ad commit 3662820

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export class ClusterTopologyMonitorImpl implements ClusterTopologyMonitor {
282282

283283
if (this.hostMonitors.size === 0) {
284284
// Initialize host tasks.
285-
logger.info(Messages.get("ClusterTopologyMonitor.startingHostMonitors"));
285+
logger.debug(Messages.get("ClusterTopologyMonitor.startingHostMonitors"));
286286
this.hostMonitorsStop = false;
287287
if (this.hostMonitorsReaderClient !== null) {
288288
await this.closeConnection(this.hostMonitorsReaderClient);

docs/using-the-nodejs-wrapper/SupportForRDSMultiAzDBCluster.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ The following plugins have been tested and confirmed to work with Amazon RDS Mul
4242

4343
The compatibility of other plugins has not been tested at this time. They may function as expected or potentially result in unhandled behavior.
4444
Use at your own discretion.
45+
46+
## Known Issues
47+
48+
When using the AWS Advanced NodeJS Wrapper with Amazon RDS Multi-AZ DB Cluster deployments, the failover process may fail to complete due to the stale topology returning the incorrect writer instance. This causes the wrapper to throw a FailoverFailedError with the message:
49+
`"The new writer was identified to be 'instance endpoint', but querying the instance for its role returned a reader."`

tests/integration/container/tests/aurora_failover.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const itIf =
3636
? it
3737
: it.skip;
3838
const itIfTwoInstance = instanceCount == 2 ? itIf : it.skip;
39-
const itIfThreeInstance = instanceCount == 3 ? it : it.skip;
39+
const itIfThreeInstanceAuroraCluster =
40+
instanceCount == 3 && !features.includes(TestEnvironmentFeatures.RDS_MULTI_AZ_CLUSTER_SUPPORTED) ? it : it.skip;
4041

4142
let env: TestEnvironment;
4243
let driver;
@@ -115,7 +116,7 @@ describe("aurora failover", () => {
115116
logger.info(`Test finished: ${expect.getState().currentTestName}`);
116117
}, 1320000);
117118

118-
itIfThreeInstance(
119+
itIfThreeInstanceAuroraCluster(
119120
"writer failover efm",
120121
async () => {
121122
// Connect to writer instance.

tests/integration/container/tests/custom_endpoint.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import { PluginManager } from "../../../../common/lib";
3737
import { TestDriver } from "./utils/test_driver";
3838
import { DatabaseEngineDeployment } from "./utils/database_engine_deployment";
3939

40-
4140
const itIf =
4241
features.includes(TestEnvironmentFeatures.FAILOVER_SUPPORTED) &&
4342
!features.includes(TestEnvironmentFeatures.PERFORMANCE) &&

0 commit comments

Comments
 (0)