[MDEV-17877] Hitting Bug while adding new partitions to the table on MariaDB Galera Cluster 10.2 Created: 2018-11-29 Updated: 2019-04-15 Resolved: 2019-04-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.2.16 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | crash, galera, innodb | ||
| Environment: |
10.2.16-MariaDB-10.2.16+maria~trusty-log |
||
| Issue Links: |
|
||||||||
| Description |
|
Galera Cluster node crashes while adding new partitions to the table with more than 250 partitions. We have scheduled event which is running procedure for automatically adding new partitions. Problem is experienced on Mariadb Galera Cluster 10.0.34 and 10.2.16 versions. We have three more tables with more than 150 partitions and same procedure for adding new partitions and everything works without any problems. Trace: 2018-11-25 18:00:52 139643177436928 [Warning] Sort aborted, host: 10.4.0.8, user: my_user, thread: 166381, query: select missioneve0_.id as id2_23_, missioneve0_.channel as channel3_23_, missioneve0_.created_at as created_4_23_, missioneve0_.event_type as event_ty5_23_, missioneve0_.extra_data as extra_da6_23_, missioneve0_.id_message as id_messa7_23_, missioneve0_.tracking_id as tracking8_23_, missioneve0_.id_user as id_user9_23_, missioneve0_.id_mission as id_miss10_23_, missioneve0_.uuid_user as uuid_us11_23_, missioneve0_.discriminator as discrimi1_23_ from touchpoint_event_log missioneve0_ left outer join missions missionent1_ on missioneve0_.id_mission=missionent1_.id where missioneve0_.discriminator in (2, 3) and missioneve0_.event_type='testMission' and missionent1_.id=137734 and missioneve0_.created_at>'2018-10-25 18:00:52' order by missioneve0_.created_at desc To report this bug, see https://mariadb.com/kb/en/reporting-bugs We will try our best to scrape up some info that will hopefully help Server version: 10.2.16-MariaDB-10.2.16+maria~trusty-log Thread pointer: 0x7f00b8000a88 Trying to get some variables. Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains We think the query pointer is invalid, but we will try to print it anyway. |
| Comments |
| Comment by Elena Stepanova [ 2018-12-07 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The crash appears to happen upon SELECT which is run separately, not from inside a stored procedure. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko [ 2018-12-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Elena, Yes, crash happens upon SELECT which is run separately. Table definition (I have obfuscated some fields): CREATE TABLE `tel` ( Regards, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko [ 2018-12-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello, I don't know if it helps... Also, when I call procedure manually it is executed most of the times without any problem. Regards, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2018-12-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I think it might be the same problem as | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2018-12-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
varun, after | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko [ 2019-01-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Elena, I have added specified optimizer switch to the procedure which is used for adding partitions. Below is the error... I have excluded mentined query but it is similar to the query which i sent in initial post of this thread. Error:
Regards, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-03-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sutic can you check if your issue is fixed in MariaDB 10.2.22 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko [ 2019-03-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello, We have patched MariaDB to 10.2.22 and will let you know if we expirience error while automatically adding new partitions. Regards, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko [ 2019-03-29 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Varun, it looks like the issue is fixed on 10.2.22. I think this ticket should be closed. Regards, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Varun Gupta (Inactive) [ 2019-04-11 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is fixed by | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko [ 2019-04-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Varun, we are now occasionally receiving error "[ERROR] Got error 128 when reading table..." on one of the nodes. Can you please explain how can we trace this issue? Thanks, |