-
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
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
64dcca3
to
8d30bbf
Compare
common/lib/host_list_provider/monitoring/monitoring_host_list_provider.ts
Outdated
Show resolved
Hide resolved
await this.failoverReader(); | ||
} | ||
|
||
if (this._isInTransaction || this.pluginService.isInTransaction()) { |
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._isInTransaction
is set via this.pluginService.isInTransaction()
, and when we use it we check this.pluginService.isInTransaction()
anyway. Not sure if it is worth having this local variable.
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._isInTransaction is set right before we rollback the client. It stores the knowledge that we are in transaction, as rollback can set inTransaction to be false
d4fee57
to
b93394b
Compare
b93394b
to
edcf0f7
Compare
return false; | ||
} | ||
|
||
protected isBlockingHostListProvider(arg: any): arg is BlockingHostListProvider { |
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.
Would it make more sense to put this in utils?
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.
Hmm I don't think it belongs in utils, it is very specific to this one use
common/lib/host_list_provider/monitoring/monitoring_host_list_provider.ts
Outdated
Show resolved
Hide resolved
common/lib/host_list_provider/monitoring/monitoring_host_list_provider.ts
Outdated
Show resolved
Hide resolved
edcf0f7
to
31b702f
Compare
Summary
Description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.