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
ac064c2b
Commit
ac064c2b
authored
Sep 11, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an occasional timeout in innodb.alter_partitioned
parent
d09426f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
mysql-test/suite/innodb/r/alter_partitioned.result
mysql-test/suite/innodb/r/alter_partitioned.result
+4
-0
mysql-test/suite/innodb/t/alter_partitioned.test
mysql-test/suite/innodb/t/alter_partitioned.test
+4
-0
No files found.
mysql-test/suite/innodb/r/alter_partitioned.result
View file @
ac064c2b
...
...
@@ -11,6 +11,8 @@ SAVEPOINT sp;
INSERT INTO t1 (pk) VALUES (1);
ROLLBACK TO SAVEPOINT sp;
connection default;
SET @save_timeout=@@lock_wait_timeout;
SET @save_innodb_timeout=@@innodb_lock_wait_timeout;
SET lock_wait_timeout=0;
Warnings:
Warning 1292 Truncated incorrect lock_wait_timeout value: '0'
...
...
@@ -19,6 +21,8 @@ Warnings:
Warning 1292 Truncated incorrect innodb_lock_wait_timeout value: '0'
ALTER TABLE t1 PARTITION BY HASH(pk);
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SET lock_wait_timeout=@save_timeout;
SET innodb_lock_wait_timeout=@save_innodb_timeout;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
...
...
mysql-test/suite/innodb/t/alter_partitioned.test
View file @
ac064c2b
...
...
@@ -18,10 +18,14 @@ INSERT INTO t1 (pk) VALUES (1);
ROLLBACK
TO
SAVEPOINT
sp
;
--
connection
default
SET
@
save_timeout
=@@
lock_wait_timeout
;
SET
@
save_innodb_timeout
=@@
innodb_lock_wait_timeout
;
SET
lock_wait_timeout
=
0
;
SET
innodb_lock_wait_timeout
=
0
;
--
error
ER_LOCK_WAIT_TIMEOUT
ALTER
TABLE
t1
PARTITION
BY
HASH
(
pk
);
SET
lock_wait_timeout
=@
save_timeout
;
SET
innodb_lock_wait_timeout
=@
save_innodb_timeout
;
SHOW
CREATE
TABLE
t1
;
--
connection
con1
...
...
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