Skip to content

Commit 0029003

Browse files
author
magnus.blaudd@oracle.com
committed
Merge trunk-cluster -> trunk
- cluster as of ndb-7.3.6
2 parents f04434b + d4df942 commit 0029003

File tree

311 files changed

+14625
-5493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+14625
-5493
lines changed

mysql-test/include/default_ndbd.cnf

+22-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
MaxNoOfSavedMessages= 1000
44
MaxNoOfConcurrentTransactions= 2048
55
MaxNoOfConcurrentOperations= 10000
6+
MaxNoOfConcurrentScans= 64
7+
BatchSizePerLocalScan= 64
68
DataMemory= 20M
7-
IndexMemory= 5M
9+
IndexMemory= 8M
810
Diskless= 0
911
TimeBetweenWatchDogCheck= 30000
1012
MaxNoOfOrderedIndexes= 128
@@ -15,10 +17,15 @@ NoOfFragmentLogFiles= 4
1517
FragmentLogFileSize= 12M
1618
DiskPageBufferMemory= 4M
1719
SharedGlobalMemory= 20M
20+
LongMessageBuffer= 4M
21+
RedoBuffer= 4M
22+
BackupDataBufferSize= 2M
23+
BackupLogBufferSize= 2M
24+
BackupMemory= 4M
1825
TwoPassInitialNodeRestartCopy=1
1926
TransactionDeadlockDetectionTimeout=3000
2027

21-
# O_DIRECT has issues on 2.4 whach have not been handled, Bug #29612
28+
# O_DIRECT has issues on 2.4 which have not been handled, Bug #29612
2229
#ODirect= 1
2330
CompressedLCP= 1
2431
CompressedBackup= 1
@@ -32,3 +39,16 @@ HeartbeatIntervalDbApi= 30000
3239

3340
#TransactionDeadlockDetectionTimeout= 7500
3441
DiskIOThreadPool=1
42+
43+
#######
44+
# Configure a typical MT configuration in order to test
45+
# several instances of the MT'ed components.
46+
#
47+
# (Option is ignored for non-MT'ed NDB)
48+
#
49+
ThreadConfig=main={count=1},tc={count=3},ldm={count=4},io={count=1},rep={count=1},recv={count=2},send={count=2}
50+
51+
52+
[ENV]
53+
# Use the multithreaded scheduler whenever available
54+
MTR_NDBMTD= 1

mysql-test/mysql-test-run.pl

+14-8
Original file line numberDiff line numberDiff line change
@@ -2435,18 +2435,24 @@ sub environment_setup {
24352435
["storage/ndb/tools", "bin"],
24362436
"ndb_show_tables");
24372437

2438-
$ENV{'NDB_EXAMPLES_DIR'}=
2439-
my_find_dir($basedir,
2440-
["storage/ndb/ndbapi-examples", "bin"]);
2441-
2442-
$ENV{'NDB_EXAMPLES_BINARY'}=
2438+
2439+
my $ndbapi_examples_binary =
24432440
my_find_bin($bindir,
2444-
["storage/ndb/ndbapi-examples/ndbapi_simple", "bin"],
2445-
"ndbapi_simple", NOT_REQUIRED);
2441+
["storage/ndb/ndbapi-examples", "bin"],
2442+
"ndb_ndbapi_simple", NOT_REQUIRED);
2443+
2444+
if($ndbapi_examples_binary)
2445+
{
2446+
$ENV{'NDB_EXAMPLES_BINARY'} = $ndbapi_examples_binary;
2447+
$ENV{'NDB_EXAMPLES_DIR'} = dirname($ndbapi_examples_binary);
2448+
mtr_debug("NDB_EXAMPLES_DIR: $ENV{'NDB_EXAMPLES_DIR'}");
2449+
}
2450+
else
2451+
{
2452+
}
24462453

24472454
my $path_ndb_testrun_log= "$opt_vardir/tmp/ndb_testrun.log";
24482455
$ENV{'NDB_TOOLS_OUTPUT'}= $path_ndb_testrun_log;
2449-
$ENV{'NDB_EXAMPLES_OUTPUT'}= $path_ndb_testrun_log;
24502456
}
24512457

24522458
# ----------------------------------------------------

mysql-test/suite/ndb/ndb_config_config.ini

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ LateAlloc= 0
3838
HostName= localhost
3939
LateAlloc= 1
4040

41+
ServerPort=12345
42+
TcpBind_INADDR_ANY=1
43+
4144
[ndb_mgmd]
4245
HostName= localhost
4346
DataDir= /data/msvensson/mysql/mysql-5.1-new-maint/mysql-test/var/ndbcluster-10095 #

mysql-test/suite/ndb/r/ndb_alter_table_dml.result

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ from parent join child
2222
on (parent.b = child.a)
2323
where parent.b > 5;
2424
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
25-
1 SIMPLE parent p0,p1 range b b 5 NULL 819 100.00 Using where with pushed condition ((`test`.`parent`.`b` > 5) and (`test`.`parent`.`b` is not null)); Using MRR
26-
1 SIMPLE child p0,p1 eq_ref PRIMARY PRIMARY 4 test.parent.b 1 100.00 NULL
25+
1 SIMPLE parent p0,p1,p2,p3,p4,p5,p6,p7 range b b 5 NULL 819 100.00 Using where with pushed condition ((`test`.`parent`.`b` > 5) and (`test`.`parent`.`b` is not null)); Using MRR
26+
1 SIMPLE child p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 4 test.parent.b 1 100.00 NULL
2727
Warnings:
2828
Note 1003 /* select#1 */ select count(0) AS `count(*)` from `test`.`parent` join `test`.`child` where ((`test`.`child`.`a` = `test`.`parent`.`b`) and (`test`.`parent`.`b` > 5))
2929
Starting engines...

mysql-test/suite/ndb/r/ndb_basic.result

+7-3
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ Ndb_execute_count #
8989
Ndb_index_stat_cache_clean #
9090
Ndb_index_stat_cache_query #
9191
Ndb_index_stat_status #
92+
Ndb_last_commit_epoch_server #
93+
Ndb_last_commit_epoch_session #
9294
Ndb_number_of_data_nodes #
9395
Ndb_number_of_ready_data_nodes #
9496
Ndb_pruned_scan_count #
@@ -98,6 +100,7 @@ Ndb_pushed_queries_executed #
98100
Ndb_pushed_reads #
99101
Ndb_scan_count #
100102
Ndb_schema_locks_count #
103+
Ndb_slave_last_conflict_epoch #
101104
Ndb_slave_max_replicated_epoch #
102105
Ndb_sorted_scan_count #
103106
SHOW GLOBAL VARIABLES WHERE Variable_name LIKE 'ndb\_%' and
@@ -135,6 +138,7 @@ ndb_recv_thread_cpu_mask #
135138
ndb_report_thresh_binlog_epoch_slip #
136139
ndb_report_thresh_binlog_mem_usage #
137140
ndb_show_foreign_key_mock_tables #
141+
ndb_slave_conflict_role #
138142
ndb_table_no_logging #
139143
ndb_table_temporary #
140144
ndb_use_copying_alter_table #
@@ -610,7 +614,7 @@ t1
610614
insert into t1 values (1,1),(2,1),(3,1),(4,1),(5,2),(6,1),(7,1);
611615
explain select * from t1 where a12345678901234567890123456789a1234567890=2;
612616
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
613-
1 SIMPLE t1 p0,p1 ref a12345678901234567890123456789a1234567890 a12345678901234567890123456789a1234567890 5 const # # NULL
617+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ref a12345678901234567890123456789a1234567890 a12345678901234567890123456789a1234567890 5 const # # NULL
614618
Warnings:
615619
Note 1003 /* select#1 */ select `test`.`t1`.`a1234567890123456789012345678901234567890` AS `a1234567890123456789012345678901234567890`,`test`.`t1`.`a12345678901234567890123456789a1234567890` AS `a12345678901234567890123456789a1234567890` from `test`.`t1` where (`test`.`t1`.`a12345678901234567890123456789a1234567890` = 2)
616620
select * from t1 where a12345678901234567890123456789a1234567890=2;
@@ -961,8 +965,8 @@ KEY `obj_id` (`obj_id`)
961965
# here we used to segv
962966
explain SELECT t1.id FROM t1 INNER JOIN t2 ON t1.id = t2.id WHERE t2.obj_id=1;
963967
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
964-
1 SIMPLE t2 p0,p1 ref id,obj_id obj_id 5 const # # Parent of 2 pushed join@1
965-
1 SIMPLE t1 p0,p1 eq_ref PRIMARY PRIMARY 4 test.t2.id # # Child of 't2' in pushed join@1
968+
1 SIMPLE t2 p0,p1,p2,p3,p4,p5,p6,p7 ref id,obj_id obj_id 5 const # # Parent of 2 pushed join@1
969+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 4 test.t2.id # # Child of 't2' in pushed join@1
966970
Warnings:
967971
Note 1003 /* select#1 */ select `test`.`t1`.`id` AS `id` from `test`.`t1` join `test`.`t2` where ((`test`.`t1`.`id` = `test`.`t2`.`id`) and (`test`.`t2`.`obj_id` = 1))
968972
drop table t1, t2;

