Skip to content

Commit e2173e8

Browse files
author
Jan Lindström
committed
MDEV-18182 : Galera test failure on galera.galera_many_tables_nopk
Decrease the number of tables and operations.
1 parent a68c698 commit e2173e8

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

mysql-test/suite/galera/r/galera_many_tables_nopk.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ START TRANSACTION;
66
COMMIT;
77
connection node_2;
88
CREATE TABLE sum_table (f1 INTEGER);
9-
SELECT SUM(f1) = 900 FROM sum_table;
10-
SUM(f1) = 900
9+
SELECT SUM(f1) = 100 FROM sum_table;
10+
SUM(f1) = 100
1111
1
1212
connection node_1;
1313
SET AUTOCOMMIT=OFF;
1414
START TRANSACTION;
1515
connection node_2;
1616
SET AUTOCOMMIT=OFF;
1717
START TRANSACTION;
18-
UPDATE t900 SET f1 = 3;
18+
UPDATE t100 SET f1 = 3;
1919
connection node_1;
2020
COMMIT;
2121
connection node_2;

mysql-test/suite/galera/t/galera_many_tables_nopk.test

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ if (!`SELECT @@open_files_limit >= 1024`){
77
}
88

99
#
10-
# This test forces 900 tables without a PK to participate in a single
11-
# transaction. The reason for 900 is that some linux system has by default
12-
# a limit of 1024 open files / process
10+
# This test forces 100 tables without a PK to participate in a single
11+
# transaction.
1312
#
1413

1514
#
16-
# First, create 900 tables
15+
# First, create 100 tables
1716
#
1817

1918
--connection node_1
2019

21-
--let $count = 900
20+
--let $count = 100
2221
while ($count)
2322
{
2423
--disable_query_log
@@ -28,7 +27,7 @@ while ($count)
2827
--dec $count
2928
}
3029

31-
--let $count = 900
30+
--let $count = 100
3231
while ($count)
3332
{
3433
--disable_query_log
@@ -39,13 +38,13 @@ while ($count)
3938
}
4039

4140
#
42-
# Second, perform 900 updates
41+
# Second, perform 100 updates
4342
#
4443

4544
SET AUTOCOMMIT=OFF;
4645
START TRANSACTION;
4746

48-
--let $count = 900
47+
--let $count = 100
4948
while ($count)
5049
{
5150
--disable_query_log
@@ -63,7 +62,7 @@ COMMIT;
6362
--connection node_2
6463
CREATE TABLE sum_table (f1 INTEGER);
6564

66-
--let $count = 900
65+
--let $count = 100
6766
while ($count)
6867
{
6968
--disable_query_log
@@ -73,7 +72,7 @@ while ($count)
7372
--dec $count
7473
}
7574

76-
SELECT SUM(f1) = 900 FROM sum_table;
75+
SELECT SUM(f1) = 100 FROM sum_table;
7776

7877
#
7978
# Fourth, create a deadlock
@@ -83,7 +82,7 @@ SELECT SUM(f1) = 900 FROM sum_table;
8382
SET AUTOCOMMIT=OFF;
8483
START TRANSACTION;
8584

86-
--let $count = 900
85+
--let $count = 100
8786
while ($count)
8887
{
8988
--disable_query_log
@@ -96,7 +95,7 @@ while ($count)
9695
--connection node_2
9796
SET AUTOCOMMIT=OFF;
9897
START TRANSACTION;
99-
UPDATE t900 SET f1 = 3;
98+
UPDATE t100 SET f1 = 3;
10099

101100
--connection node_1
102101
COMMIT;

0 commit comments

Comments
 (0)