-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Healthcheck: new simpler implementation #6155
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
Merged
Merged
Changes from 34 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
8dd5132
healthcheck: rename healthcheck and associated structs to legacy
deepthi f543f21
healthcheck: move more code to legacy, and create stubs for new healt…
deepthi 27ec840
healthcheck: remove unused structs, compactify new healthcheck functi…
deepthi b29b745
healthcheck: move tabletStats into separate file, implement cell map …
deepthi 9e3adee
healthcheck: implement topo watch, tablet_stats_cache test, stub new …
deepthi d4cb214
healthcheck: remove unnecessary flag, fix some TODOs
deepthi 21b9f74
healthcheck: simplify healthcheck struct by deleting tablet_stats_cac…
deepthi 8e2b518
healthcheck: if cells_to_watch is empty, operate on just localCell
deepthi 5808934
healthcheck: delete commented code
deepthi 3d95319
healthcheck: use tabletHealth.mu to serialize access to members. hand…
deepthi 84f21ab
healthcheck: move shuffleTablets back to gateway
deepthi 30c6f47
healthcheck: Move topoWatch back into TopologyWatcher and use TabletR…
deepthi b0ce1c5
healthcheck: remove references to TabletToMapKey in new topo watcher
deepthi 1abc4f4
healthcheck: notify buffer when failover ends, rename entries -> heal…
deepthi 8a020f3
healthcheck: rename old tests to legacy
deepthi 543dd23
healthcheck: move loadTablets from TopologyWatcher to HealthCheckImpl,
deepthi 1c511af
healthcheck: fold healthCheckConn into TabletHealth, fix CacheStatus,…
deepthi fe9bdd4
healthcheck: rename TabletHealth->tabletHealthCheck, create a simpler…
deepthi 741c012
healthcheck: HealthCheck cache in vtgate debug/status page
deepthi 94e597f
healthcheck: refactor stream into smaller funcs, use channel for unit…
deepthi 4b85e4b
healthcheck: ScatterConn should return the correct cache status based…
deepthi b2f8c89
healthcheck: topology_watcher unit tests
deepthi 8946b06
healthcheck: fix stats and healthy, endtoend test
deepthi 2b95b25
healthcheck: endtoend test for scatter_conn and buffer
deepthi 3c89878
healthcheck: lock hc.mu before accessing members
deepthi 08250b8
healthcheck: unit tests for GetHealthyTabletStats
deepthi 00d137e
healthcheck: update protobuf generated sources, fix shadowing bug whi…
deepthi c4fab25
healthcheck: cell alias test, add new tests to config.json
deepthi 97a77a4
healthcheck: cell alias unit test
deepthi e0fb77e
healthcheck: remove HealthCheck interface, rename HealthCheckImpl -> …
deepthi 08deeac
healthcheck: use channel to notify buffer of new master
deepthi edd4066
healthcheck: close subscriber goroutine when healthcheck is closed
deepthi 45b9b1d
healthcheck: fix endtoend setup to use correct gateway
deepthi 3f172ca
addressed review comments
systay cb276c9
healthcheck: remove mu from tabletHealthCheck, replace more uses of t…
deepthi f56e82b
healthcheck: make new tabletgateway the default, deprecate discoveryg…
deepthi a49e079
healthcheck: fix vtexplain test to use legacy gateway
deepthi d9e420b
healthcheck: fix race condition by using thread-safe healthData inste…
deepthi 3343c21
healthcheck: legacy_replication_lag_algorithm is used by new healthch…
deepthi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: can change the function call
"_ = vtg.Gateway().Close(context.Background())" -> "vtg.Gateway().Close(context.Background())"
"_ = legacyHealthCheck.Close()" -> "legacyHealthCheck.Close()"
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.
Ignoring the return value produces warnings.
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 still ignored :)
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.
I personally think it's clearer using the underscore to mark that we are aware of the returned value, but we are ignoring it. Makes it clear that it's not by mistake