Remove legacy healthcheck files and structures#10542
Remove legacy healthcheck files and structures#10542frouioui merged 17 commits intovitessio:mainfrom
Conversation
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
f0791e4 to
b6fc805
Compare
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
b6fc805 to
a809a13
Compare
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
|
Since this is cleanup, we don't need to back port it to v14. It's a teeny bit risky to refactor this close to release on the release branch. |
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
go/vt/discovery/healthcheck.go
Outdated
| TabletRecorder | ||
|
|
There was a problem hiding this comment.
Why are we embedding an interface into another? Do we have implementations of TabletRecorder that don't implement HealthCheck?
There was a problem hiding this comment.
Do we have implementations of TabletRecorder that don't implement HealthCheck?
No, we don't.
Why are we embedding an interface into another?
This was done so we can use the healthcheck (discovery.HealthCheck) as a tablet recorder in tx throttler:
Ultimately, the topo watcher in the discovery package uses a TabletRecorder.
Previously, the LegacyHealthCheck interface was embedding LegacyTabletRecorder:
vitess/go/vt/discovery/legacy_healthcheck.go
Lines 285 to 289 in d037f24
There was a problem hiding this comment.
we should not have to embed it for things to work.
…hcheck-struct Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
…d target.shard checks Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
deepthi
left a comment
There was a problem hiding this comment.
Only one change is required - to remove TabletRecorder from HealthCheck interface.
Once that is done, this can be merged.
Nice work, and thank you for your patience during review.
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
We decided to remove the |
Description
This Pull Request removes the legacy healthcheck and the related code (legacy topo watcher, legacy replication lag, etc). The different usages have been replaced by the new implementation of the healthcheck. The different files hosting the legacy code have been removed.
Related Issue(s)
legacy_healthcheck.goand any related structs that are no longer needed #10454Checklist