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
cf1ca57e
Commit
cf1ca57e
authored
Mar 06, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: renames, no need to create a new .inc file
if it's the whole content of a test anyway.
parent
44b85406
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
148 deletions
+80
-148
mysql-test/suite/binlog/include/binlog_write_error.inc
mysql-test/suite/binlog/include/binlog_write_error.inc
+0
-108
mysql-test/suite/binlog/r/binlog_write_error.result
mysql-test/suite/binlog/r/binlog_write_error.result
+0
-19
mysql-test/suite/binlog/t/binlog_write_error.test
mysql-test/suite/binlog/t/binlog_write_error.test
+79
-1
mysql-test/suite/binlog_encryption/binlog_write_error.result
mysql-test/suite/binlog_encryption/binlog_write_error.result
+0
-19
mysql-test/suite/binlog_encryption/binlog_write_error.test
mysql-test/suite/binlog_encryption/binlog_write_error.test
+1
-1
No files found.
mysql-test/suite/binlog/include/binlog_write_error.inc
deleted
100644 → 0
View file @
44b85406
#
# This include file is used by more than one test suite
# (currently binlog and binlog_encryption).
# Please check all dependent tests after modifying it
#
#
# === Name ===
#
# binlog_write_error.test
#
# === Description ===
#
# This test case check if the error of writing binlog file is properly
# reported and handled when executing statements.
#
# === Related Bugs ===
#
# BUG#37148
#
source
include
/
have_log_bin
.
inc
;
source
include
/
have_debug
.
inc
;
source
include
/
have_binlog_format_mixed_or_statement
.
inc
;
--
echo
#
--
echo
# Initialization
--
echo
#
disable_warnings
;
DROP
TABLE
IF
EXISTS
t1
,
t2
;
DROP
FUNCTION
IF
EXISTS
f1
;
DROP
FUNCTION
IF
EXISTS
f2
;
DROP
PROCEDURE
IF
EXISTS
p1
;
DROP
PROCEDURE
IF
EXISTS
p2
;
DROP
TRIGGER
IF
EXISTS
tr1
;
DROP
TRIGGER
IF
EXISTS
tr2
;
DROP
VIEW
IF
EXISTS
v1
,
v2
;
enable_warnings
;
--
echo
#
--
echo
# Test injecting binlog write error when executing queries
--
echo
#
let
$query
=
CREATE
TABLE
t1
(
a
INT
);
source
include
/
binlog_inject_error
.
inc
;
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
);
let
$query
=
INSERT
INTO
t1
VALUES
(
4
),(
5
),(
6
);
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
UPDATE
t1
set
a
=
a
+
1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DELETE
FROM
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
TRIGGER
tr1
AFTER
INSERT
ON
t1
FOR
EACH
ROW
INSERT
INTO
t1
VALUES
(
new
.
a
+
100
);
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
TRIGGER
tr1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
ALTER
TABLE
t1
ADD
(
b
INT
);
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
VIEW
v1
AS
SELECT
a
FROM
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
VIEW
v1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
PROCEDURE
p1
(
OUT
rows_cnt
INT
)
SELECT
count
(
*
)
INTO
rows_cnt
FROM
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
PROCEDURE
p1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
TABLE
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
FUNCTION
f1
()
RETURNS
INT
return
1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
FUNCTION
f1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
USER
user1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
REVOKE
ALL
PRIVILEGES
,
GRANT
OPTION
FROM
user1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
USER
user1
;
source
include
/
binlog_inject_error
.
inc
;
--
echo
#
--
echo
# Cleanup
--
echo
#
disable_warnings
;
DROP
TABLE
IF
EXISTS
t1
,
t2
;
DROP
FUNCTION
IF
EXISTS
f1
;
DROP
PROCEDURE
IF
EXISTS
p1
;
DROP
TRIGGER
IF
EXISTS
tr1
;
DROP
VIEW
IF
EXISTS
v1
,
v2
;
enable_warnings
;
mysql-test/suite/binlog/r/binlog_write_error.result
View file @
cf1ca57e
#
# Initialization
#
DROP TABLE IF EXISTS t1, t2;
DROP FUNCTION IF EXISTS f1;
DROP FUNCTION IF EXISTS f2;
DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p2;
DROP TRIGGER IF EXISTS tr1;
DROP TRIGGER IF EXISTS tr2;
DROP VIEW IF EXISTS v1, v2;
#
# Test injecting binlog write error when executing queries
#
set @saved_dbug = @@global.debug_dbug;
...
...
@@ -115,11 +104,3 @@ DROP USER user1;
DROP USER user1;
ERROR HY000: Error writing file 'master-bin' ((errno: #)
set @@global.debug_dbug = @saved_dbug;
#
# Cleanup
#
DROP TABLE IF EXISTS t1, t2;
DROP FUNCTION IF EXISTS f1;
DROP PROCEDURE IF EXISTS p1;
DROP TRIGGER IF EXISTS tr1;
DROP VIEW IF EXISTS v1, v2;
mysql-test/suite/binlog/t/binlog_write_error.test
View file @
cf1ca57e
--
source
include
/
binlog_write_error
.
inc
#
# This file is included by binlog_encryption.binlog_write_error
# Please check all dependent tests after modifying it
#
#
# === Name ===
#
# binlog_write_error.test
#
# === Description ===
#
# This test case check if the error of writing binlog file is properly
# reported and handled when executing statements.
#
# === Related Bugs ===
#
# BUG#37148
#
source
include
/
have_debug
.
inc
;
source
include
/
have_binlog_format_mixed_or_statement
.
inc
;
--
echo
#
--
echo
# Test injecting binlog write error when executing queries
--
echo
#
let
$query
=
CREATE
TABLE
t1
(
a
INT
);
source
include
/
binlog_inject_error
.
inc
;
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
);
let
$query
=
INSERT
INTO
t1
VALUES
(
4
),(
5
),(
6
);
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
UPDATE
t1
set
a
=
a
+
1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DELETE
FROM
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
TRIGGER
tr1
AFTER
INSERT
ON
t1
FOR
EACH
ROW
INSERT
INTO
t1
VALUES
(
new
.
a
+
100
);
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
TRIGGER
tr1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
ALTER
TABLE
t1
ADD
(
b
INT
);
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
VIEW
v1
AS
SELECT
a
FROM
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
VIEW
v1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
PROCEDURE
p1
(
OUT
rows_cnt
INT
)
SELECT
count
(
*
)
INTO
rows_cnt
FROM
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
PROCEDURE
p1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
TABLE
t1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
FUNCTION
f1
()
RETURNS
INT
return
1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
FUNCTION
f1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
CREATE
USER
user1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
REVOKE
ALL
PRIVILEGES
,
GRANT
OPTION
FROM
user1
;
source
include
/
binlog_inject_error
.
inc
;
let
$query
=
DROP
USER
user1
;
source
include
/
binlog_inject_error
.
inc
;
mysql-test/suite/binlog_encryption/binlog_write_error.result
View file @
cf1ca57e
#
# Initialization
#
DROP TABLE IF EXISTS t1, t2;
DROP FUNCTION IF EXISTS f1;
DROP FUNCTION IF EXISTS f2;
DROP PROCEDURE IF EXISTS p1;
DROP PROCEDURE IF EXISTS p2;
DROP TRIGGER IF EXISTS tr1;
DROP TRIGGER IF EXISTS tr2;
DROP VIEW IF EXISTS v1, v2;
#
# Test injecting binlog write error when executing queries
#
set @saved_dbug = @@global.debug_dbug;
...
...
@@ -115,11 +104,3 @@ DROP USER user1;
DROP USER user1;
ERROR HY000: Error writing file 'master-bin' ((errno: #)
set @@global.debug_dbug = @saved_dbug;
#
# Cleanup
#
DROP TABLE IF EXISTS t1, t2;
DROP FUNCTION IF EXISTS f1;
DROP PROCEDURE IF EXISTS p1;
DROP TRIGGER IF EXISTS tr1;
DROP VIEW IF EXISTS v1, v2;
mysql-test/suite/binlog_encryption/binlog_write_error.test
View file @
cf1ca57e
--
source
suite
/
binlog
/
include
/
binlog_write_error
.
inc
--
source
suite
/
binlog
/
t
/
binlog_write_error
.
test
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