-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
MDEV-6860 Parallel async replication hangs #1400
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 all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| connection node_2; | ||
| START SLAVE; | ||
| connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3; | ||
| connection node_3; | ||
| CREATE TABLE t1 (f1 int, f2 int) ENGINE=InnoDB; | ||
| connection node_2; | ||
| connection node_1; | ||
| connection node_3; | ||
| DROP TABLE t1; | ||
| connection node_2; | ||
| STOP SLAVE; | ||
| RESET SLAVE ALL; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| !include ../galera_2nodes_as_slave.cnf | ||
|
|
||
| [mysqld.2] | ||
| slave-parallel-threads=2 | ||
| slave-parallel-mode=optimistic | ||
| [mysqld.1] | ||
| wsrep-slave-threads=10 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| --source include/have_innodb.inc | ||
|
|
||
| --source include/galera_cluster.inc | ||
|
|
||
| --connection node_2 | ||
| --disable_query_log | ||
| --eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_PORT=$NODE_MYPORT_3, MASTER_USE_GTID=slave_pos; | ||
| --enable_query_log | ||
| START SLAVE; | ||
|
|
||
| --connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3 | ||
| --connection node_3 | ||
| --let $inserts=1000 | ||
| CREATE TABLE t1 (f1 int, f2 int) ENGINE=InnoDB; | ||
|
|
||
| --let $count=0 | ||
| --disable_query_log | ||
| while($count < $inserts) | ||
| { | ||
| --eval insert into t1 values ($count,1) | ||
| --inc $count | ||
| } | ||
| --enable_query_log | ||
|
|
||
| --connection node_2 | ||
|
|
||
| --let $wait_condition = SELECT COUNT(*) = $inserts FROM t1 | ||
| --source include/wait_condition.inc | ||
|
|
||
| --connection node_1 | ||
| --let $wait_condition = SELECT COUNT(*) = $inserts FROM t1 | ||
| --source include/wait_condition.inc | ||
|
|
||
| --connection node_3 | ||
| DROP TABLE t1; | ||
|
|
||
| --connection node_2 | ||
| --let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'test' | ||
| --source include/wait_condition.inc | ||
|
|
||
| STOP SLAVE; | ||
| RESET SLAVE ALL; | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.