Skip to content

Commit

Permalink
Ignore table/index metrics queries in health streamer tests
Browse files Browse the repository at this point in the history
Signed-off-by: Rafer Hazen <[email protected]>
  • Loading branch information
rafer committed Jan 21, 2025
1 parent bfb0eef commit 8f83d68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/vt/vttablet/tabletserver/health_streamer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ func TestReloadView(t *testing.T) {
db.AddQuery("SELECT TABLE_NAME, CREATE_TIME FROM _vt.`tables`", &sqltypes.Result{})
// adding query pattern for udfs
db.AddQueryPattern("SELECT name.*", &sqltypes.Result{})
db.AddQuery("select table_name, partition_name from information_schema.partitions where table_schema = database() and partition_name is not null", &sqltypes.Result{})
db.AddQuery("select table_name, n_rows, clustered_index_size * @@innodb_page_size from mysql.innodb_table_stats where database_name = database()", &sqltypes.Result{})
db.AddQuery("select table_name, index_name, stat_value * @@innodb_page_size from mysql.innodb_index_stats where database_name = database() and stat_name = 'size'", &sqltypes.Result{})
db.AddQuery("select table_name, index_name, max(cardinality) from information_schema.statistics s where table_schema = database() group by s.table_name, s.index_name", &sqltypes.Result{})

se.InitDBConfig(cfg.DB.DbaWithDB())
hs.Open()
Expand Down

0 comments on commit 8f83d68

Please sign in to comment.