mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MDEV-18182 : Galera test failure on galera.galera_many_tables_nopk
Decrease the number of tables and operations.
This commit is contained in:
parent
a68c698b46
commit
e2173e8067
2 changed files with 14 additions and 15 deletions
|
@ -6,8 +6,8 @@ START TRANSACTION;
|
|||
COMMIT;
|
||||
connection node_2;
|
||||
CREATE TABLE sum_table (f1 INTEGER);
|
||||
SELECT SUM(f1) = 900 FROM sum_table;
|
||||
SUM(f1) = 900
|
||||
SELECT SUM(f1) = 100 FROM sum_table;
|
||||
SUM(f1) = 100
|
||||
1
|
||||
connection node_1;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
|
@ -15,7 +15,7 @@ START TRANSACTION;
|
|||
connection node_2;
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
UPDATE t900 SET f1 = 3;
|
||||
UPDATE t100 SET f1 = 3;
|
||||
connection node_1;
|
||||
COMMIT;
|
||||
connection node_2;
|
||||
|
|
|
@ -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 900 tables
|
||||
# First, create 100 tables
|
||||
#
|
||||
|
||||
--connection node_1
|
||||
|
||||
--let $count = 900
|
||||
--let $count = 100
|
||||
while ($count)
|
||||
{
|
||||
--disable_query_log
|
||||
|
@ -28,7 +27,7 @@ while ($count)
|
|||
--dec $count
|
||||
}
|
||||
|
||||
--let $count = 900
|
||||
--let $count = 100
|
||||
while ($count)
|
||||
{
|
||||
--disable_query_log
|
||||
|
@ -39,13 +38,13 @@ while ($count)
|
|||
}
|
||||
|
||||
#
|
||||
# Second, perform 900 updates
|
||||
# Second, perform 100 updates
|
||||
#
|
||||
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
|
||||
--let $count = 900
|
||||
--let $count = 100
|
||||
while ($count)
|
||||
{
|
||||
--disable_query_log
|
||||
|
@ -63,7 +62,7 @@ COMMIT;
|
|||
--connection node_2
|
||||
CREATE TABLE sum_table (f1 INTEGER);
|
||||
|
||||
--let $count = 900
|
||||
--let $count = 100
|
||||
while ($count)
|
||||
{
|
||||
--disable_query_log
|
||||
|
@ -73,7 +72,7 @@ while ($count)
|
|||
--dec $count
|
||||
}
|
||||
|
||||
SELECT SUM(f1) = 900 FROM sum_table;
|
||||
SELECT SUM(f1) = 100 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 = 900
|
||||
--let $count = 100
|
||||
while ($count)
|
||||
{
|
||||
--disable_query_log
|
||||
|
@ -96,7 +95,7 @@ while ($count)
|
|||
--connection node_2
|
||||
SET AUTOCOMMIT=OFF;
|
||||
START TRANSACTION;
|
||||
UPDATE t900 SET f1 = 3;
|
||||
UPDATE t100 SET f1 = 3;
|
||||
|
||||
--connection node_1
|
||||
COMMIT;
|
||||
|
|
Loading…
Reference in a new issue