-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Test for MDEV-39788 #5147
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
Open
ParadoxV5
wants to merge
30
commits into
10.11
Choose a base branch
from
MDEV-39788.test
base: 10.11
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Test for MDEV-39788 #5147
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
da58c0c
Ensure that mtr.out-of-source is not acccidently calling itself
montywi f0ae019
bump the VERSION
dbart 61d251c
MDEV-13542 fixup: Remove orphan trx_print()
dr-m 13e6808
MDEV-39676 : Galera Cluster-peer > Donor command execution
janlindstrom 03e040e
Fix test failure on galera_sst_mariabackup_encrypt_with_key_server
janlindstrom 3a3c1e4
Prepare for Galera library version 26.4.27
janlindstrom 1648170
MDEV-39565 missing filename check in mariadb-backup --decompress
vuvova c5409ca
MDEV-39564 One-byte OOB write in PROXY protocol v1 header parser
vuvova 31319c7
proxy protocol v2: fix a harmless typo
vuvova 05663d1
MDEV-39576 PROXY v2 protocol uninitialized memory reads
vuvova 9a3e153
MDEV-39581 dynamic column header missing sanity checks
vuvova 11c41cd
MDEV-39622 OBJECT_INSTANCE_BEGIN in P_S are unstable, difficult to co…
vuvova 32ab8a2
MDEV-39657 ASAN error on malformed WKB point
vuvova 52bbe5b
MDEV-39658 ASAN crash on invalid proxy_protocol_networks value
vuvova fe3039e
MDEV-39673 group_concat ignores max_allowed_packet
vuvova 5cedbdf
fix columnstore for new cmake
vuvova dae315a
MDEV-39648: wsrep_sst_rsync.sh: apply safe() to joiner-supplied param…
hemantdangi-gc a9e2f7f
MDEV-39676 disallow global.wsrep_sst_donor=NULL again
vuvova f2296f3
MDEV-39685 : galera multi table update crash
janlindstrom e7374f2
Revert "MDEV-17677: Keywords followed by .number parsed as identifiers"
vuvova 29c0041
MDEV-39654 schema-qualified unquoted table name starting with digit f…
vuvova ed8404a
MDEV-39721: wsrep_notify.cc: reject shell-unsafe characters in joiner…
hemantdangi-gc b2050fd
strengthen safe() in wsrep_sst_common, just in case
vuvova fafcaa8
bump the VERSION
dbart 197f92b
Merge branch '10.6' into 10.11
vuvova b6921bb
Test for MDEV-39788
ParadoxV5 cef52e2
fixup
ParadoxV5 78ac3f8
ye smol problem with test-result pairs is that it’s easy to forget to…
ParadoxV5 df587c1
whoops. (RIP our CI today)
ParadoxV5 0d654f6
didn’t notice that null lists were allowed in pre-12.3
ParadoxV5 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| MYSQL_VERSION_MAJOR=10 | ||
| MYSQL_VERSION_MINOR=11 | ||
| MYSQL_VERSION_PATCH=17 | ||
| MYSQL_VERSION_PATCH=18 | ||
| SERVER_MATURITY=stable |
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
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
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
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
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
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
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
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
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
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
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
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
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,8 @@ | ||
| CHANGE MASTER TO master_host='127.0.0.1'; | ||
| # restart: --skip-slave-start | ||
| Master_SSL_Key = '' | ||
| Using_Gtid = 'Current_Pos' | ||
| SQL_Delay = '0' | ||
| RESET SLAVE ALL; | ||
| Warnings: | ||
| Note 4190 RESET SLAVE is implicitly changing the value of 'Using_Gtid' from 'Current_Pos' to 'Slave_Pos' |
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,74 @@ | ||
| # Line count / upgrading test for `@@master_info_file` & `@@relay_log_info_file` | ||
| # | ||
| # This regression test reminds that the line count includes the line count line. | ||
| # | ||
| # Reference: | ||
| # MDEV-39788 CHANGE MASTER savefiles read and write one line to many | ||
|
|
||
| --source include/have_binlog_format_mixed.inc # format-agnostic | ||
| CHANGE MASTER TO master_host='127.0.0.1'; # have_info_files | ||
|
|
||
| --let $MYSQLD_DATADIR= `SELECT @@datadir` | ||
|
|
||
|
|
||
| # `using_gtid` is the key-value section, not the 33rd option. | ||
| --remove_file $MYSQLD_DATADIR/master.info | ||
| --write_file $MYSQLD_DATADIR/master.info | ||
| 33 | ||
|
|
||
| 4 | ||
| 127.0.0.1 | ||
| root | ||
|
|
||
| 3306 | ||
| 60 | ||
| 1 | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| 1 | ||
| 60.000 | ||
|
|
||
| 0 | ||
|
|
||
| 100000 | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| using_gtid=1 | ||
| EOF | ||
|
|
||
| # This file does not have the 6th option | ||
| # (neither does the current `@@relay_log_info_file`). | ||
| --remove_file $MYSQLD_DATADIR/relay-log.info | ||
| --write_file $MYSQLD_DATADIR/relay-log.info | ||
| 6 | ||
| ./mysqld-relay-bin.000001 | ||
| 4 | ||
|
|
||
| 0 | ||
| 0 | ||
| EOF | ||
|
|
||
|
|
||
| --let $restart_parameters= --skip-slave-start | ||
| --source include/restart_mysqld.inc | ||
|
|
||
| --let $status_items= Master_SSL_Key, Using_Gtid, SQL_Delay | ||
| --source include/show_slave_status.inc | ||
|
|
||
|
|
||
| # Reset | ||
| 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 |
|---|---|---|
| @@ -1,5 +1,14 @@ | ||
| #!/usr/bin/env perl | ||
| # Call mtr in out-of-source build | ||
|
|
||
| use Cwd qw(cwd abs_path); | ||
| $ENV{MTR_BINDIR} = '@CMAKE_BINARY_DIR@'; | ||
| my $dir= cwd(); | ||
| my $new_dir= abs_path('@CMAKE_SOURCE_DIR@'); | ||
| if ($dir eq $new_dir . '/mysql-test') | ||
| { | ||
| print stderr "Something went wrong. Do 'git checkout mysql-test/mariadb-test-run.pl' and try again"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In Perl, standard filehandles are case-sensitive and uppercase ( |
||
| exit 1; | ||
| } | ||
| chdir('@CMAKE_SOURCE_DIR@/mysql-test'); | ||
| exit(system($^X, '@CMAKE_SOURCE_DIR@/mysql-test/mariadb-test-run.pl', @ARGV) >> 8); | ||
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
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
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
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,13 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| CREATE TABLE t1 ( | ||
| pk int PRIMARY KEY, | ||
| c varchar(8), | ||
| i int | ||
| ) ENGINE=InnoDB; | ||
| CREATE TABLE t2 (f int) ENGINE=InnoDB; | ||
| CREATE TABLE t3 (x int, | ||
| FOREIGN KEY (x) REFERENCES t1 (pk) | ||
| ) ENGINE=InnoDB; | ||
| UPDATE t1 JOIN t2 ON t1.i = t2.f SET t1.c = 'foo'; | ||
| DROP TABLE t3, t2, t1; |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling
isalnumwith a signedchardirectly can lead to undefined behavior if the character has a negative value (e.g., non-ASCII characters). It is safer to cast the character tounsigned charbefore passing it toisalnum.