Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
39865322
Commit
39865322
authored
Mar 26, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove a google specific script
parent
7a387c01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
119 deletions
+0
-119
tests/test_innodb_log_encryption.sh
tests/test_innodb_log_encryption.sh
+0
-119
No files found.
tests/test_innodb_log_encryption.sh
deleted
100644 → 0
View file @
7a387c01
#!/bin/bash
##################################################################
# - restart server with default (no encryption, no key ver and key).
# - verify various inputs will not corrupt.
# - verify transition from without crypto to with crypto and vice versa work.
# - verify transition from various key versions, including dynamically change it
# after startup, work.
##################################################################
TEST_INSTANCE_NAME
=
"test"
TEST_INSTANCE_DIR
=
"/tmp/instance"
TEST_INSTANCE_PATH
=
${
TEST_INSTANCE_DIR
}
/
${
TEST_INSTANCE_NAME
}
TEST_INSTANCE_SOCK_FILENAME
=
mysql.sock
TEST_INSTANCE_SOCK
=
${
TEST_INSTANCE_PATH
}
/
${
TEST_INSTANCE_SOCK_FILENAME
}
TEST_INSTANCE_ERR_FILE
=
${
TEST_INSTANCE_PATH
}
/mysql.err
TEST_INSTANCE_DATA_DIR
=
${
TEST_INSTANCE_PATH
}
/datadir
google/instance restart
${
TEST_INSTANCE_NAME
}
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys"
google/instance restart
${
TEST_INSTANCE_NAME
}
MYSQLD_EXTRA_ARGS
=
"--innodb_encrypt_log=1"
google/instance restart
${
TEST_INSTANCE_NAME
}
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --innodb_encrypt_log=1"
google/instance restart
${
TEST_INSTANCE_NAME
}
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --debug_crypto_key_version=11"
google/instance restart
${
TEST_INSTANCE_NAME
}
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --debug_crypto_key_version=12 --innodb_encrypt_log=1"
google/instance restart
${
TEST_INSTANCE_NAME
}
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --debug_crypto_key_version=123 --innodb_encrypt_log=1"
google/instance restart
${
TEST_INSTANCE_NAME
}
# -- manually create a database sbtest
# mysql> create database sbtest;
sysbench
--test
=
oltp
--oltp-table-size
=
1000
--mysql-user
=
root
--mysql-socket
=
${
TEST_INSTANCE_SOCK
}
prepare &
sysbench
--num-threads
=
10
--test
=
oltp
--oltp-table-size
=
1000
--mysql-user
=
root
--mysql-socket
=
${
TEST_INSTANCE_SOCK
}
run &
# -- change key version through mysql client
# mysql -S ${TEST_INSTANCE_SOCK} k -u root
# mysql> set global variable debug_crypto_key_version=7;
# ps aux | grep mysqld
# -- simulate a fast shutdown
# kill <myslqd's pid>
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys"
google/instance restart
${
TEST_INSTANCE_NAME
}
google/instance restart
${
TEST_INSTANCE_NAME
}
grep
-n
corrupt
${
TEST_INSTANCE_ERR_FILE
}
|
tail
-100
##################################################################
# - clean shutdown.
# - remove InnoDB redo log files.
# - start the server with encryption on.
# - verify no corruption.
##################################################################
MYSQLD_EXTRA_ARGS
=
"--innodb_fast_shutdown=0"
google/instance restart
${
TEST_INSTANCE_NAME
}
google/instance stop
${
TEST_INSTANCE_NAME
}
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0.1
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1.1
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --debug_crypto_key_version=777 --innodb_encrypt_log=1 --innodb_fast_shutdown=0"
google/instance start
${
TEST_INSTANCE_NAME
}
grep
-n
corrupt
${
TEST_INSTANCE_ERR_FILE
}
|
tail
-100
##################################################################
# - clean shutdown.
# - remove InnoDB redo log files.
# - start the server with encryption off.
# - verify no corruption.
##################################################################
google/instance stop
${
TEST_INSTANCE_NAME
}
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0.2
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1.2
google/instance start
${
TEST_INSTANCE_NAME
}
grep
-n
corrupt
${
TEST_INSTANCE_ERR_FILE
}
|
tail
-100
##################################################################
# - verify fresh start of mysqld instance with encryption off.
##################################################################
google/instance stop
${
TEST_INSTANCE_NAME
}
mv
${
TEST_INSTANCE_DIR
}
${
TEST_INSTANCE_DIR
}
.200
google/instance start
${
TEST_INSTANCE_NAME
}
grep
-n
corrupt
${
TEST_INSTANCE_ERR_FILE
}
|
tail
-100
##################################################################
# - verify fresh start of mysqld instance with encryption on.
##################################################################
google/instance stop
${
TEST_INSTANCE_NAME
}
mv
${
TEST_INSTANCE_DIR
}
${
TEST_INSTANCE_DIR
}
.300
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --debug_crypto_key_version=888 --innodb_encrypt_log=1"
google/instance start
${
TEST_INSTANCE_NAME
}
grep
-n
corrupt
${
TEST_INSTANCE_ERR_FILE
}
|
tail
-100
##################################################################
# - fast shutdown.
# - remove InnoDB redo log files.
# - start the server with encryption on.
# - verify no corruption.
##################################################################
google/instance stop
${
TEST_INSTANCE_NAME
}
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0.3
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1.3
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --debug_crypto_key_version=999 --innodb_encrypt_log=1"
google/instance start
${
TEST_INSTANCE_NAME
}
grep
-n
corrupt
${
TEST_INSTANCE_ERR_FILE
}
|
tail
-100
##################################################################
# - fast shutdown while running workload.
# - remove InnoDB redo log files.
# - start the server with encryption on.
# - verify no corruption.
##################################################################
# -- manually create a database sbtest
# mysql> create database sbtest;
sysbench
--test
=
oltp
--oltp-table-size
=
1000
--mysql-user
=
root
--mysql-socket
=
${
TEST_INSTANCE_SOCK
}
prepare &
sysbench
--num-threads
=
10
--test
=
oltp
--oltp-table-size
=
1000
--mysql-user
=
root
--mysql-socket
=
${
TEST_INSTANCE_SOCK
}
run &
google/instance stop
${
TEST_INSTANCE_NAME
}
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile0.4
mv
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1
${
TEST_INSTANCE_DATA_DIR
}
/ib_logfile1.4
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys --debug_crypto_key_version=333 --innodb_encrypt_log=1"
google/instance start
${
TEST_INSTANCE_NAME
}
grep
-n
corrupt
${
TEST_INSTANCE_ERR_FILE
}
|
tail
-100
##################################################################
# - clean up
##################################################################
google/instance stop
${
TEST_INSTANCE_NAME
}
MYSQLD_EXTRA_ARGS
=
"--debug_use_static_keys"
google/instance start
${
TEST_INSTANCE_NAME
}
google/instance stop
${
TEST_INSTANCE_NAME
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment