Skip to content

Commit

Permalink
PXB-3368 Fix jenkins test failures
Browse files Browse the repository at this point in the history
Fix keyring test failures by replacing keyring_file to keyring_component
  • Loading branch information
Aibek Bukabayev committed Sep 19, 2024
1 parent 7d82843 commit e525a8f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions storage/innobase/xtrabackup/src/backup_mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1682,8 +1682,8 @@ static void log_status_replication_parse(const char *s,
cs.relay_log_file = ch["relay_log_file"].GetString();
cs.relay_log_position = ch["relay_log_position"].GetUint64();
if (server_flavor == FLAVOR_PERCONA_SERVER) {
cs.relay_master_log_file = ch["relay_source_log_file"].GetString();
cs.exec_master_log_position = ch["exec_source_log_position"].GetUint64();
cs.relay_master_log_file = ch["relay_master_log_file"].GetString();
cs.exec_master_log_position = ch["exec_master_log_position"].GetUint64();
}
log_status.channels.push_back(cs);
}
Expand Down
5 changes: 3 additions & 2 deletions storage/innobase/xtrabackup/test/suites/keyring/pxb-1793.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ innodb_temp_tablespace_encrypt=ON
encrypt-tmp-files
"

KEYRING_TYPE="component"
. inc/keyring_common.sh
. inc/keyring_file.sh

start_server
configure_server_with_component

# backup fails if bug is present
xtrabackup --backup --target-dir=$topdir/backup
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ innodb-sys-tablespace-encrypt
loose-innodb-default-encryption=on
"

KEYRING_TYPE="component"
. inc/keyring_common.sh
. inc/keyring_file.sh

start_server
configure_server_with_component

mysql -e "CREATE TABLE t (a INT PRIMARY KEY, b TEXT)" test
mysql -e "INSERT INTO t (a, b) VALUES (1, 'a')" test
Expand All @@ -26,7 +27,11 @@ stop_server

rm -rf $mysql_datadir

xtrabackup --copy-back --transition-key=1234 --generate-new-master-key --target-dir=$topdir/backup
xtrabackup --copy-back --transition-key=1234 --generate-new-master-key --target-dir=$topdir/backup \
--xtrabackup-plugin-dir=${plugin_dir} ${keyring_args}

cp ${instance_local_manifest} $mysql_datadir
cp ${keyring_component_cnf} $mysql_datadir

start_server

Expand All @@ -43,7 +48,10 @@ stop_server

rm -rf $mysql_datadir

xtrabackup --copy-back --target-dir=$topdir/backup
xtrabackup --copy-back --target-dir=$topdir/backup --xtrabackup-plugin-dir=${plugin_dir} ${keyring_args}

cp ${instance_local_manifest} $mysql_datadir
cp ${keyring_component_cnf} $mysql_datadir

start_server

Expand Down

0 comments on commit e525a8f

Please sign in to comment.