Bug #70955 | In mysql5.6.14-ndb7.3.3, all data node shutdown by any trigger. | ||
---|---|---|---|
Submitted: | 19 Nov 2013 14:39 | Modified: | 21 Nov 2013 13:26 |
Reporter: | 李 源錫 | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Packaging | Severity: | S1 (Critical) |
Version: | mysql5.6.14-ndb-7.3.3 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[19 Nov 2013 14:39]
李 源錫
[19 Nov 2013 20:07]
Hartmut Holzgraefe
Looks like a duplicate of http://bugs.mysql.com/bug.php?id=56929
[21 Nov 2013 11:42]
MySQL Verification Team
Hello! Thank you for the bug report. Verified as described. Thanks, Umesh
[21 Nov 2013 11:43]
MySQL Verification Team
// with the provided test script mysql> create table a ( -> a1 varchar(100) NOT NULL DEFAULT '', -> a2 int(6) DEFAULT '0', UNIQUE KEY idx_b1 (a1) -> )engine=ndb; Query OK, 0 rows affected (0.38 sec) mysql> mysql> CREATE TABLE b ( -> b1 char(20) NOT NULL DEFAULT '', -> b2 enum('N','Y') NOT NULL DEFAULT 'N' , -> UNIQUE KEY idx_b1 (b1) -> )engine=ndb; Query OK, 0 rows affected (0.43 sec) mysql> delimiter // mysql> CREATE TRIGGER a_update BEFORE UPDATE ON a -> FOR EACH ROW -> UPDATE b SET b2='Y' WHERE b1=SUBSTRING(old.a1, 1 + INSTR(old.a1, '.')) -> // delimiter ; Query OK, 0 rows affected (0.01 sec) mysql> delimiter ; mysql> mysql> delimiter // mysql> drop procedure a_ins// Query OK, 0 rows affected (0.00 sec) mysql> CREATE PROCEDURE a_ins() -> BEGIN -> DECLARE i INT DEFAULT 1; -> WHILE (i<=500000) DO REPLACE INTO a VALUES(concat('a',i,'.aa'), 1); -> SET i=i+1; -> END WHILE; -> END -> // Query OK, 0 rows affected (0.00 sec) mysql> delimiter ; mysql> call a_ins; Query OK, 1 row affected (4 min 10.74 sec) mysql> insert into b values('aa','N'); Query OK, 1 row affected (0.00 sec) mysql> UPDATE a SET a2=2; ERROR 1296 (HY000): Got error 901 'Inconsistent ordered index. The index needs to be dropped and recreated' from NDBCLUSTER // Time: Friday 22 November 2013 - 15:13:11 Status: Temporary error, restart node Message: WatchDog terminate, internal error or massive overload on the machine running this node (Internal error, programming error or missing error message, please report a bug) Error: 6050 Error data: Job Handling Error object: /export/home/pb2/build/sb_0-10782555-1384352627.99/mysql-cluster-gpl-7.3.3/storage/ndb/src/kernel/vm/WatchDog.cpp Program: ndbd Pid: 8761 Version: mysql-5.6.14 ndb-7.3.3 Trace: /data/ushast
[21 Nov 2013 11:45]
MySQL Verification Team
// with the test script from old bug mysql> select version(); +----------------------------------+ | version() | +----------------------------------+ | 5.6.14-ndb-7.3.3-cluster-gpl-log | +----------------------------------+ 1 row in set (0.00 sec) mysql> CREATE TABLE `sequences` ( -> `seq_id` int(11) NOT NULL, -> `seq_no` bigint(30) NOT NULL, -> PRIMARY KEY (`seq_id`) -> ) ENGINE=ndbcluster DEFAULT CHARSET=latin1; DELIMITER // CREATE FUNCTION foo(sequence BIGINT) RETURNS TINYINT BEGIN WHILE sequence > 0 DO REPLACE INTO sequences (seq_id,seq_no) VALUES (1,sequence); SET sequence = sequence - 1; END WHILE; RETURN 1; END // DELIMITER ; START TRANSACTION; SELECT foo(100000);Query OK, 0 rows affected (0.43 sec) mysql> mysql> DELIMITER // mysql> CREATE FUNCTION foo(sequence BIGINT) RETURNS TINYINT -> BEGIN -> WHILE sequence > 0 -> DO REPLACE INTO sequences (seq_id,seq_no) VALUES (1,sequence); -> SET sequence = sequence - 1; END WHILE; -> RETURN 1; -> END // ERROR 1304 (42000): FUNCTION foo already exists mysql> DELIMITER ; mysql> mysql> START TRANSACTION; Query OK, 0 rows affected (0.00 sec) mysql> SELECT foo(100000); ERROR 1296 (HY000): Got error 901 'Inconsistent ordered index. The index needs to be dropped and recreated' from NDBCLUSTER mysql> /// Time: Friday 22 November 2013 - 15:02:53 Status: Temporary error, restart node Message: Internal program error (failed ndbrequire) (Internal error, programming error or missing error message, please report a bug) Error: 2341 Error data: DbtupTrigger.cpp Error object: DBTUP (Line: 2184) 0x00000006 Program: ndbd Pid: 30858 Version: mysql-5.6.14 ndb-7.3.3 Trace: /data/ushastry/cluster/mysql-cluster-gpl-7.3.3/management/ndb_3_trace.log.2 [t1..t1] ***EOM***
[21 Nov 2013 11:57]
Hartmut Holzgraefe
Hello Umesh why "verified" and not "duplicate"? As far as i can tell it is simply hitting the "single row can't be modified more than 65535 times within a single transaction" limit as in #56929 The fact that it only shows with the trigger here is that REPLACE INTO actually does a DELETE/INSERT internally and so isn't touching the same row while the UPDATE in the trigger body is ...
[21 Nov 2013 12:35]
MySQL Verification Team
Duplicate of Bug #56929
[21 Nov 2013 12:37]
MySQL Verification Team
Hello Hartmut, This is marked as duplicate now. Had to keep it for a while in "verified" status for some technical reasons while status of older bug in internal bugs database is checked. Regards, Umesh
[21 Nov 2013 12:56]
李 源錫
please separate this bug from #56929. (duplicate to verified) Pay attention to next message of this bugs. Caused by error 6050: 'WatchDog terminate, This error message is different compare to #56929. This bug is deeply concern with wathdog.
[21 Nov 2013 13:13]
Hartmut Holzgraefe
Hm ... I had only focused on the SQL level error message Got error 901 'Inconsistent ordered index. Different low level error message in node error log makes this a different bug, or at least a different aspect of the same general problem, indeed ...
[21 Nov 2013 13:26]
李 源錫
ok. Indeed, duplicate or verified , either no problem, #56929 is bug of 3 years ago. but, not yet fixed. I am suprised that serius bug #56929 have been deglected during very long period.