From 88351f2f968fffb449aa99797c33c60611453aa5 Mon Sep 17 00:00:00 2001 From: jasonlamz Date: Wed, 5 Jun 2024 13:25:45 -0700 Subject: [PATCH] rollback driver connection provider --- common/lib/driver_connection_provider.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/lib/driver_connection_provider.ts b/common/lib/driver_connection_provider.ts index a0ffa6da..47f5112f 100644 --- a/common/lib/driver_connection_provider.ts +++ b/common/lib/driver_connection_provider.ts @@ -54,9 +54,9 @@ export class DriverConnectionProvider implements ConnectionProvider { throw e; } - // if (!JSON.stringify(e).includes("Error: getaddrinfo ENOTFOUND")) { - // throw e; - // } + if (!JSON.stringify(e).includes("Error: getaddrinfo ENOTFOUND")) { + throw e; + } if (!this.rdsUtils.isRdsDns(hostInfo.host) || !this.rdsUtils.isGreenInstance(hostInfo.host)) { throw e; @@ -95,7 +95,6 @@ export class DriverConnectionProvider implements ConnectionProvider { JSON.stringify(maskProperties(props)) ); - await pluginService.tryClosingTargetClient(); const newTargetClient = pluginService.createTargetClient(props); const fixedConnFunc = pluginService.getConnectFunc(newTargetClient); await fixedConnFunc();