Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ERROR 1105 (HY000): Unknown error when query #1640

Closed
2 of 3 tasks
adofsauron opened this issue Apr 28, 2023 · 3 comments
Closed
2 of 3 tasks

bug: ERROR 1105 (HY000): Unknown error when query #1640

adofsauron opened this issue Apr 28, 2023 · 3 comments
Assignees
Labels
A-bug Something isn't working prio: high High priority

Comments

@adofsauron
Copy link
Collaborator

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

mysql> SELECT IF(@rowno != a.taxis_no, @rankno := 1, @rankno := @rankno + 1) AS "rowNo"   FROM (SELECT d.taxis_no           FROM c1md_bank_acct a           JOIN c1cd_currency d             ON a.currency_id = d.row_id            AND d.deleted_flag = '0'          WHERE a.deleted_flag = '0'            AND a.acct_flag IN ('2', '4')            AND a.company_id IN                (SELECT t1.row_id                   FROM C1MD_COMPANY t1, C1MD_COMPANY t2                  WHERE t1.sys_id = t2.sys_id)) a;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    3
Current database: mbs

ERROR 1105 (HY000): Unknown error

Expected behavior

No response

How To Reproduce

No response

Environment

No response

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!
@adofsauron adofsauron added A-bug Something isn't working prio: high High priority labels Apr 28, 2023
@adofsauron
Copy link
Collaborator Author

代码 文件 行 列
{ ST_U , UE, "Unknown error code"}, D:\work\code\stonedb-dev-20230423\storage\ndb\src\ndbapi\ndberror.c 1024 17
die("Unknown error code from dyn_string_cmp()"); D:\work\code\stonedb-dev-20230423\client\mysqltest.cc 2145 10
default: return "[Unknown error code]"; D:\work\code\stonedb-dev-20230423\extra\libevent\libevent-2.1.11-stable\evdns.c 4077 20
return "Unknown error code"; D:\work\code\stonedb-dev-20230423\extra\libevent\libevent-2.1.11-stable\evutil.c 1671 11
cerr << "Unknown error format: " << value << endl; D:\work\code\stonedb-dev-20230423\extra\protobuf\protobuf-2.6.1\src\google\protobuf\compiler\command_line_interface.cc 1075 16
"Unknown error format: invalid\n"); D:\work\code\stonedb-dev-20230423\extra\protobuf\protobuf-2.6.1\src\google\protobuf\compiler\command_line_interface_unittest.cc 1353 6
default: return RAPIDJSON_ERROR_STRING("Unknown error."); D:\work\code\stonedb-dev-20230423\extra\rapidjson\include\rapidjson\error\en.h 64 88
("Slave: Unknown error.* 1105"), D:\work\code\stonedb-dev-20230423\mysql-test\include\mtr_warnings.sql 150 11
/Slave: Unknown error.* 1105/ or D:\work\code\stonedb-dev-20230423\mysql-test\lib\v1\mtr_report.pl 320 11
$env->{errors}->{S3}->{'Unknown error'}= D:\work\code\stonedb-dev-20230423\mysql-test\mysql-stress-test.pl 799 31
[1,"Unknown error. Nothing was output to STDERR"]; D:\work\code\stonedb-dev-20230423\mysql-test\mysql-stress-test.pl 800 35
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\r\innodb_mysql_sync.result 180 14
1105 Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\r\sp-code.result 931 6
1105 Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\r\sp-code.result 935 6
1105 Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\r\sp-code.result 939 6
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\innodb_fts\r\innobase_drop_fts_index_table.result 4 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\innodb_fts\r\ngram_debug.result 176 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\innodb_fts\r\ngram_debug.result 178 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\innodb_fts\r\ngram_debug.result 180 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\innodb_fts\r\ngram_debug.result 182 14
ERROR HY000: Got error 1625 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_err4012.result 37 30
Error 1296 Got error 1625 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_err4012.result 42 28
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_alter.result 73 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 540 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 565 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 599 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 653 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 856 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 881 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 542 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 567 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 601 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_bugs.result 655 84
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_build.result 16 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_build.result 18 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_build.result 20 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_build.result 22 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_build.result 24 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_build.result 26 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 17 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 31 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 33 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 47 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 63 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 65 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 81 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 83 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 97 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 99 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 49 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 67 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_cascade_delete.result 101 84
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_deferred_cascade.result 84 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 17 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 40 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 99 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 104 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 115 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 132 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 28 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 138 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 391 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_disable.result 393 84
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_locase.result 28 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_locase.result 30 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_locase.result 76 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_locase.result 78 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 18 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 20 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 28 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 30 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 38 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 40 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 23 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 33 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_multi_column.result 43 84
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 17 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 43 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 45 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 71 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 99 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 101 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 129 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 131 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 157 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 159 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 35 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 63 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 73 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 91 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 103 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 121 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 149 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 161 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_noaction.result 179 84
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_no_fk.result 93 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_no_fk.result 940 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_no_fk.result 972 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_no_fk.result 982 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_no_fk.result 994 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 75 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 136 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 150 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 213 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 235 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 298 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 426 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 490 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 77 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 138 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 152 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 215 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 237 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 300 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 428 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restore.result 492 84
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 17 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 26 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 45 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 47 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 56 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 75 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 86 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 105 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 107 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 118 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 137 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 139 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 148 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 167 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 169 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 180 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 20 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 50 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 77 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 80 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 109 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 112 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 142 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 171 84
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_restrict.result 174 84
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 20 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 27 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 33 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 43 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 66 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 73 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 80 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_self_ref.result 92 80
ERROR 23000: Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setdefault.result 17 84
Error 1451 Cannot delete or update a parent row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setdefault.result 21 82
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 19 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 21 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 36 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 38 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 54 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 56 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 78 80
ERROR 23000: Cannot add or update a child row: a foreign key constraint fails (Unknown error code) D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_fk_setnull.result 80 80
ERROR HY000: Got error 157 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_reconnect.result 15 29
ERROR HY000: Got error 157 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\r\ndb_reconnect.result 17 29

Testcase for 'Got error 20002 'Unknown error code' from NDBCLUSTER' D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb\t\ndb_join_pushdown.inc 3314 34

ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch.result 2391 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch.result 2397 30
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch.result 2395 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch.result 2401 28
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 2416 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 2422 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 4838 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 4844 30
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 2420 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 2426 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 4842 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch2.result 4848 28
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch_ext.result 2853 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch_ext.result 2859 30
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch_ext.result 2857 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_conflict_epoch_ext.result 2863 28
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 54 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 68 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 76 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 99 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 107 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 118 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 125 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 132 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 148 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 155 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 162 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 169 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 208 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 216 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 233 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 250 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 267 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 284 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 301 30
ERROR HY000: Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 318 30
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 58 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 72 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 80 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 103 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 111 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 122 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 129 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 136 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 152 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 159 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 166 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 173 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 212 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 220 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 237 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 254 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 271 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 288 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 305 28
Error 1296 Got error 1626 'Unknown error code' from NDBCLUSTER D:\work\code\stonedb-dev-20230423\mysql-test\suite\ndb_rpl\r\ndb_rpl_rep_error.result 322 28
-- echo # Unknown error code, exits D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\inc\partition_auto_increment.inc 565 13
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 552 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 610 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 669 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 727 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 786 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 844 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 903 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 961 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1020 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1078 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1137 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1195 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1254 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1314 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1673 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1730 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1788 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1845 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1903 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 1960 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2018 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2069 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2121 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2172 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2750 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2809 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2869 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2928 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 2988 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 3047 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 3107 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 3166 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 3226 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 3285 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 3345 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 3406 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 6175 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 6340 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 6506 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 6671 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 6837 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 7002 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 7168 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 7333 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 7499 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_innodb.result 7660 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 704 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 776 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 849 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 921 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 994 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1066 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1139 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1211 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1284 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1356 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1429 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1501 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1574 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 1649 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2110 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2181 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2253 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2324 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2396 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2467 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2539 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2603 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2668 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 2732 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3475 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3548 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3622 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3695 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3769 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3842 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3916 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 3989 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 4063 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 4136 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 4210 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\parts\r\partition_debug_myisam.result 4286 14
ERROR HY000: Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\rpl\r\rpl_multi_source_mts_reset_worker_info.result 30 14
Error 1105 Unknown error D:\work\code\stonedb-dev-20230423\mysql-test\suite\tianmu\r\func_math.result 97 12
("Slave: Unknown error.* 1105"), D:\work\code\stonedb-dev-20230423\mysql-test\t\m_i_db_createschema.sql 130 11

