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
1d31bed2
Commit
1d31bed2
authored
Jun 12, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
90fec960
56c60b2f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
1456 deletions
+0
-1456
mysql-test/suite/encryption/r/innodb_lotoftables.result
mysql-test/suite/encryption/r/innodb_lotoftables.result
+0
-1221
mysql-test/suite/encryption/t/innodb_lotoftables.opt
mysql-test/suite/encryption/t/innodb_lotoftables.opt
+0
-3
mysql-test/suite/encryption/t/innodb_lotoftables.test
mysql-test/suite/encryption/t/innodb_lotoftables.test
+0
-231
mysql-test/unstable-tests
mysql-test/unstable-tests
+0
-1
No files found.
mysql-test/suite/encryption/r/innodb_lotoftables.result
deleted
100644 → 0
View file @
90fec960
This diff is collapsed.
Click to expand it.
mysql-test/suite/encryption/t/innodb_lotoftables.opt
deleted
100644 → 0
View file @
90fec960
--innodb-tablespaces-encryption
--innodb-encrypt-tables=off
--innodb-encryption-threads=0
mysql-test/suite/encryption/t/innodb_lotoftables.test
deleted
100644 → 0
View file @
90fec960
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_example_key_management_plugin
.
inc
--
source
include
/
big_test
.
inc
# embedded does not support restart
--
source
include
/
not_embedded
.
inc
--
disable_query_log
let
$innodb_encryption_threads_orig
=
`SELECT @@global.innodb_encryption_threads`
;
--
enable_query_log
# empty the change buffer and the undo logs to avoid extra reads
SET
GLOBAL
innodb_fast_shutdown
=
0
;
--
source
include
/
restart_mysqld
.
inc
SHOW
VARIABLES
LIKE
'innodb_encrypt%'
;
#
# This will create 100 tables where that could be
# encrypted an unencrypt
#
create
database
innodb_encrypted_1
;
use
innodb_encrypted_1
;
show
status
like
'innodb_pages0_read%'
;
set
autocommit
=
0
;
let
$tables
=
100
;
--
disable_query_log
while
(
$tables
)
{
eval
create
table
t_
$tables
(
a
int
not
null
primary
key
,
b
varchar
(
200
))
engine
=
innodb
stats_persistent
=
0
;
commit
;
let
$rows
=
100
;
while
(
$rows
)
{
eval
insert
into
t_
$tables
values
(
$rows
,
substring
(
MD5
(
RAND
()),
-
64
));
dec
$rows
;
}
commit
;
dec
$tables
;
}
--
enable_query_log
set
autocommit
=
1
;
commit
work
;
show
status
like
'innodb_pages0_read%'
;
#
# Verify
#
--
echo
# should be empty
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
NAME
LIKE
'innodb_encrypted%'
;
#
# This will create 100 tables that are encrypted always
#
create
database
innodb_encrypted_2
;
use
innodb_encrypted_2
;
show
status
like
'innodb_pages0_read%'
;
set
autocommit
=
0
;
--
disable_query_log
let
$tables
=
100
;
while
(
$tables
)
{
eval
create
table
t_
$tables
(
a
int
not
null
primary
key
,
b
varchar
(
200
))
engine
=
innodb
stats_persistent
=
0
encrypted
=
yes
;
commit
;
let
$rows
=
100
;
while
(
$rows
)
{
eval
insert
into
t_
$tables
values
(
$rows
,
substring
(
MD5
(
RAND
()),
-
64
));
dec
$rows
;
}
commit
;
dec
$tables
;
}
--
enable_query_log
commit
work
;
set
autocommit
=
1
;
show
status
like
'innodb_pages0_read%'
;
#
# Verify
#
--
echo
# should contain 100 tables
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
--
echo
# should contain 0 tables
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
=
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
#
# This will create 100 tables that are not encrypted
#
create
database
innodb_encrypted_3
;
use
innodb_encrypted_3
;
show
status
like
'innodb_pages0_read%'
;
set
autocommit
=
0
;
--
disable_query_log
let
$tables
=
100
;
while
(
$tables
)
{
eval
create
table
t_
$tables
(
a
int
not
null
primary
key
,
b
varchar
(
200
))
engine
=
innodb
stats_persistent
=
0
encrypted
=
no
;
commit
;
let
$rows
=
100
;
while
(
$rows
)
{
eval
insert
into
t_
$tables
values
(
$rows
,
substring
(
MD5
(
RAND
()),
-
64
));
dec
$rows
;
}
commit
;
dec
$tables
;
}
--
enable_query_log
commit
work
;
set
autocommit
=
1
;
show
status
like
'innodb_pages0_read%'
;
#
# Verify
#
--
echo
# should contain 100 tables
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
--
echo
# should contain 100 tables
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
=
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
use
test
;
show
status
like
'innodb_pages0_read%'
;
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
=
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
SET
GLOBAL
innodb_encrypt_tables
=
on
;
SET
GLOBAL
innodb_encryption_threads
=
4
;
--
let
$wait_timeout
=
600
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
100
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
;
--
source
include
/
wait_condition
.
inc
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
=
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
show
status
like
'innodb_pages0_read%'
;
--
echo
# Success!
--
echo
# Restart mysqld --innodb_encrypt_tables=0 --innodb_encryption_threads=0
--
let
$restart_parameters
=--
innodb_encrypt_tables
=
0
--
innodb_encryption_threads
=
0
--
source
include
/
restart_mysqld
.
inc
--
echo
# Restart Success!
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
use
test
;
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
use
innodb_encrypted_1
;
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
use
innodb_encrypted_2
;
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
use
innodb_encrypted_3
;
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
use
innodb_encrypted_1
;
--
disable_result_log
--
disable_query_log
let
$tables
=
100
;
while
(
$tables
)
{
eval
select
*
from
t_
$tables
;
dec
$tables
;
}
--
enable_query_log
--
enable_result_log
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
use
innodb_encrypted_2
;
--
disable_result_log
--
disable_query_log
let
$tables
=
100
;
while
(
$tables
)
{
eval
select
*
from
t_
$tables
;
dec
$tables
;
}
--
enable_query_log
--
enable_result_log
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
use
innodb_encrypted_3
;
--
disable_result_log
--
disable_query_log
let
$tables
=
100
;
while
(
$tables
)
{
eval
select
*
from
t_
$tables
;
dec
$tables
;
}
--
enable_query_log
--
enable_result_log
SELECT
variable_value
<=
303
FROM
information_schema
.
global_status
WHERE
variable_name
=
'innodb_pages0_read'
;
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
=
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
SET
GLOBAL
innodb_encrypt_tables
=
off
;
SET
GLOBAL
innodb_encryption_threads
=
4
;
--
let
$wait_timeout
=
600
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
100
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
;
--
source
include
/
wait_condition
.
inc
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
=
0
AND
NAME
LIKE
'innodb_encrypted%'
ORDER
BY
NAME
;
#
# Cleanup
#
use
test
;
drop
database
innodb_encrypted_1
;
drop
database
innodb_encrypted_2
;
drop
database
innodb_encrypted_3
;
--
disable_query_log
EVAL
SET
GLOBAL
innodb_encryption_threads
=
$innodb_encryption_threads_orig
;
--
enable_query_log
mysql-test/unstable-tests
View file @
1d31bed2
...
...
@@ -249,7 +249,6 @@ encryption.innodb_first_page : MDEV-10689 - Crash
encryption.innodb-first-page-read : MDEV-14356 - Timeout in wait condition
encryption.innodb-force-corrupt : MDEV-17286 - SSL error; modified in 10.2.24
encryption.innodb-key-rotation-disable : Modified in 10.2.24
encryption.innodb_lotoftables : MDEV-16111 - Wrong result
encryption.innodb-missing-key : Modified in 10.2.24
encryption.innodb_onlinealter_encryption : MDEV-17287 - SIGABRT on server restart
encryption.innodb-page_encryption : MDEV-10641 - mutex problem
...
...
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