Skip to content

feat: custom endpoint plugin#369

Merged
crystall-bitquill merged 1 commit intomainfrom
feat/custom-endpoints
Feb 12, 2025
Merged

feat: custom endpoint plugin#369
crystall-bitquill merged 1 commit intomainfrom
feat/custom-endpoints

Conversation

@crystall-bitquill
Copy link
Copy Markdown
Contributor

@crystall-bitquill crystall-bitquill commented Jan 14, 2025

Summary

Custom Endpoint Plugin

Description

  • Adds the custom endpoint plugin
  • Implements setAvailability in PluginService
  • Moves getRegion in the IamAuthUtils to RegionUtils
  • Fixes the MySQL database dialect getHostRole method - previously the query result was not being parsed correctly
  • Adds method to set the reader failover handler enableFailoverStrictReader value - previously it was always false.
  • Fixes incorrect check in the reader failover handler where a writer host would be returned even if the failover mode was set to strict reader
  • Moved the rdsHostListProvider's isDialectTopologyAware method to the utils file
  • Adds a check in the MySQL and PG Clients after creating a connection to confirm the host role, which can't always be identified correctly with just the provided host.

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

@crystall-bitquill crystall-bitquill added the ready for review Pull requests that are ready to be reviewed label Jan 14, 2025
Comment thread common/lib/utils/region_utils.ts
Comment thread common/lib/utils/region_utils.ts Outdated
Comment thread common/lib/utils/region_utils.ts
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_info.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_info.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_info.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_info.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_info.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_info.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_plugin.ts
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_plugin.ts Outdated
Comment thread common/lib/utils/locales/en.json Outdated
Comment thread common/lib/utils/rds_utils.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_role_type.ts Outdated
afterEach(async () => {
if (client !== null) {
try {
await client.end();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need to clear the cache each test run via PluginManager.releaseResources()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, releaseResources is called below this line

Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_monitor.ts Outdated
@crystall-bitquill crystall-bitquill force-pushed the feat/custom-endpoints branch 7 times, most recently from 33a53d9 to ce12cb4 Compare January 24, 2025 00:57
Comment thread common/lib/host_list_provider/rds_host_list_provider.ts Outdated
Comment thread common/lib/plugin_service.ts Outdated
Comment thread common/lib/plugin_service.ts Outdated
Comment thread common/lib/plugin_service.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts Outdated
Comment thread common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts Outdated
Comment thread common/lib/plugins/failover/failover_plugin.ts Outdated
Comment thread common/lib/plugins/failover/failover_plugin.ts
@crystall-bitquill crystall-bitquill force-pushed the feat/custom-endpoints branch 4 times, most recently from 33d730d to 1b72add Compare January 30, 2025 21:25
Comment thread common/lib/plugins/failover/failover_plugin.ts Outdated
@crystall-bitquill crystall-bitquill force-pushed the feat/custom-endpoints branch 9 times, most recently from e977dbd to 11c4155 Compare February 4, 2025 02:42
Comment thread common/lib/plugin_service.ts Outdated
@crystall-bitquill crystall-bitquill force-pushed the feat/custom-endpoints branch 3 times, most recently from 3d1a9c6 to 150ff62 Compare February 10, 2025 18:28
@crystall-bitquill crystall-bitquill merged commit 068e0c0 into main Feb 12, 2025
@crystall-bitquill crystall-bitquill deleted the feat/custom-endpoints branch February 12, 2025 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review Pull requests that are ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants