[MDEV-14209] innodb_gis.rtree_debug and innodb_gis.rtree_split produce huge server error logs Created: 2017-10-29  Updated: 2018-01-29  Resolved: 2018-01-29

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.2
Fix Version/s: 10.2.13, 10.3.5

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-13942 Potential InnoDB SPATIAL INDEX corrup... Closed
relates to MDEV-14207 innodb_gis.rtree_compress, innodb_gis... Closed

 Description   

Due to a couple of gis tests, the test run produces a server error log over 2G:
http://buildbot.askmonty.org/buildbot/builders/kvm-fulltest2-big/builds/1362

Main culprits are innodb_gis.rtree_debug and innodb_gis.rtree_split

grep -n CURRENT_TEST /data/tmp/mysqld.1.err.1 
58:CURRENT_TEST: rpl.rpl_mixed_drop_create_temp_table
...
3439:CURRENT_TEST: innodb_gis.multi_pk
3445:CURRENT_TEST: innodb_gis.rtree_compress
3446:CURRENT_TEST: innodb_gis.rtree_compress
3496:CURRENT_TEST: innodb_gis.rtree_compress2
3546:CURRENT_TEST: innodb_gis.rtree_compress2
3596:CURRENT_TEST: innodb_gis.rtree_debug
6443592:CURRENT_TEST: innodb_gis.rtree_purge
6443593:CURRENT_TEST: innodb_gis.rtree_purge
6443643:CURRENT_TEST: innodb_gis.rtree_rollback1
6443695:CURRENT_TEST: innodb_gis.rtree_rollback2
6443697:CURRENT_TEST: innodb_gis.rtree_split
17880210:CURRENT_TEST: innodb_gis.rtree_split
29316639:CURRENT_TEST: maria.max_length
29316697:CURRENT_TEST: main.sum_distinct-big



 Comments   
Comment by Marko Mäkelä [ 2017-10-30 ]

The tests should really measure the index sizes in pages (see innodb.instant_alter in 10.3) and only do a small number of page splits.

Also, we need a test that demonstrably covers the MDEV-13942 case (unsafe memory access during spatial index root page split).

Comment by Marko Mäkelä [ 2018-01-29 ]

I took the time to fix this in 10.2 and similar tests in 5.5 and 10.0.

Generated at Thu Feb 08 08:11:47 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.