Skip to content

Commit

Permalink
Windows test stabilisation fix (disable threads only on certain platf…
Browse files Browse the repository at this point in the history
…orms)
  • Loading branch information
MarkLeith committed Jul 1, 2016
1 parent 76b512c commit 5ea888e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 5 additions & 3 deletions mysql-test/suite/sysschema/r/pr_ps_setup_show_enabled.result
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ SET ENABLED = 'NO'
UPDATE performance_schema.setup_consumers
SET ENABLED = 'NO'
WHERE NAME LIKE '%\_history\_long';
UPDATE performance_schema.threads SET INSTRUMENTED = 'NO' WHERE NAME LIKE 'thread/innodb/srv\_%';
UPDATE performance_schema.threads
SET INSTRUMENTED = 'NO'
WHERE NAME LIKE 'thread/innodb/srv\_%'
OR NAME LIKE '%con\_%'
OR NAME LIKE '%signal_handler%';
CALL sys.ps_setup_show_enabled(FALSE, FALSE);
performance_schema_enabled
1
Expand Down Expand Up @@ -208,7 +212,6 @@ innodb/page_cleaner_thread BACKGROUND
root@localhost FOREGROUND
sql/compress_gtid_table FOREGROUND
sql/main BACKGROUND
sql/signal_handler BACKGROUND
sql/thread_timer_notifier BACKGROUND
CALL sys.ps_setup_show_enabled(TRUE, TRUE);
performance_schema_enabled
Expand Down Expand Up @@ -247,7 +250,6 @@ innodb/page_cleaner_thread BACKGROUND
root@localhost FOREGROUND
sql/compress_gtid_table FOREGROUND
sql/main BACKGROUND
sql/signal_handler BACKGROUND
sql/thread_timer_notifier BACKGROUND
enabled_instruments timed
idle YES
Expand Down
8 changes: 6 additions & 2 deletions mysql-test/suite/sysschema/t/pr_ps_setup_show_enabled.test
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ UPDATE performance_schema.setup_consumers
SET ENABLED = 'NO'
WHERE NAME LIKE '%\_history\_long';

# Disable some of the background threads:
UPDATE performance_schema.threads SET INSTRUMENTED = 'NO' WHERE NAME LIKE 'thread/innodb/srv\_%';
# Disable some of the background threads (including those that differ between unix like and Windows systems):
UPDATE performance_schema.threads
SET INSTRUMENTED = 'NO'
WHERE NAME LIKE 'thread/innodb/srv\_%'
OR NAME LIKE '%con\_%'
OR NAME LIKE '%signal_handler%';

# Show limited info (no thread or instrument info)
CALL sys.ps_setup_show_enabled(FALSE, FALSE);
Expand Down

0 comments on commit 5ea888e

Please sign in to comment.