Skip to content

Commit

Permalink
Fix test flakiness in ddl_high_priority
Browse files Browse the repository at this point in the history
Summary:
The ddl_high_priority test occassionally fails with extra output
showing connections remaining over from the previous subtest.
Add a session count to ensure they are cleaned up before the
subtest ends.

Test Plan:
mtr main.ddl_high_priority
mtr rocksdb.ddl_high_priority

Reviewers: aliaksei, mung, rtm

Reviewed By: aliaksei, rtm

Subscribers: webscalesql-eng@fb.com

Differential Revision: https://phabricator.intern.facebook.com/D6436736

Tasks: T23950282

Signature: 6436736:1511976587:2ec22d5349a499cde26f1ac21b90abea8112d801
  • Loading branch information
Herman Lee committed Nov 29, 2017
1 parent 0a62ca0 commit 8a8e957
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mysql-test/include/ddl_high_priority_module.inc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
## Setup
##

# Save the initial number of concurrent sessions
--source include/count_sessions.inc

connection default;

# create con1
Expand Down Expand Up @@ -139,3 +142,5 @@ connection default;
show processlist;

disconnect con1;

--source include/wait_until_count_sessions.inc

0 comments on commit 8a8e957

Please sign in to comment.