Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: efm2 #371

wants to merge 1 commit into from

Conversation

joyc-bq
Copy link
Contributor

@joyc-bq joyc-bq commented Jan 16, 2025

Summary

Description

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

@joyc-bq joyc-bq added the wip Pull requests that are a work in progress label Jan 16, 2025
@joyc-bq joyc-bq force-pushed the efm2 branch 3 times, most recently from 765f928 to cec0010 Compare January 22, 2025 02:11
@joyc-bq joyc-bq marked this pull request as ready for review January 22, 2025 18:22
@joyc-bq joyc-bq removed the wip Pull requests that are a work in progress label Jan 22, 2025
}

private throwUnableToIdentifyConnection(host: HostInfo | null, provider: HostListProvider | null): never {
throw new AwsWrapperError(
Copy link
Contributor

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");
Copy link
Contributor

Choose a reason for hiding this comment

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

Add to en.json

Suggested change
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> {
Copy link
Contributor

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();
Copy link
Contributor

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));
Copy link
Contributor

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

Suggested change
logger.debug(Messages.get("MonitorConnectionContext.exceptionAbortingConnection", error.message));
logger.debug(Messages.get("MonitorConnectionContext.errorAbortingConnection", error.message));

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.

2 participants