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
e2173e80
Commit
e2173e80
authored
May 16, 2022
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-18182 : Galera test failure on galera.galera_many_tables_nopk
Decrease the number of tables and operations.
parent
a68c698b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
mysql-test/suite/galera/r/galera_many_tables_nopk.result
mysql-test/suite/galera/r/galera_many_tables_nopk.result
+3
-3
mysql-test/suite/galera/t/galera_many_tables_nopk.test
mysql-test/suite/galera/t/galera_many_tables_nopk.test
+11
-12
No files found.
mysql-test/suite/galera/r/galera_many_tables_nopk.result
View file @
e2173e80
...
...
@@ -6,8 +6,8 @@ START TRANSACTION;
COMMIT;
connection node_2;
CREATE TABLE sum_table (f1 INTEGER);
SELECT SUM(f1) =
9
00 FROM sum_table;
SUM(f1) =
9
00
SELECT SUM(f1) =
1
00 FROM sum_table;
SUM(f1) =
1
00
1
connection node_1;
SET AUTOCOMMIT=OFF;
...
...
@@ -15,7 +15,7 @@ START TRANSACTION;
connection node_2;
SET AUTOCOMMIT=OFF;
START TRANSACTION;
UPDATE t
9
00 SET f1 = 3;
UPDATE t
1
00 SET f1 = 3;
connection node_1;
COMMIT;
connection node_2;
...
...
mysql-test/suite/galera/t/galera_many_tables_nopk.test
View file @
e2173e80
...
...
@@ -7,18 +7,17 @@ if (!`SELECT @@open_files_limit >= 1024`){
}
#
# This test forces 900 tables without a PK to participate in a single
# transaction. The reason for 900 is that some linux system has by default
# a limit of 1024 open files / process
# This test forces 100 tables without a PK to participate in a single
# transaction.
#
#
# First, create
9
00 tables
# First, create
1
00 tables
#
--
connection
node_1
--
let
$count
=
9
00
--
let
$count
=
1
00
while
(
$count
)
{
--
disable_query_log
...
...
@@ -28,7 +27,7 @@ while ($count)
--
dec
$count
}
--
let
$count
=
9
00
--
let
$count
=
1
00
while
(
$count
)
{
--
disable_query_log
...
...
@@ -39,13 +38,13 @@ while ($count)
}
#
# Second, perform
9
00 updates
# Second, perform
1
00 updates
#
SET
AUTOCOMMIT
=
OFF
;
START
TRANSACTION
;
--
let
$count
=
9
00
--
let
$count
=
1
00
while
(
$count
)
{
--
disable_query_log
...
...
@@ -63,7 +62,7 @@ COMMIT;
--
connection
node_2
CREATE
TABLE
sum_table
(
f1
INTEGER
);
--
let
$count
=
9
00
--
let
$count
=
1
00
while
(
$count
)
{
--
disable_query_log
...
...
@@ -73,7 +72,7 @@ while ($count)
--
dec
$count
}
SELECT
SUM
(
f1
)
=
9
00
FROM
sum_table
;
SELECT
SUM
(
f1
)
=
1
00
FROM
sum_table
;
#
# Fourth, create a deadlock
...
...
@@ -83,7 +82,7 @@ SELECT SUM(f1) = 900 FROM sum_table;
SET
AUTOCOMMIT
=
OFF
;
START
TRANSACTION
;
--
let
$count
=
9
00
--
let
$count
=
1
00
while
(
$count
)
{
--
disable_query_log
...
...
@@ -96,7 +95,7 @@ while ($count)
--
connection
node_2
SET
AUTOCOMMIT
=
OFF
;
START
TRANSACTION
;
UPDATE
t
9
00
SET
f1
=
3
;
UPDATE
t
1
00
SET
f1
=
3
;
--
connection
node_1
COMMIT
;
...
...
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