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
8c7e551d
Commit
8c7e551d
authored
Nov 09, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove restarts from encrypt_and_grep test
parent
75f0c595
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
mysql-test/suite/encryption/r/encrypt_and_grep.result
mysql-test/suite/encryption/r/encrypt_and_grep.result
+6
-0
mysql-test/suite/encryption/t/encrypt_and_grep.test
mysql-test/suite/encryption/t/encrypt_and_grep.test
+6
-10
No files found.
mysql-test/suite/encryption/r/encrypt_and_grep.result
View file @
8c7e551d
...
...
@@ -19,6 +19,7 @@ mysql/innodb_index_stats
mysql/innodb_table_stats
test/t1
test/t2
FLUSH TABLES t1,t2,t3 FOR EXPORT;
# t1 yes on expecting NOT FOUND
NOT FOUND /foobarsecret/ in t1.ibd
# t2 ... on expecting NOT FOUND
...
...
@@ -27,6 +28,7 @@ NOT FOUND /tempsecret/ in t2.ibd
FOUND 12 /dummysecret/ in t3.ibd
# ibdata1 expecting NOT FOUND
NOT FOUND /foobarsecret/ in ibdata1
UNLOCK TABLES;
# Now turn off encryption and wait for threads to decrypt everything
SET GLOBAL innodb_encrypt_tables = off;
# Wait max 10 min for key encryption threads to decrypt all spaces
...
...
@@ -40,6 +42,7 @@ test/t3
SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_VERSION <> 0;
NAME
test/t1
FLUSH TABLES t1,t2,t3 FOR EXPORT;
# t1 yes on expecting NOT FOUND
NOT FOUND /foobarsecret/ in t1.ibd
# t2 ... default expecting FOUND
...
...
@@ -48,6 +51,7 @@ FOUND 12 /tempsecret/ in t2.ibd
FOUND 12 /dummysecret/ in t3.ibd
# ibdata1 expecting NOT FOUND
NOT FOUND /foobarsecret/ in ibdata1
UNLOCK TABLES;
# Now turn on encryption and wait for threads to encrypt all spaces
SET GLOBAL innodb_encrypt_tables = on;
# Wait max 10 min for key encryption threads to encrypt all spaces
...
...
@@ -61,6 +65,7 @@ mysql/innodb_index_stats
mysql/innodb_table_stats
test/t1
test/t2
FLUSH TABLES t1,t2,t3 FOR EXPORT;
# t1 yes on expecting NOT FOUND
NOT FOUND /foobarsecret/ in t1.ibd
# t2 ... on expecting NOT FOUND
...
...
@@ -69,4 +74,5 @@ NOT FOUND /tempsecret/ in t2.ibd
FOUND 12 /dummysecret/ in t3.ibd
# ibdata1 expecting NOT FOUND
NOT FOUND /foobarsecret/ in ibdata1
UNLOCK TABLES;
drop table t1, t2, t3;
mysql-test/suite/encryption/t/encrypt_and_grep.test
View file @
8c7e551d
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_file_key_management_plugin
.
inc
# embedded does not support restart
--
source
include
/
not_embedded
.
inc
#
# MDEV-8138: strange results from encrypt-and-grep test
#
...
...
@@ -38,7 +35,7 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
--
sorted_result
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
;
--
source
include
/
shutdown_mysqld
.
inc
FLUSH
TABLES
t1
,
t2
,
t3
FOR
EXPORT
;
--
let
SEARCH_PATTERN
=
foobarsecret
--
echo
# t1 yes on expecting NOT FOUND
...
...
@@ -57,7 +54,7 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
--
let
SEARCH_FILE
=
$ib1_IBD
--
source
include
/
search_pattern_in_file
.
inc
--
source
include
/
start_mysqld
.
inc
UNLOCK
TABLES
;
--
echo
# Now turn off encryption and wait for threads to decrypt everything
...
...
@@ -74,7 +71,7 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
--
sorted_result
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
;
--
source
include
/
shutdown_mysqld
.
inc
FLUSH
TABLES
t1
,
t2
,
t3
FOR
EXPORT
;
--
let
SEARCH_PATTERN
=
foobarsecret
--
echo
# t1 yes on expecting NOT FOUND
...
...
@@ -93,8 +90,7 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
--
let
SEARCH_FILE
=
$ib1_IBD
--
source
include
/
search_pattern_in_file
.
inc
--
source
include
/
start_mysqld
.
inc
UNLOCK
TABLES
;
--
echo
# Now turn on encryption and wait for threads to encrypt all spaces
SET
GLOBAL
innodb_encrypt_tables
=
on
;
...
...
@@ -109,7 +105,7 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
--
sorted_result
SELECT
NAME
FROM
INFORMATION_SCHEMA
.
INNODB_TABLESPACES_ENCRYPTION
WHERE
MIN_KEY_VERSION
<>
0
;
--
source
include
/
shutdown_mysqld
.
inc
FLUSH
TABLES
t1
,
t2
,
t3
FOR
EXPORT
;
--
let
SEARCH_PATTERN
=
foobarsecret
--
echo
# t1 yes on expecting NOT FOUND
...
...
@@ -128,6 +124,6 @@ SELECT NAME FROM INFORMATION_SCHEMA.INNODB_TABLESPACES_ENCRYPTION WHERE MIN_KEY_
--
let
SEARCH_FILE
=
$ib1_IBD
--
source
include
/
search_pattern_in_file
.
inc
--
source
include
/
start_mysqld
.
inc
UNLOCK
TABLES
;
drop
table
t1
,
t2
,
t3
;
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