BUG#15091: Sp Returns Unknown error in order clause....and D:\work\code\stonedb-dev-20230423\mysql-test\t\sp-error.test 1684 25

"Unknown error" when my_error() is called with a matching error number.	D:\work\code\stonedb-dev-20230423\mysys\my_error.c	304	6
(void) my_snprintf(ebuff, sizeof(ebuff), "Unknown error %d", nr);	D:\work\code\stonedb-dev-20230423\mysys\my_error.c	214	47

Both kinds will be translated to "Unknown error %d.", if my_error() D:\work\code\stonedb-dev-20230423\mysys\my_error.c 64 37
Not registered error numbers will be translated to "Unknown error %d.". D:\work\code\stonedb-dev-20230423\mysys\my_error.c 68 55
set_my_errno(-1); /* Unknown error / D:\work\code\stonedb-dev-20230423\mysys\my_sync.c 104 56
"Unknown error code: %d\n", ret); D:\work\code\stonedb-dev-20230423\plugin\innodb_memcached\daemon_memcached\daemon\memcached.c 1816 42
error_message << "Unknown error " << nr; D:\work\code\stonedb-dev-20230423\plugin\keyring\file_io.cc 226 23
"Unknown error occurred while resetting applier's module logs"); D:\work\code\stonedb-dev-20230423\rapid\plugin\group_replication\src\handlers\applier_handler.cc 60 19
die("Failed to read the bootstrap input file. Unknown error.\n"); D:\work\code\stonedb-dev-20230423\scripts\comp_sql.c 180 55
sql_print_warning("Unknown error detected %d in handler", error); D:\work\code\stonedb-dev-20230423\sql\log_event.cc 401 26
const char
errmsg= "Unknown error occured while reseting slave"; D:\work\code\stonedb-dev-20230423\sql\rpl_slave.cc 10494 24
eng "Unknown error during log purge" D:\work\code\stonedb-dev-20230423\sql\share\errmsg-utf8.txt 5381 14
eng "Unknown error" D:\work\code\stonedb-dev-20230423\sql\share\errmsg-utf8.txt 2464 14
ib::error() << "Unknown error code " << err << " while" D:\work\code\stonedb-dev-20230423\storage\innobase\row\row0mysql.cc 4833 19
ib::fatal() << "Unknown error code " << err << ": " D:\work\code\stonedb-dev-20230423\storage\innobase\row\row0mysql.cc 825 19
return("Unknown error"); D:\work\code\stonedb-dev-20230423\storage\innobase\ut\ut0ut.cc 847 10
"Unknown error code: %d\n", ret); D:\work\code\stonedb-dev-20230423\storage\ndb\memcache\extra\memcached\daemon\memcached.c 1772 42
default: return ""; D:\work\code\stonedb-dev-20230423\storage\ndb\src\common\debugger\signaldata\AllocNodeId.cpp 107 21
ndbout << " Msg: Unknown error returned from Dict" << endl; D:\work\code\stonedb-dev-20230423\storage\ndb\src\kernel\blocks\dbutil\DbUtil.cpp 1195 28
BaseString desc("Unknown error."); D:\work\code\stonedb-dev-20230423\storage\ndb\src\mgmsrv\InitConfigFileParser.cpp 373 24
error->message = "Unknown error code"; D:\work\code\stonedb-dev-20230423\storage\ndb\src\ndbapi\ndberror.c 1053 30
may look like "Unknown error -1" and is platform-dependent. D:\work\code\stonedb-dev-20230423\storage\tianmu\base\fmt\format.h 2375 18
"Unknown error.", D:\work\code\stonedb-dev-20230423\storage\tianmu\common\exception.h 52 6
my_message(static_cast(common::ErrorCode::UNKNOWN_ERROR), "Failed to rollback transaction. Unknown error.", D:\work\code\stonedb-dev-20230423\storage\tianmu\handler\ha_tianmu.cpp 2128 103
TIANMU_LOG(LogCtl_Level::ERROR, "Failed to rollback transaction. Unknown error."); D:\work\code\stonedb-dev-20230423\storage\tianmu\handler\ha_tianmu.cpp 2130 72
ER_UNKNOWN_ERROR, "Unknown error"); D:\work\code\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 429 42
ER_UNKNOWN_ERROR, "Unknown error"); D:\work\code\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 504 42
EXPECT_STREQ("Unknown error", str.c_ptr_safe()); D:\work\code\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 373 17
my_message_sql(ER_UNKNOWN_ERROR, "Unknown error", flag); D:\work\code\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 196 39
my_message_sql(ER_UNKNOWN_ERROR, "Unknown error", MYF(0)); D:\work\code\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 335 37

@adofsauron
Copy link
Collaborator Author

代码 文件 行 列
let $var=convert_error(ER_UNKNOWN_ERROR); D:\work\gitee\stonedb-dev-20230423\client\mysqltest.cc 2729 26
fprintf(stderr, "Use ER_UNKNOWN_ERROR instead.\n"); D:\work\gitee\stonedb-dev-20230423\extra\comp_err.c 210 28
#define ER_UNKNOWN_ERROR 1105 D:\work\gitee\stonedb-dev-20230423\include\mysqld_error.h 114 9
-- error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\innodb_fts\t\innobase_drop_fts_index_table.test 14 10
-- error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\innodb_fts\t\ngram_debug.test 169 10
-- error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\innodb_fts\t\ngram_debug.test 171 10
-- error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\innodb_fts\t\ngram_debug.test 173 10
-- error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\innodb_fts\t\ngram_debug.test 175 10
#--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\ndb_team\t\ndb_autodiscover.test 519 10
#--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\ndb_team\t\ndb_autodiscover.test 524 10
--let $slave_sql_errno= convert_error(ER_UNKNOWN_ERROR) D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\rpl\t\rpl_known_bugs_detection.test 37 39
--let $slave_sql_errno= convert_error(ER_UNKNOWN_ERROR) D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\rpl\t\rpl_known_bugs_detection.test 87 39
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\suite\rpl\t\rpl_multi_source_mts_reset_worker_info.test 45 9
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\func_gconcat.test 784 9
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\innodb_mysql_sync.test 298 9
error ER_UNKNOWN_ERROR; D:\work\gitee\stonedb-dev-20230423\mysql-test\t\mysqlbinlog_base64_flag.test 147 7
let $var=convert_error(ER_UNKNOWN_ERROR); D:\work\gitee\stonedb-dev-20230423\mysql-test\t\mysqltest.test 469 24
--error 1,1,ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\symlink.test 86 13
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\xml.test 584 9
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\xml.test 586 9
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\xml.test 588 9
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\xml.test 590 9
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\t\xml.test 592 9
--error ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\mysql-test\test\main\character_set\create.test 876 9
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\bootstrap.cc 215 25
my_printf_error(ER_UNKNOWN_ERROR, "Bootstrap file error. Query size " D:\work\gitee\stonedb-dev-20230423\sql\bootstrap.cc 221 25
push_warning(thd, Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\handler.cc 2492 50
Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\ha_ndbcluster.cc 10465 47
Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\ha_ndbcluster.cc 17254 50
Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\ha_ndbcluster.cc 17276 50
my_message(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\item.cc 3924 16
push_warning(current_thd, Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\item_func.cc 1645 58
push_warning(current_thd, Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\item_func.cc 1686 58
u_d->name.str, ER(ER_UNKNOWN_ERROR)); D:\work\gitee\stonedb-dev-20230423\sql\item_func.cc 4565 32
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\item_subselect.cc 3338 25
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\item_xmlfunc.cc 936 21
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\item_xmlfunc.cc 2639 21
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\item_xmlfunc.cc 2647 21
my_printf_error(ER_UNKNOWN_ERROR, "Unknown XPATH variable at: '%.*s'", D:\work\gitee\stonedb-dev-20230423\sql\item_xmlfunc.cc 2555 23
my_printf_error(ER_UNKNOWN_ERROR, "XPATH syntax error: '%.s'", D:\work\gitee\stonedb-dev-20230423\sql\item_xmlfunc.cc 2678 21
ER_UNKNOWN_ERROR); D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 399 25
ER_UNKNOWN_ERROR, "Could not execute %s event on table %s.%s;" D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 227 19
ER_UNKNOWN_ERROR, "Could not execute %s event on table %s.%s;" D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 235 19
ER_UNKNOWN_ERROR, "Could not execute %s event on table %s.%s;" D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 245 19
ER_UNKNOWN_ERROR, "Could not execute %s event on table %s.%s;" D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 255 19
if (actual_error == ER_UNKNOWN_ERROR) D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 400 25
mapping is not found, it uses the ER_UNKNOWN_ERROR and prints out a D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 387 37
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 8125 28
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 12843 14
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 4720 27
sql_errno=ER_UNKNOWN_ERROR; D:\work\gitee\stonedb-dev-20230423\sql\log_event.cc 6486 17
error= ER_UNKNOWN_ERROR; D:\work\gitee\stonedb-dev-20230423\sql\mysqld.cc 2286 12
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\named_pipe.cc 103 23
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\named_pipe.cc 174 23
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\opt_range.cc 10689 30
set_error(ER_UNKNOWN_ERROR, errmsg); D:\work\gitee\stonedb-dev-20230423\sql\rpl_binlog_sender.h 400 15
my_message(ER_UNKNOWN_ERROR, errmsg, MYF(0)); /
purecov: inspected */ D:\work\gitee\stonedb-dev-20230423\sql\rpl_master.cc 183 14
error= ER_UNKNOWN_ERROR; D:\work\gitee\stonedb-dev-20230423\sql\rpl_slave.cc 10539 12
if (!ignored_error_code(ER_UNKNOWN_ERROR)) D:\work\gitee\stonedb-dev-20230423\sql\rpl_slave.cc 9882 31
mi->report(WARNING_LEVEL, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\rpl_slave.cc 3263 39
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\rpl_slave.cc 10540 14
my_printf_error(ER_UNKNOWN_ERROR, "master may suffer from" D:\work\gitee\stonedb-dev-20230423\sql\rpl_slave.cc 9876 23
rli->report(ERROR_LEVEL, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\rpl_slave.cc 5060 32
rli->report(report_level, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\rpl_slave.cc 9892 35
ER_UNKNOWN_ERROR D:\work\gitee\stonedb-dev-20230423\sql\share\errmsg-utf8.txt 2460 1
push_warning(thd, Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\sp_head.cc 1306 54
push_warning(thd, Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, tmp); D:\work\gitee\stonedb-dev-20230423\sql\sp_head.cc 1986 52
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sp_instr.cc 576 14
ER(ER_UNKNOWN_ERROR));); D:\work\gitee\stonedb-dev-20230423\sql\sp_rcontext.cc 571 35
ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\sp_rcontext.cc 570 32
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_base.cc 10198 16
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_base.cc 10278 16
my_message(ER_UNKNOWN_ERROR, ER(ER_UNKNOWN_ERROR), MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_base.cc 9464 18
my_message(ER_UNKNOWN_ERROR, ER(ER_UNKNOWN_ERROR), MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_base.cc 9502 18
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_binlog.cc 304 18
sql_errno= ER_UNKNOWN_ERROR; D:\work\gitee\stonedb-dev-20230423\sql\sql_class.cc 1434 16
ER(ER_UNKNOWN_ERROR))); D:\work\gitee\stonedb-dev-20230423\sql\sql_connect.cc 819 33
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_exception_handler.cc 93 14
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_optimizer.cc 5336 34
ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\sql_parse.cc 3192 24
my_error(ER_UNKNOWN_ERROR, MYF(0)); goto error;); D:\work\gitee\stonedb-dev-20230423\sql\sql_parse.cc 3898 30
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\sql_parse.cc 7031 23
DBUG_EVALUATE_IF(code, (my_error(ER_UNKNOWN_ERROR, MYF(0)), TRUE), 0) D:\work\gitee\stonedb-dev-20230423\sql\sql_partition.cc 88 36
push_warning_printf(thd, sl, ER_UNKNOWN_ERROR, message, D:\work\gitee\stonedb-dev-20230423\sql\sql_query_rewrite.cc 43 32
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_reload.cc 103 18
ER_UNKNOWN_ERROR, "Server connection in use"); D:\work\gitee\stonedb-dev-20230423\sql\sql_servers.cc 816 25
ER_UNKNOWN_ERROR, "Server connection in use"); D:\work\gitee\stonedb-dev-20230423\sql\sql_servers.cc 890 25
my_error(ER_UNKNOWN_ERROR, MYF(0)); D:\work\gitee\stonedb-dev-20230423\sql\sql_table.cc 7650 16
push_warning(thd, Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\sql_table.cc 10446 52
(*result)->send_error(ER_UNKNOWN_ERROR, ER(ER_UNKNOWN_ERROR)); D:\work\gitee\stonedb-dev-20230423\sql\sql_update.cc 1707 27
my_message(ER_UNKNOWN_ERROR, "An error occured in multi-table update", D:\work\gitee\stonedb-dev-20230423\sql\sql_update.cc 2852 16
push_warning_printf(thd, Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\sys_vars.cc 5499 59
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql\unireg.cc 306 21
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql-common\client.c 2959 25
my_printf_error(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\sql-common\client.c 2973 19
my_printf_error(ER_UNKNOWN_ERROR, "Unknown OS character set '%s'.", MYF(0), D:\work\gitee\stonedb-dev-20230423\sql-common\client.c 2968 19
push_warning(&thd, Sql_condition::SL_NOTE, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine.cpp 2260 48
my_message(ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 530 16
my_message(ER_UNKNOWN_ERROR, "Tianmu: unsupported UNION", MYF(0)); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 475 20
my_message(ER_UNKNOWN_ERROR, (std::string("Stopped by user.")).c_str(), MYF(0)); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 559 16
my_message(ER_UNKNOWN_ERROR, (std::string("Tianmu compile specific error: ") + x.what()).c_str(), MYF(0)); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 455 16
my_message(ER_UNKNOWN_ERROR, (std::string("Tianmu out of memory error")).c_str(), MYF(0)); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 572 16
my_message(ER_UNKNOWN_ERROR, x.getExceptionMsg().data(), MYF(0)); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 568 16
push_warning(thd, Sql_condition::SL_NOTE, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 370 47
push_warning(thd, Sql_condition::SL_NOTE, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 449 49
result->send_error(ER_UNKNOWN_ERROR, ER(ER_UNKNOWN_ERROR)); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\core\engine_execute.cpp 278 24
common::PushWarning(current_txn_->Thd(), Sql_condition::SL_WARNING, ER_UNKNOWN_ERROR, err_msg.str().c_str()); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\loader\parsing_strategy.cpp 671 75
common::PushWarning(current_txn_->Thd(), Sql_condition::SL_NOTE, ER_UNKNOWN_ERROR, "Values rounded in average()"); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\optimizer\aggregator_basic.cpp 115 70
common::PushWarning(current_txn_->Thd(), Sql_condition::SL_NOTE, ER_UNKNOWN_ERROR, "Values rounded in average()"); D:\work\gitee\stonedb-dev-20230423\storage\tianmu\optimizer\aggregator_basic.cpp 128 70
push_warning(thd, Sql_condition::SL_NOTE, ER_UNKNOWN_ERROR, D:\work\gitee\stonedb-dev-20230423\storage\tianmu\sql\ha_my_tianmu.cpp 78 49
DIE_UNLESS(rc && mysql_stmt_errno(stmt) == ER_UNKNOWN_ERROR); D:\work\gitee\stonedb-dev-20230423\testclients\mysql_client_test.c 18978 46
ER_UNKNOWN_ERROR, "Unknown error"); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 429 23
ER_UNKNOWN_ERROR, "Unknown error"); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 504 23
EXPECT_EQ(ulonglong (ER_UNKNOWN_ERROR), var->val_uint()); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 367 24
initializer.set_expected_error(ER_UNKNOWN_ERROR); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 225 34
initializer.set_expected_error(ER_UNKNOWN_ERROR); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 262 34
my_message_sql(ER_UNKNOWN_ERROR, "Unknown error", flag); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 196 20
my_message_sql(ER_UNKNOWN_ERROR, "Unknown error", MYF(0)); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 335 18
thd()->raise_warning(ER_UNKNOWN_ERROR); D:\work\gitee\stonedb-dev-20230423\unittest\gunit\get_diagnostics-t.cc 287 24

@adofsauron
Copy link
Collaborator Author

    // If we had a another error reported earlier then this will be ignored //
    result->send_error(ER_UNKNOWN_ERROR, ER(ER_UNKNOWN_ERROR));
    result->abort_result_set();

RingsC added a commit that referenced this issue Jun 29, 2023
* docs(downlaod):update the docs of download(#1453)

* fix(mtr):Resolve the nightly run error problem(#1458)

* fix(workflow): fix can not run lcov in workflow

* feat(tianmu):New configuration parameters: "tianmu_mandatory" and "tianmu_no_key_error (#1462)"
In version 1.0.4, we will discard "MANDATORY_TIANMU" and "NO_KEY_ERROR" in (sql_mode)

Specifies whether to enable mandatory Tianmu engine in table. if yes ,set tianmu_mandatory to ON, otherwise set the variable to OFF.
Specifies whether to to directly skip DDL statements that are not supported by the SQL layer, instead of reporting errors.
if yes ,set tianmu_no_key_error to ON, otherwise set the variable to OFF.

* feat(tianmu):Discard "MANDATORY_TIANMU" and "NO_KEY_ERROR" in (sql_mode)

* feat(tianmu):Resolve the issue of warning messages when setting new parameters

* fix(tianmu):(Primary/Secondary)Error 1032 occasionally occurs during primary/secondary synchronization if UUIDs are used as the primary key(#1464)

Cause of the problem:
When performing a primary key scan under the master slave, "ha_tianmu:: position()" is called first to obtain the primary key value from the "record",
However, in this scenario, after calling the "key_copy()" function, the "record" will be cleared, resulting in the subsequent "GetKeys()" obtaining a null primary key value.
Solution:
Because the value "handler->ref" is not used in the future, you can simply delete the call to "key_copy()".

* test(mtr): add integer/unsigned/in subquery/create temporary testcases and update escape.test(#1196)

* docs(v1.0.3): update the docs for v1.0.3

* fix(dcoker): FixDocker deployment commands(#1499)

* feat: add Baidu statistics script(#1498)

* fix(website): fix Baidu statistics script(#1502)

* test(mtr): Optimize parallel scheduling to execute more innodb engine testcases, add date type and std func testcase(#1196)

* fix crash when the aggregated element was decimal (#1402)
    1. Fix the crash first
    2. then redesign the entire aggregated data stream

* build(deps): bump nth-check and unist-util-select in /website

Bumps [nth-check](https://github.com/fb55/nth-check) to 2.1.1 and updates ancestor dependency [unist-util-select](https://github.com/syntax-tree/unist-util-select). These dependencies need to be updated together.


Updates `nth-check` from 1.0.2 to 2.1.1
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](fb55/nth-check@v1.0.2...v2.1.1)

Updates `unist-util-select` from 2.0.2 to 4.0.1
- [Release notes](https://github.com/syntax-tree/unist-util-select/releases)
- [Commits](syntax-tree/unist-util-select@2.0.2...4.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
- dependency-name: unist-util-select
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* docs(deploy): Update the document and fix the link

* update the copyright

* update the readme(#1324)

* Create FUNDING.yml

update the Sponsor button

* Update FUNDING.yml

fix the link of opencollective

* remove dup lines in git workflow

* feat(tianmu): mv func from public to protected(#1501)

* style change

* strip spaces

* remove dup lines

* change to uint

* fix(tianmu):Resolve DDL and insert inot select Possible space inflation issues(#366)

Cause of the problem:
1. For multiple versions, Tianmu needs to first copy an original pack when performing DML operations,
Modify the copied package and use append write or overwrite write after modification
(If there is invalid space in the DATA file that can be written to the current pack, use overwrite write, otherwise use append write) to write to the file,
After the latest package is written to a file, the latest version chain will point to the address that was last written.
There is a problem with the current (TianmuAttr:: LoadData) logic. Every time you call (TianmuAttr:: LoadData),
Will write data to disk,
If there are multiple rows written in a transaction, there will be multiple copies of data,
"Because the current transaction has not been committed, the space for previous repeated writes has not been released, so the logic of overwriting writes will not be reached.",
"I only follow the logic of additional writing, which is the fundamental reason for the skyrocketing space.".
If you encounter a particularly large multiline write transaction, it will lead to a space explosion.
Moreover, disk IO is performed once per load line, which can also lead to degraded insert performance.
Solution:
To optimize the logic of (TianmuAttr:: LoadData), it is necessary to determine whether the data in the pack is full before saving changes,
Is whether to reach 65536 lines, and if so, write again,
If it cannot be reached, it is necessary to write again in the commit phase.

* feat(tianmu):Reconstruct direct insert into parallel execution, improving direct insert performance.

* feat(tianmu):Add code comments for easy understanding

* fix(tianmu):The myloader cann't work if the autocommit is closed. (#1510)

Currently, TIANMU does not support manual transactions and only supports automatic commit.
However, it does determine whether to commit the transaction based on the automatic commit parameters of MySQL.
If automatic commit is turned off, automatic commit will not be performed on the transaction

* fix(core): fix bug: The instance occasionally crashes if both fields specified for an equi-join are of the string data types (#1476)

* fix: page hover font style

* feat(mtr): To fix the mtr usage

The disabeld mtr use cases should follow the mtr conventional rules.
Adds a disabled.def to indeciate which case is disabled or not.

* fix(tianmu):The mysqld is crashed when you are starting replication.(#1523)

It is possible to update null values with null values in the delta layer,
For example:
update t set name="xiaohua" where id=1;
update t set name=null where id=1;
So when encountering this situation, directly return

* feat(tianmu):Add delta layer mtr

* bug 1538:The instance occasionally crashes when the parallel degree is enabled of the right table #1538

* feat(tianmu): To support vocalno framwork

The PRs to support vocalno framwork include a serials of PR.
Part1: Refine framework of code to make it clean and clear to read.

* docs(quickstart): add stonedb-8.0 compiling guide #1449

* fix(website): fix website error #1449

* feat(tianmu): support volcano framewrok (#1546)

* feat(tianmu): To support volcano framework

This is a serial of PRs, part2: To remove global var `ha_kvstore`, which should be in an engine.
To support volcano framework. and In order to do that, at secondly, ha_kvstore_,
a global variable removed to the engine. That follows innodb conventional rules.

* fix(tianmu): revert code, mv ret value from try block back to catch block

[summary]

The logic of this modification is as follows:
Previously, set ret action has been moved to try block, which is not efficient because every time we do truncate success, ret will be setted to 1. This time we will move the set ret action back to catch block, which will only trigged when truncate failed.

* feat(tiamnu): hard code in defs.h (#1481)
change magic number to readable const

* docs:update the compile guides #1562

* test(mtr): add more innodb testcases and tianmu range testcase(#1196)

* fix(tianmu):Remove excess log printing and add some code comments(#1545)

* fix(tianmu): fix mysqld crash when exec query with AggregateRough, assert failed on i < m_idx.size() at tianmu_attr.h:387, msg: [bad dpn index 0/0] (#1580)

* fix(website): fix the download link of 5.7(#1518)

* feat(website): update the latest content(#1587)

* feat(tianmu): support volcano framework (#1554)

Part3: To remove the `ha_tianmu_engine`, and gets it from hton's data. This makes
it behavior just like innodb.  MySQL gets innodb handler instance from table->s->file.
and it will make the code logic more concise.

* fix: max-width navbar search style

* feat(website): upgrade the docusaurus version(#1604)
fix #1604

* fix(website): fix Roadmap module location(#1597)

* website(community): update the content

* feat(website): update the logo of XinChuang(#1590)

* fix(tianmu):The instance occasionally crashes when the memory leak. (#1549)

* fix(tianmu):Modify merge_ The assignment method of ID, delaying the assignment to ensure that the final value is correct

* fix(tianmu):Fix bug in delta layer initialization

* fix(tianmu):Resolve the issue of assertion failure caused by memory allocation bugs in (pack_int)

* fix(tianmu):Code format adjustment

* fix(website): fix the wrong QR code(#1624)

* feat(tianmu):Add delta layer information output and table name output

* fix(tianmu):Perfect atomic operations for delta_table

* feat(tianmu):Optimize delta layer merge operations to remove useless logic

* fix(tianmu):assert failed on ptr == buff.get() + data_.sum_len at pack_str.cpp:584(#1620)

* fix(tianmu):assert failed on oldv <= dpn_->max_i at pack_int.cpp:337 (#1610)

* feat(tianmu):Increase assertion printing information and optimize code logic(#1617)

* fix(tianmu): fix mysqld crash when query where JOIN::propagate_dependencies (#1628)

* fix(tianmu): fix MySQL server has gone away when exec query (#1641 #1640)

* fix(tianmu):Support insert ignore syntax (#1637)

* fix(tianmu): fix query input variables wrong result (#1647)

* fix(tianmu): fix result of the query using the subquery derived table is incorrect (#1662)

* fix(tianmu): fix results of two queries using a derived table and a custom face change are incorrect (#1696)

* feat(tianmu): Test cases that supplement custom variables (#1703)

* fix(tianmu): fix mysqld crash when assigning return values using both custom variables and derived tables (#1707)

* fix(tianmu): Insert ignore can insert duplicate values.(#1699)

* fix(tianmu): fix error occurred in the union all query result (#1599)

* remove unused code block

* fix bug and change test case exptected result

* add stonedb-8.0 compiling guide for CentOS 7.x

* docs(quickstart): add stonedb-8.0 compiling guide(Chinese) for CentOS 7.x

* fix(tianmu):Even if a primary key is defined, duplicate data may be imported.(#1648)

* add delete/drop into tianmu log stat

* open log for all cmds

* fit format

* fix(tianmu): fix Error result set of the IN subquery with semi join (#1764)

* doc(develop-guide): modify method for complie stonedb using docker

1. change the version of the stonedb from 5.6 to 5.7 in docs.
2. list both manual install and automatic install in docs.
3. update the reference in zh-doc to a valid one:
可以参考:[StoneDB快速部署手册](https://stonedb.io/zh/docs/getting-started/quick-deployment)
可以参考:[StoneDB快速部署手册](https://stonedb.io/zh/docs/quick-deployment)

* docs:add docker compile guide of stonedb8.0.(#1780)

* feature: remove DBUG_OFF and repalce DEBUG_ASSERT with assert

* automatically formatting

* fix: fix storage of DT type

* fix incorrect result of TIME type by distinguishing the processing of TIME type from other time types

* fix(tinmu): fix tianmu crash when set varchar to num when order by

* docs(website): update the documentation for Compile StoneDB 8.0 in Docker(#1823)

* fix(tianmu): fix up the incompatible type

1) In result value setup phase, it only deals with num, but in some case, some non-num types
involved, therefore, we should also deal with these types.

2) To fixup the boundary of the error codes.

* fix(tianmu): Fix up the unknown exception after instance killed randomly (#1841)

If the instance was killed by `kill -9 'pid'` randomly, the new inserted data will not be written into `DATA` file under
the param of `tianmu_insert_delayed` was set to 0. Under this configuration, the data will write to memory not a `DATA`
file. Therefore, when the instance was killed and restarted, the data will be lost, and the `DATA` can not be found, and
an TianmuError exception will be thrown.

changed the writing behavior of instance from writting data into memory to writting data into `DATA` file immediately as
that of `tianmu_insert_delayed=1`.

* fix(tianmu): fix up the incorrect meta-info leads unexpected behavior (#1840)

In `ColumnShare::scan_dpn`, it will throw an exception to identify the in-consistent meta-data,
which the offset violates the rules. Now, the deleted DPNs should not be added to `segs`.

And, some auxiliary functions are added for helping to identify the status of files.

* fix(workflow): nightly build failed #1830

[summary]
Currently we disable tar pkg in ci/cd.

* feat(tianmu): revert assert() --> debug_assert() #1551

[summary]
To avoid some cases of some assert failed in release mode.

* feat(tianmu): fixup the default delimeter for load data (#1843)

Tianmu default delimiter is ';' not '\t'. In order to follow the mysql convention,
we change the default delimeter to `\t`.

* fix(tianmu): revert PR #1841. (#1850)

Due to the disk space flattion, this PR is used to revert PR #1841. But this will lead to data in-consistent after the
instance killed at randomly because the new data inserted into memory, and will lost. The root cause pls ref to discussion
in #1621.

* fix(tianmu): fix up mtr test case for delim of load data command (#1854)

To fix up some MTR test cases because the delim of load data is changed from ; to \t.

* fix(tianmu): fix up the `group_concat` function in tianmu (#1852)

To allow `group_concat` function executed in tianmu, and Changes `SI` to `SpecialInstruction`.
Some exceptions are catched.

* fix(tianmu): To fixup the instance crashed if the result of aggregate function goes out of bounds (#1856)

To caculate `sum(length())` will lead a corruption in destructor of `ValueOrNull`, frees an array of
char. Before the array deletes, the validity of that should be checked, and after that the pointer of
that arrary should also be set to nullptr, which make sure it's a safe code piece.

* docs(developer-guide): update the compiling guide of stonedb 8.0 for centos7.x(#1817)

* fix(tianmu): Fixup the mem leakage of aggregation function

1: Fixup the memory leakage of aggregation function, which may lead to failed of malloc.
2: Re-impl the operator= of `ValueOrNull`.
3: Fixup the assertion of `dow_cast` in ` Query::ClearSubselectTransformation`, `Item_func_trig_cond`.

* fix(tianmu): fix UNION of non-matching columns (column no 0)

* test(tianmu): add order by sentence in the mtr case various_join.test

* test(mtr): add more test cases for tianmu(#1196)

[summary]
case_when.test
drop_restric.test
empty_string_not_null.test
left_right_func.test
like_not_like.test
multi_join.test
order_by.test
ssb_small.test
union_case.test

* test(mtr): add order by sentence in the mtr case various_join.test

* ci(codecov): update the config

* fix(tianmu): To suuport ignore option for update statement

To support `update ignore` statement. The logic of uniqueness check is re-implemented.

* ci(codecov): update the codecov congfig

* docs(intro): update the support for 8.0

* wokflow(codecov): Filter out excess code files

* workflow(coverage): Update the lcov running logic

* fix(tianmu): default value of the field take unaffect in load #1865

Cause:
  in the function ParsingStrategy::ParseResult ParsingStrategy::GetOneRow
field->val_str(str) cannot distinguish 0 and NULL value.
Solution:
  Check whether field's default value is NULL.

* fix(tianmu): To support union(all) the statement which is without from clause

1: To fixup unsupport union or union all a sql statement which is without from clause.
2: Re-format some codes and functions.

* fix(tianmu): To remove unnessary optimization in tianmu

1:Removes the unnessary optimization in stage of compiliation of tianmu. It doesnot have any helps for us.
and may introuduce unexepected behaviors.
2:Refine MTR: issue848, issue1865, alter_table1, issue1523

* fix(tianmu): hotfix corruption in ValueOrNull under multi-thread

In multi-thread aggregation, ExpressionColumn will occur double free due to without
protection. Thread A will do ValueOrNull::operator ==, but in thread B, it will try to
free it. Therefore, it leads to instance crash.

* fix(tianmu): incorrect result when using where expr and args > bigint_max #1564

[summary]
1. static_cast<int64_t>(18446744073709551601) = -15
2. Item will set 18446744073709551601 with unsigned flag, but in tianmu
transform to ValueOrNot, the value will be set to `-15`.
3. add `unsigned flag` in value_or_null & TianmuNum & tianmu expr.

* fix(tianmu): add TIME_to_ulonglong_time_round process and fix up precision loss problem (#1173)

When converting TIME/DATETIME to ulonglong numeric, tianmu engine does not take the
TIME_to_ulonglong_time_round process. This causes the results different from innodb.
Furthermore, when we close the tianmu_insert_delayed parameter and execute an insert SQL,
the TIME/DATETIME/TIMESTAMP type's data will loss precision due to incomplete attribute copying.

PR Close #1173

* fix(tianmu): fix format using clang-format #792

* feat: rm files after rebase leftover #1217

files deleted:
        storage/tianmu/core/rc_attr_typeinfo.h
        storage/tianmu/handler/tianmu_handler.cpp
        storage/tianmu/handler/tianmu_handler_com.cpp
        storage/tianmu/types/rc_data_types.cpp
        storage/tianmu/types/rc_num.cpp
        storage/tianmu/types/rc_num.h
        storage/tianmu/types/rc_value_object.cpp

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: LiMK <slibre@qq.com>
Co-authored-by: lihongjian <lihongjian@stoneatom.com>
Co-authored-by: shizhao <shizhao@stoneatom.com>
Co-authored-by: adofsauron <adofsauron@163.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: StoneAtom <98451811+stoneatomadmin@users.noreply.github.com>
Co-authored-by: zzzz-vincent <wenzishen.vincent@hotmail.com>
Co-authored-by: wisehead <alex.chenhui@gmail.com>
Co-authored-by: Agility6 <agility6@163.com>
Co-authored-by: Double0101 <double0101@foxmail.com>
Co-authored-by: dysprosium0626 <1119493091@qq.com>
Co-authored-by: augety <chenshengjiang@stoneatom.com>
Co-authored-by: xuxinqiang <xxq2933@163.com>
Co-authored-by: Jinrong Duan <duanjr02@gmail.com>
Co-authored-by: unknown <adofsauron>
Co-authored-by: hustjieke <gaoriyao1@gmail.com>
RingsC added a commit that referenced this issue Jun 30, 2023
* docs(downlaod):update the docs of download(#1453)

* fix(mtr):Resolve the nightly run error problem(#1458)

* fix(workflow): fix can not run lcov in workflow

* feat(tianmu):New configuration parameters: "tianmu_mandatory" and "tianmu_no_key_error (#1462)"
In version 1.0.4, we will discard "MANDATORY_TIANMU" and "NO_KEY_ERROR" in (sql_mode)

Specifies whether to enable mandatory Tianmu engine in table. if yes ,set tianmu_mandatory to ON, otherwise set the variable to OFF.
Specifies whether to to directly skip DDL statements that are not supported by the SQL layer, instead of reporting errors.
if yes ,set tianmu_no_key_error to ON, otherwise set the variable to OFF.

* feat(tianmu):Discard "MANDATORY_TIANMU" and "NO_KEY_ERROR" in (sql_mode)

* feat(tianmu):Resolve the issue of warning messages when setting new parameters

* fix(tianmu):(Primary/Secondary)Error 1032 occasionally occurs during primary/secondary synchronization if UUIDs are used as the primary key(#1464)

Cause of the problem:
When performing a primary key scan under the master slave, "ha_tianmu:: position()" is called first to obtain the primary key value from the "record",
However, in this scenario, after calling the "key_copy()" function, the "record" will be cleared, resulting in the subsequent "GetKeys()" obtaining a null primary key value.
Solution:
Because the value "handler->ref" is not used in the future, you can simply delete the call to "key_copy()".

* test(mtr): add integer/unsigned/in subquery/create temporary testcases and update escape.test(#1196)

* docs(v1.0.3): update the docs for v1.0.3

* fix(dcoker): FixDocker deployment commands(#1499)

* feat: add Baidu statistics script(#1498)

* fix(website): fix Baidu statistics script(#1502)

* test(mtr): Optimize parallel scheduling to execute more innodb engine testcases, add date type and std func testcase(#1196)

* fix crash when the aggregated element was decimal (#1402)
    1. Fix the crash first
    2. then redesign the entire aggregated data stream

* build(deps): bump nth-check and unist-util-select in /website

Bumps [nth-check](https://github.com/fb55/nth-check) to 2.1.1 and updates ancestor dependency [unist-util-select](https://github.com/syntax-tree/unist-util-select). These dependencies need to be updated together.


Updates `nth-check` from 1.0.2 to 2.1.1
- [Release notes](https://github.com/fb55/nth-check/releases)
- [Commits](fb55/nth-check@v1.0.2...v2.1.1)

Updates `unist-util-select` from 2.0.2 to 4.0.1
- [Release notes](https://github.com/syntax-tree/unist-util-select/releases)
- [Commits](syntax-tree/unist-util-select@2.0.2...4.0.1)

---
updated-dependencies:
- dependency-name: nth-check
  dependency-type: indirect
- dependency-name: unist-util-select
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* docs(deploy): Update the document and fix the link

* update the copyright

* update the readme(#1324)

* Create FUNDING.yml

update the Sponsor button

* Update FUNDING.yml

fix the link of opencollective

* remove dup lines in git workflow

* feat(tianmu): mv func from public to protected(#1501)

* style change

* strip spaces

* remove dup lines

* change to uint

* fix(tianmu):Resolve DDL and insert inot select Possible space inflation issues(#366)

Cause of the problem:
1. For multiple versions, Tianmu needs to first copy an original pack when performing DML operations,
Modify the copied package and use append write or overwrite write after modification
(If there is invalid space in the DATA file that can be written to the current pack, use overwrite write, otherwise use append write) to write to the file,
After the latest package is written to a file, the latest version chain will point to the address that was last written.
There is a problem with the current (TianmuAttr:: LoadData) logic. Every time you call (TianmuAttr:: LoadData),
Will write data to disk,
If there are multiple rows written in a transaction, there will be multiple copies of data,
"Because the current transaction has not been committed, the space for previous repeated writes has not been released, so the logic of overwriting writes will not be reached.",
"I only follow the logic of additional writing, which is the fundamental reason for the skyrocketing space.".
If you encounter a particularly large multiline write transaction, it will lead to a space explosion.
Moreover, disk IO is performed once per load line, which can also lead to degraded insert performance.
Solution:
To optimize the logic of (TianmuAttr:: LoadData), it is necessary to determine whether the data in the pack is full before saving changes,
Is whether to reach 65536 lines, and if so, write again,
If it cannot be reached, it is necessary to write again in the commit phase.

* feat(tianmu):Reconstruct direct insert into parallel execution, improving direct insert performance.

* feat(tianmu):Add code comments for easy understanding

* fix(tianmu):The myloader cann't work if the autocommit is closed. (#1510)

Currently, TIANMU does not support manual transactions and only supports automatic commit.
However, it does determine whether to commit the transaction based on the automatic commit parameters of MySQL.
If automatic commit is turned off, automatic commit will not be performed on the transaction

* fix(core): fix bug: The instance occasionally crashes if both fields specified for an equi-join are of the string data types (#1476)

* fix: page hover font style

* feat(mtr): To fix the mtr usage

The disabeld mtr use cases should follow the mtr conventional rules.
Adds a disabled.def to indeciate which case is disabled or not.

* fix(tianmu):The mysqld is crashed when you are starting replication.(#1523)

It is possible to update null values with null values in the delta layer,
For example:
update t set name="xiaohua" where id=1;
update t set name=null where id=1;
So when encountering this situation, directly return

* feat(tianmu):Add delta layer mtr

* bug 1538:The instance occasionally crashes when the parallel degree is enabled of the right table #1538

* feat(tianmu): To support vocalno framwork

The PRs to support vocalno framwork include a serials of PR.
Part1: Refine framework of code to make it clean and clear to read.

* docs(quickstart): add stonedb-8.0 compiling guide #1449

* fix(website): fix website error #1449

* feat(tianmu): support volcano framewrok (#1546)

* feat(tianmu): To support volcano framework

This is a serial of PRs, part2: To remove global var `ha_kvstore`, which should be in an engine.
To support volcano framework. and In order to do that, at secondly, ha_kvstore_,
a global variable removed to the engine. That follows innodb conventional rules.

* fix(tianmu): revert code, mv ret value from try block back to catch block

[summary]

The logic of this modification is as follows:
Previously, set ret action has been moved to try block, which is not efficient because every time we do truncate success, ret will be setted to 1. This time we will move the set ret action back to catch block, which will only trigged when truncate failed.

* feat(tiamnu): hard code in defs.h (#1481)
change magic number to readable const

* docs:update the compile guides #1562

* test(mtr): add more innodb testcases and tianmu range testcase(#1196)

* fix(tianmu):Remove excess log printing and add some code comments(#1545)

* fix(tianmu): fix mysqld crash when exec query with AggregateRough, assert failed on i < m_idx.size() at tianmu_attr.h:387, msg: [bad dpn index 0/0] (#1580)

* fix(website): fix the download link of 5.7(#1518)

* feat(website): update the latest content(#1587)

* feat(tianmu): support volcano framework (#1554)

Part3: To remove the `ha_tianmu_engine`, and gets it from hton's data. This makes
it behavior just like innodb.  MySQL gets innodb handler instance from table->s->file.
and it will make the code logic more concise.

* fix: max-width navbar search style

* feat(website): upgrade the docusaurus version(#1604)
fix #1604

* fix(website): fix Roadmap module location(#1597)

* website(community): update the content

* feat(website): update the logo of XinChuang(#1590)

* fix(tianmu):The instance occasionally crashes when the memory leak. (#1549)

* fix(tianmu):Modify merge_ The assignment method of ID, delaying the assignment to ensure that the final value is correct

* fix(tianmu):Fix bug in delta layer initialization

* fix(tianmu):Resolve the issue of assertion failure caused by memory allocation bugs in (pack_int)

* fix(tianmu):Code format adjustment

* fix(website): fix the wrong QR code(#1624)

* feat(tianmu):Add delta layer information output and table name output

* fix(tianmu):Perfect atomic operations for delta_table

* feat(tianmu):Optimize delta layer merge operations to remove useless logic

* fix(tianmu):assert failed on ptr == buff.get() + data_.sum_len at pack_str.cpp:584(#1620)

* fix(tianmu):assert failed on oldv <= dpn_->max_i at pack_int.cpp:337 (#1610)

* feat(tianmu):Increase assertion printing information and optimize code logic(#1617)

* fix(tianmu): fix mysqld crash when query where JOIN::propagate_dependencies (#1628)

* fix(tianmu): fix MySQL server has gone away when exec query (#1641 #1640)

* fix(tianmu):Support insert ignore syntax (#1637)

* fix(tianmu): fix query input variables wrong result (#1647)

* fix(tianmu): fix result of the query using the subquery derived table is incorrect (#1662)

* fix(tianmu): fix results of two queries using a derived table and a custom face change are incorrect (#1696)

* feat(tianmu): Test cases that supplement custom variables (#1703)

* fix(tianmu): fix mysqld crash when assigning return values using both custom variables and derived tables (#1707)

* fix(tianmu): Insert ignore can insert duplicate values.(#1699)

* fix(tianmu): fix error occurred in the union all query result (#1599)

* remove unused code block

* fix bug and change test case exptected result

* add stonedb-8.0 compiling guide for CentOS 7.x

* docs(quickstart): add stonedb-8.0 compiling guide(Chinese) for CentOS 7.x

* fix(tianmu):Even if a primary key is defined, duplicate data may be imported.(#1648)

* add delete/drop into tianmu log stat

* open log for all cmds

* fit format

* fix(tianmu): fix Error result set of the IN subquery with semi join (#1764)

* doc(develop-guide): modify method for complie stonedb using docker

1. change the version of the stonedb from 5.6 to 5.7 in docs.
2. list both manual install and automatic install in docs.
3. update the reference in zh-doc to a valid one:
可以参考:[StoneDB快速部署手册](https://stonedb.io/zh/docs/getting-started/quick-deployment)
可以参考:[StoneDB快速部署手册](https://stonedb.io/zh/docs/quick-deployment)

* docs:add docker compile guide of stonedb8.0.(#1780)

* feature: remove DBUG_OFF and repalce DEBUG_ASSERT with assert

* automatically formatting

* fix: fix storage of DT type

* fix incorrect result of TIME type by distinguishing the processing of TIME type from other time types

* fix(tinmu): fix tianmu crash when set varchar to num when order by

* docs(website): update the documentation for Compile StoneDB 8.0 in Docker(#1823)

* fix(tianmu): fix up the incompatible type

1) In result value setup phase, it only deals with num, but in some case, some non-num types
involved, therefore, we should also deal with these types.

2) To fixup the boundary of the error codes.

* fix(tianmu): Fix up the unknown exception after instance killed randomly (#1841)

If the instance was killed by `kill -9 'pid'` randomly, the new inserted data will not be written into `DATA` file under
the param of `tianmu_insert_delayed` was set to 0. Under this configuration, the data will write to memory not a `DATA`
file. Therefore, when the instance was killed and restarted, the data will be lost, and the `DATA` can not be found, and
an TianmuError exception will be thrown.

changed the writing behavior of instance from writting data into memory to writting data into `DATA` file immediately as
that of `tianmu_insert_delayed=1`.

* fix(tianmu): fix up the incorrect meta-info leads unexpected behavior (#1840)

In `ColumnShare::scan_dpn`, it will throw an exception to identify the in-consistent meta-data,
which the offset violates the rules. Now, the deleted DPNs should not be added to `segs`.

And, some auxiliary functions are added for helping to identify the status of files.

* fix(workflow): nightly build failed #1830

[summary]
Currently we disable tar pkg in ci/cd.

* feat(tianmu): revert assert() --> debug_assert() #1551

[summary]
To avoid some cases of some assert failed in release mode.

* feat(tianmu): fixup the default delimeter for load data (#1843)

Tianmu default delimiter is ';' not '\t'. In order to follow the mysql convention,
we change the default delimeter to `\t`.

* fix(tianmu): revert PR #1841. (#1850)

Due to the disk space flattion, this PR is used to revert PR #1841. But this will lead to data in-consistent after the
instance killed at randomly because the new data inserted into memory, and will lost. The root cause pls ref to discussion
in #1621.

* fix(tianmu): fix up mtr test case for delim of load data command (#1854)

To fix up some MTR test cases because the delim of load data is changed from ; to \t.

* fix(tianmu): fix up the `group_concat` function in tianmu (#1852)

To allow `group_concat` function executed in tianmu, and Changes `SI` to `SpecialInstruction`.
Some exceptions are catched.

* fix(tianmu): To fixup the instance crashed if the result of aggregate function goes out of bounds (#1856)

To caculate `sum(length())` will lead a corruption in destructor of `ValueOrNull`, frees an array of
char. Before the array deletes, the validity of that should be checked, and after that the pointer of
that arrary should also be set to nullptr, which make sure it's a safe code piece.

* docs(developer-guide): update the compiling guide of stonedb 8.0 for centos7.x(#1817)

* fix(tianmu): Fixup the mem leakage of aggregation function

1: Fixup the memory leakage of aggregation function, which may lead to failed of malloc.
2: Re-impl the operator= of `ValueOrNull`.
3: Fixup the assertion of `dow_cast` in ` Query::ClearSubselectTransformation`, `Item_func_trig_cond`.

* fix(tianmu): fix UNION of non-matching columns (column no 0)

* test(tianmu): add order by sentence in the mtr case various_join.test

* test(mtr): add more test cases for tianmu(#1196)

[summary]
case_when.test
drop_restric.test
empty_string_not_null.test
left_right_func.test
like_not_like.test
multi_join.test
order_by.test
ssb_small.test
union_case.test

* test(mtr): add order by sentence in the mtr case various_join.test

* ci(codecov): update the config

* fix(tianmu): To suuport ignore option for update statement

To support `update ignore` statement. The logic of uniqueness check is re-implemented.

* ci(codecov): update the codecov congfig

* docs(intro): update the support for 8.0

* wokflow(codecov): Filter out excess code files

* workflow(coverage): Update the lcov running logic

* fix(tianmu): default value of the field take unaffect in load #1865

Cause:
  in the function ParsingStrategy::ParseResult ParsingStrategy::GetOneRow
field->val_str(str) cannot distinguish 0 and NULL value.
Solution:
  Check whether field's default value is NULL.

* fix(tianmu): To support union(all) the statement which is without from clause

1: To fixup unsupport union or union all a sql statement which is without from clause.
2: Re-format some codes and functions.

* fix(tianmu): To remove unnessary optimization in tianmu

1:Removes the unnessary optimization in stage of compiliation of tianmu. It doesnot have any helps for us.
and may introuduce unexepected behaviors.
2:Refine MTR: issue848, issue1865, alter_table1, issue1523

* fix(tianmu): hotfix corruption in ValueOrNull under multi-thread

In multi-thread aggregation, ExpressionColumn will occur double free due to without
protection. Thread A will do ValueOrNull::operator ==, but in thread B, it will try to
free it. Therefore, it leads to instance crash.

* fix(tianmu): incorrect result when using where expr and args > bigint_max #1564

[summary]
1. static_cast<int64_t>(18446744073709551601) = -15
2. Item will set 18446744073709551601 with unsigned flag, but in tianmu
transform to ValueOrNot, the value will be set to `-15`.
3. add `unsigned flag` in value_or_null & TianmuNum & tianmu expr.

* fix(tianmu): add TIME_to_ulonglong_time_round process and fix up precision loss problem (#1173)

When converting TIME/DATETIME to ulonglong numeric, tianmu engine does not take the
TIME_to_ulonglong_time_round process. This causes the results different from innodb.
Furthermore, when we close the tianmu_insert_delayed parameter and execute an insert SQL,
the TIME/DATETIME/TIMESTAMP type's data will loss precision due to incomplete attribute copying.

PR Close #1173

* fix(tianmu): fix format using clang-format #792

* feat: rm files after rebase leftover #1217

files deleted:
        storage/tianmu/core/rc_attr_typeinfo.h
        storage/tianmu/handler/tianmu_handler.cpp
        storage/tianmu/handler/tianmu_handler_com.cpp
        storage/tianmu/types/rc_data_types.cpp
        storage/tianmu/types/rc_num.cpp
        storage/tianmu/types/rc_num.h
        storage/tianmu/types/rc_value_object.cpp

* fix(sql,tianmu):fix when binlog format is row, the load data statement cannot be recorded(#1876)

1. Actually, tianmu uses its own code to handle load which lacks support of row format of binlog
2. When tianmu parsing rows,  write table map event first
3. Once tianmu constructs a row, just add it to the rows log event, when parsing is done,
the rows log event will also be ready, then write it to the binlog

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: LiMK <slibre@qq.com>
Co-authored-by: lihongjian <lihongjian@stoneatom.com>
Co-authored-by: shizhao <shizhao@stoneatom.com>
Co-authored-by: adofsauron <adofsauron@163.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: StoneAtom <98451811+stoneatomadmin@users.noreply.github.com>
Co-authored-by: zzzz-vincent <wenzishen.vincent@hotmail.com>
Co-authored-by: wisehead <alex.chenhui@gmail.com>
Co-authored-by: Agility6 <agility6@163.com>
Co-authored-by: Double0101 <double0101@foxmail.com>
Co-authored-by: dysprosium0626 <1119493091@qq.com>
Co-authored-by: augety <chenshengjiang@stoneatom.com>
Co-authored-by: xuxinqiang <xxq2933@163.com>
Co-authored-by: Jinrong Duan <duanjr02@gmail.com>
Co-authored-by: unknown <adofsauron>
Co-authored-by: hustjieke <gaoriyao1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bug Something isn't working prio: high High priority
Projects
Development

No branches or pull requests

1 participant