-
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: custom endpoint plugin #369
base: main
Are you sure you want to change the base?
Conversation
6698fb5
to
1c989bc
Compare
1c989bc
to
67a7625
Compare
common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts
Outdated
Show resolved
Hide resolved
common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts
Outdated
Show resolved
Hide resolved
common/lib/plugins/custom_endpoint/custom_endpoint_role_type.ts
Outdated
Show resolved
Hide resolved
afterEach(async () => { | ||
if (client !== null) { | ||
try { | ||
await client.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.
Do we need to clear the cache each test run via PluginManager.releaseResources()
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.
Yes, releaseResources
is called below this line
67a7625
to
07e6851
Compare
33a53d9
to
ce12cb4
Compare
docs/using-the-nodejs-wrapper/using-plugins/UsingTheCustomEndpointPlugin.md
Outdated
Show resolved
Hide resolved
ce12cb4
to
ef4288d
Compare
ef4288d
to
6d4363e
Compare
common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts
Outdated
Show resolved
Hide resolved
common/lib/plugins/custom_endpoint/custom_endpoint_monitor_impl.ts
Outdated
Show resolved
Hide resolved
33d730d
to
1b72add
Compare
this.throwFailoverSuccessError(); | ||
} catch (error: any) { | ||
this.failoverWriterFailedCounter.inc(); | ||
if (!(error instanceof FailoverSuccessError)) { | ||
this.failoverWriterFailedCounter.inc(); |
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.
throwFailoverSuccessError
might throw TransactionResolutionUnknownError
, so its better to call this.failoverWriterSuccessCounter.inc();
in the catch block
1b72add
to
33487f3
Compare
311d1a2
to
e977dbd
Compare
e977dbd
to
11c4155
Compare
Summary
Custom Endpoint Plugin
Description
enableFailoverStrictReader
value - previously it was always false.rdsHostListProvider
'sisDialectTopologyAware
method to theutils
fileBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.