-
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: failover2 #363
base: main
Are you sure you want to change the base?
feat: failover2 #363
Conversation
c4a4778
to
871729d
Compare
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
4a749c6
to
f86dc16
Compare
|
||
// Signal to connect that this is an internal call and does not require additional processing. | ||
const copyProps = new Map<string, any>(this._properties); | ||
copyProps.set(Failover2Plugin.INTERNAL_CONNECT_PROPERTY_NAME, true); |
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.
This new property will cause the community MySQL driver to warn
Ignoring invalid configuration option passed to Connection: 76c06979-49c4-4c86-9600-a63605b83f50.
Please make sure it is handled by removeWrapperProperties
d81f1af
to
7f2bde8
Compare
720eebe
to
bcb307d
Compare
this.monitor.hostMonitorsWriterClient = client; | ||
this.monitor.hostMonitorsWriterInfo = this.hostInfo; | ||
this.monitor.hostMonitorsStop = true; | ||
this.monitor.logTopology(`[hostMonitor ${this.hostInfo.hostId}] `); |
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.
this is a nit: but I think the whitespace should be added to be inside the logTopology method so the method doesnt have to pass in a string with a whitespace every time
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/cluster_topology_monitor.ts
Outdated
Show resolved
Hide resolved
timeoutMs | ||
); | ||
if (updatedHostList) { | ||
if (updatedHostList !== this.hosts) { |
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.
Does order matter?
were the integration tests for readwritesplitting + failover also tested with failover2? |
Summary
Description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.