Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1,859 changed files
with
171,959 additions
and
108,982 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,4 @@ | ||
| # | ||
| # Check if server has support for loading plugins | ||
| # suite.pm will make sure that all tests including this file | ||
| # will be skipped unless dynamic ha_example plugin is available | ||
| # | ||
| if (`SELECT @@have_dynamic_loading != 'YES'`) { | ||
| --skip Example plugin requires dynamic loading | ||
| } | ||
|
|
||
| # | ||
| # Check if the variable EXAMPLE_PLUGIN is set | ||
| # | ||
| if (!$HA_EXAMPLE_SO) { | ||
| --skip Need example plugin | ||
| } | ||
|
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| --require r/not_windows.require | ||
| disable_query_log; | ||
| select convert(@@version_compile_os using latin1) NOT IN ("Win32","Win64","Windows") as "TRUE"; | ||
| enable_query_log; | ||
| # | ||
| # suite.pm will make sure that all tests including this file | ||
| # will be skipped unless this is on Windows | ||
| # |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # ==== Purpose ==== | ||
| # | ||
| # Extract Gtid_list info from SHOW BINLOG EVENTS output masking | ||
| # non-deterministic fields. | ||
| # | ||
| # ==== Usage ==== | ||
| # | ||
| # [--let $binlog_file=filename | ||
| # | ||
| if ($binlog_file) | ||
| { | ||
| --let $_in_binlog_file=in '$binlog_file' | ||
| } | ||
| --replace_column 2 # 5 # | ||
| --eval show binlog events $_in_binlog_file limit 1,1 |
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 was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| RESET MASTER; | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (); | ||
| and the command execution is effective thence rotates binlog as usual | ||
| show binary logs; | ||
| Log_name File_size | ||
| master-bin.000001 # | ||
| master-bin.000002 # | ||
| Non-existed domain is warned, the command completes without rotation | ||
| but with a warning | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (99); | ||
| Warnings: | ||
| Warning 1076 The gtid domain being deleted ('99') is not in the current binlog state | ||
| show binary logs; | ||
| Log_name File_size | ||
| master-bin.000001 # | ||
| master-bin.000002 # | ||
| SET @@SESSION.gtid_domain_id=1; | ||
| SET @@SESSION.server_id=1; | ||
| CREATE TABLE t (a int); | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (1); | ||
| ERROR HY000: Could not delete gtid domain. Reason: binlog files may contain gtids from the domain ('1') being deleted. Make sure to first purge those files. | ||
| FLUSH BINARY LOGS; | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (1); | ||
| ERROR HY000: Could not delete gtid domain. Reason: binlog files may contain gtids from the domain ('1') being deleted. Make sure to first purge those files. | ||
| PURGE BINARY LOGS TO 'master-bin.000003';; | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (1); | ||
| Gtid_list of the current binlog does not contain '1': | ||
| show binlog events in 'master-bin.000004' limit 1,1; | ||
| Log_name Pos Event_type Server_id End_log_pos Info | ||
| master-bin.000004 # Gtid_list 1 # [] | ||
| But the previous log's Gtid_list may have it which explains a warning from the following command | ||
| show binlog events in 'master-bin.000003' limit 1,1; | ||
| Log_name Pos Event_type Server_id End_log_pos Info | ||
| master-bin.000003 # Gtid_list 1 # [1-1-1] | ||
| Already deleted domain in Gtid_list of the earliest log is benign | ||
| but may cause a warning | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (1); | ||
| Warnings: | ||
| Warning 1076 The current gtid binlog state is incompatible with a former one missing gtids from the '1-1' domain-server pair which is referred to in the gtid list describing an earlier state. Ignore if the domain ('1') was already explicitly deleted. | ||
| Warning 1076 The gtid domain being deleted ('1') is not in the current binlog state | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 0); | ||
| ERROR HY000: Could not delete gtid domain. Reason: binlog files may contain gtids from the domain ('1') being deleted. Make sure to first purge those files. | ||
| FLUSH BINARY LOGS; | ||
| PURGE BINARY LOGS TO 'master-bin.000005'; | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 0); | ||
| Warnings: | ||
| Warning 1076 The gtid domain being deleted ('0') is not in the current binlog state | ||
| Gtid_list of the current binlog does not contain 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 0: | ||
| show binlog events in 'master-bin.000006' limit 1,1; | ||
| Log_name Pos Event_type Server_id End_log_pos Info | ||
| master-bin.000006 # Gtid_list 1 # [] | ||
| SET @@SESSION.gtid_domain_id=1;; | ||
| SET @@SESSION.server_id=1; | ||
| SET @@SESSION.gtid_seq_no=1; | ||
| INSERT INTO t SET a=1; | ||
| SET @@SESSION.server_id=2; | ||
| SET @@SESSION.gtid_seq_no=2; | ||
| INSERT INTO t SET a=2; | ||
| SET @@SESSION.gtid_domain_id=11; | ||
| SET @@SESSION.server_id=11; | ||
| SET @@SESSION.gtid_seq_no=11; | ||
| INSERT INTO t SET a=11; | ||
| SET @gtid_binlog_state_saved=@@GLOBAL.gtid_binlog_state; | ||
| FLUSH BINARY LOGS; | ||
| SET @@SESSION.gtid_domain_id=11; | ||
| SET @@SESSION.server_id=11; | ||
| SET @@SESSION.gtid_seq_no=1; | ||
| INSERT INTO t SET a=1; | ||
| SELECT @gtid_binlog_state_saved "as original state", @@GLOBAL.gtid_binlog_state as "out of order for 11 domain state"; | ||
| as original state out of order for 11 domain state | ||
| 1-1-1,1-2-2,11-11-11 1-1-1,1-2-2,11-11-1 | ||
| PURGE BINARY LOGS TO 'master-bin.000007'; | ||
| the following command succeeds with warnings | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (1); | ||
| Warnings: | ||
| Warning 1076 The current gtid binlog state is incompatible with a former one having a gtid '11-11-1' which is less than the '11-11-11' of the gtid list describing an earlier state. The state may have been affected by manually injecting a lower sequence number gtid or via replication. | ||
| DROP TABLE t; | ||
| RESET MASTER; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| SET @@SESSION.debug_dbug='+d,inject_binlog_delete_domain_init_error'; | ||
| FLUSH BINARY LOGS DELETE_DOMAIN_ID = (99); | ||
| ERROR HY000: Could not delete gtid domain. Reason: injected error. | ||
| SHOW WARNINGS; | ||
| Level Code Message | ||
| Error 1076 Could not delete gtid domain. Reason: injected error. |
Oops, something went wrong.