-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: efm2 #371
base: main
Are you sure you want to change the base?
feat: efm2 #371
Conversation
765f928
to
cec0010
Compare
} | ||
|
||
private throwUnableToIdentifyConnection(host: HostInfo | null, provider: HostListProvider | null): never { | ||
throw new AwsWrapperError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include the call to this.pluginService.getHostListProvider()
in here? Seems like you don't need to pass through a provider
|
||
try { | ||
if (rdsUrlType.isRdsCluster) { | ||
logger.debug("Monitoring host info is associated with a cluster endpoint, plugin needs to identify the cluster connection"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add to en.json
logger.debug("Monitoring host info is associated with a cluster endpoint, plugin needs to identify the cluster connection"); | |
logger.debug("Monitoring host info is associated with a cluster endpoint, plugin needs to identify the cluster connection."); |
return this.monitoringHostInfo; | ||
} | ||
|
||
async notifyConnectionChanged(changes: Set<HostChangeOptions>): Promise<OldConnectionSuggestionAction> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No other implementation of notifyConnectionChanged
potentially returns nothing - what happens in the case it does not return OldConnectionSuggestionAction.NO_OPINION
?
context.setInactive(); | ||
try { | ||
await clientToAbort.abort(); | ||
await clientToAbort.end(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we tried one or the other on the most recent version?
this.abortedConnectionsCounter.inc(); | ||
} catch (error) { | ||
// ignore | ||
logger.debug(Messages.get("MonitorConnectionContext.exceptionAbortingConnection", error.message)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message should use error instead of exception
logger.debug(Messages.get("MonitorConnectionContext.exceptionAbortingConnection", error.message)); | |
logger.debug(Messages.get("MonitorConnectionContext.errorAbortingConnection", error.message)); |
Summary
Description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.