-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schema Tracking Refactor: Merge schema-tracking in health-streamer in…
…to schema.Engine (#13121) * test: add test to verify the expectations of health stream Signed-off-by: Manan Gupta <[email protected]> * test: augment the test to also test the case where views are enabled in vttablets Signed-off-by: Manan Gupta <[email protected]> * feat: use the schema engine notifier to run the reload in health-streamer Signed-off-by: Manan Gupta <[email protected]> * feat: deprecate the flag controlling the interval of health-streamer reload Signed-off-by: Manan Gupta <[email protected]> * test: augment test to verify schema tracking works for alters in views as well Signed-off-by: Manan Gupta <[email protected]> * feat: add a view table type and augment loadTable function to assign it correctly Signed-off-by: Manan Gupta <[email protected]> * feat: change health streamer to use the tables got from the schemaEngine instead of detecting the schema changes on its own Signed-off-by: Manan Gupta <[email protected]> * feat: make the schema engine capable of storing the table and view information in a database Signed-off-by: Manan Gupta <[email protected]> * feat: remove unused functions Signed-off-by: Manan Gupta <[email protected]> * feat: fix health streamer tests Signed-off-by: Manan Gupta <[email protected]> * test: fix tests by also deleting the tablet record for the tablets that are removed Signed-off-by: Manan Gupta <[email protected]> * feat: fix deadlocks and incorrect writes from health-streamer Signed-off-by: Manan Gupta <[email protected]> * feat: improve how we start health streamer and engine Signed-off-by: Manan Gupta <[email protected]> * feat: use the newly introduced field Signed-off-by: Manan Gupta <[email protected]> * feat: use sqlparser.string to get the escaped table name Signed-off-by: Manan Gupta <[email protected]> * test: fix the default configuration test's expectation Signed-off-by: Manan Gupta <[email protected]> * test: add the new tables to the expected output of tests Signed-off-by: Manan Gupta <[email protected]> * test: fix test expectation to match MySQL 8.0 behaviour Signed-off-by: Manan Gupta <[email protected]> * feat: fix schema change test Signed-off-by: Manan Gupta <[email protected]> * feat: fix state manager test Signed-off-by: Manan Gupta <[email protected]> * feat: use the same flag for the context in schema-engine Signed-off-by: Manan Gupta <[email protected]> * test: refactor test to use a single stream call Signed-off-by: Manan Gupta <[email protected]> * feat: revert changes to json marshal in config Signed-off-by: Manan Gupta <[email protected]> * feat: fix health stream timeout test Signed-off-by: Manan Gupta <[email protected]> * feat: refactor engine notifier to send tables instead of strings Signed-off-by: Manan Gupta <[email protected]> * feat: add tests for all the functions in the db.go file and fix a couple of them Signed-off-by: Manan Gupta <[email protected]> * feat: refactor code and fix a couple of bugs Signed-off-by: Manan Gupta <[email protected]> * test: add more tests for the reload database logic Signed-off-by: Manan Gupta <[email protected]> * test: fix schema version test Signed-off-by: Manan Gupta <[email protected]> * test: added more tests for all the schema.engine functions Signed-off-by: Manan Gupta <[email protected]> * test: fix engine test flakiness Signed-off-by: Manan Gupta <[email protected]> * test: add health-streamer test Signed-off-by: Manan Gupta <[email protected]> * feat: fix data race in fakedb Signed-off-by: Manan Gupta <[email protected]> * test: add header comments to tests Signed-off-by: Manan Gupta <[email protected]> * feat: rename views table columns to table_schema and table_name Signed-off-by: Manan Gupta <[email protected]> * feat: fix detectViewChange query Signed-off-by: Manan Gupta <[email protected]> * feat: fix the summary Signed-off-by: Manan Gupta <[email protected]> --------- Signed-off-by: Manan Gupta <[email protected]>
- Loading branch information
1 parent
a4b8e26
commit 9e892eb
Showing
38 changed files
with
2,822 additions
and
515 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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.