mysql-test/suite/ndb/r/ndb_blob.result

+8-8
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ insert into t1 values(2,@b2,222,@d2);
4040
commit;
4141
explain select * from t1 where a = 1;
4242
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
43-
1 SIMPLE t1 p0,p1 eq_ref PRIMARY PRIMARY 4 const # # NULL
43+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 4 const # # NULL
4444
Warnings:
4545
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where (`test`.`t1`.`a` = 1)
4646
select a,length(b),substr(b,1+2*900,2),length(d),substr(d,1+3*900,3)
@@ -91,7 +91,7 @@ replace t1 set a=2,b=@b2,c=222,d=@d2;
9191
commit;
9292
explain select * from t1 where a = 1;
9393
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
94-
1 SIMPLE t1 p0,p1 eq_ref PRIMARY PRIMARY 4 const # # NULL
94+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 eq_ref PRIMARY PRIMARY 4 const # # NULL
9595
Warnings:
9696
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where (`test`.`t1`.`a` = 1)
9797
select a,length(b),substr(b,1+2*900,2),length(d),substr(d,1+3*900,3)
@@ -140,7 +140,7 @@ insert into t1 values(2,@b2,222,@d2);
140140
commit;
141141
explain select * from t1 where c = 111;
142142
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
143-
1 SIMPLE t1 p0,p1 ref c c 4 const # # NULL
143+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ref c c 4 const # # NULL
144144
Warnings:
145145
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where (`test`.`t1`.`c` = 111)
146146
select a,length(b),substr(b,1+2*900,2),length(d),substr(d,1+3*900,3)
@@ -185,7 +185,7 @@ insert into t1 values(9,'b9',999,'dd9');
185185
commit;
186186
explain select * from t1;
187187
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
188-
1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL # # NULL
188+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ALL NULL NULL NULL NULL # # NULL
189189
Warnings:
190190
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1`
191191
select * from t1 order by a;
@@ -222,7 +222,7 @@ insert into t1 values(2,@b2,222,@d2);
222222
commit;
223223
explain select * from t1;
224224
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
225-
1 SIMPLE t1 p0,p1 ALL NULL NULL NULL NULL # # NULL
225+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 ALL NULL NULL NULL NULL # # NULL
226226
Warnings:
227227
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1`
228228
select a,length(b),substr(b,1+2*900,2),length(d),substr(d,1+3*900,3)
@@ -254,7 +254,7 @@ insert into t1 values(9,'b9',999,'dd9');
254254
commit;
255255
explain select * from t1 where c >= 100 order by a;
256256
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
257-
1 SIMPLE t1 p0,p1 range c c 4 NULL # # Using where with pushed condition (`test`.`t1`.`c` >= 100); Using filesort
257+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 range c c 4 NULL # # Using where with pushed condition (`test`.`t1`.`c` >= 100); Using filesort
258258
Warnings:
259259
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where (`test`.`t1`.`c` >= 100) order by `test`.`t1`.`a`
260260
select * from t1 where c >= 100 order by a;
@@ -292,7 +292,7 @@ insert into t1 values(2,@b2,222,@d2);
292292
commit;
293293
explain select * from t1 where c >= 100 order by a;
294294
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
295-
1 SIMPLE t1 p0,p1 index c PRIMARY 4 NULL # # Using where with pushed condition (`test`.`t1`.`c` >= 100)
295+
1 SIMPLE t1 p0,p1,p2,p3,p4,p5,p6,p7 index c PRIMARY 4 NULL # # Using where with pushed condition (`test`.`t1`.`c` >= 100)
296296
Warnings:
297297
Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b`,`test`.`t1`.`c` AS `c`,`test`.`t1`.`d` AS `d` from `test`.`t1` where (`test`.`t1`.`c` >= 100) order by `test`.`t1`.`a`
298298
select a,length(b),substr(b,1+2*900,2),length(d),substr(d,1+3*900,3)
@@ -741,7 +741,7 @@ update t1 set b=concat(b,b,b,b,b);
741741
update t1 set b=concat(b,b,b,b,b);
742742
explain update `t1` set `a`=1 where `a`!= 1;
743743
id select_type table partitions type possible_keys key key_len ref rows filtered Extra
744-
1 UPDATE t1 p0,p1 range PRIMARY PRIMARY 4 const 4 100.00 Using where; Using temporary
744+
1 UPDATE t1 p0,p1,p2,p3,p4,p5,p6,p7 range PRIMARY PRIMARY 4 const 4 100.00 Using where; Using temporary
745745
update `t1` set `a`=1 where `a`!= 1;
746746
select * from t1;
747747
a b
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cluster started with [tcp] Checksum=1

0 commit comments

Comments
 (0)