Commit 6416cd4
committed
[RP006] Reverts wrong changes for Adaptive Hash Index
Reverts BAD performance changes for AHI. The Bug #31750840 ADAPTIVE HASH INDEX(AHI) BUILDING CAUSING CONTENTION ON BTR_SEARCH_LATCHES Bug #33601434 InnoDB: AHI-related fields n_fields, n_bytes, left_side should be atomically set are basically wrong. Just intorducing performance regression of AHI... The AHI search is optimistic trial before normal b-tree search. If succeeds, can skip normal b-tree search. So, the most important for AHI performance is "turn-around time", has priority over "concurrent scale" or "search consistency", to minimize the trial overhead and basically limited concurrency of hash indexes. AHI limits concurrency for minimize each waiting time of "turn-around time", basically. But the BAD changes increased "turn-around time" much, and cannot get concurrency enogh than that. Just introducing regression in total. And AHI has enough result check at the end of search, and fail to search is acceptable. But the BAD changes introduced useless cosistency keeping and its overhead for "turn-around time". In addition, the BAD changes seem to contain bad code for some kinds of PGO build. Even non-AHI path, performance regression detected, lower throughput than normal build. Such no merit and only risky code should be eliminated. Reverts the followings whole as possible as we can. > commit 78e695d > Author: Marcin Babij <marcin.babij@oracle.com> > Date: Fri Apr 1 00:29:48 2022 +0200 > > Bug #31750840 ADAPTIVE HASH INDEX(AHI) BUILDING CAUSING CONTENTION ON BTR_SEARCH_LATCHES > commit d7114b1 > Author: Marcin Babij <marcin.babij@oracle.com> > Date: Fri Aug 12 17:01:16 2022 +0200 > > Bug #33601434 InnoDB: AHI-related fields n_fields, n_bytes, left_side should be atomically set and also reverted bug fix introduced by the above BAD changes. Because not needed now. > commit 1392643 > Author: Yasufumi Kinoshita <yasufumi.kinoshita@oracle.com> > Date: Mon Dec 12 16:26:57 2022 +0900 > > Bug#34544595: btr_search_hash_table_validate() has race condition with btr_search_disable() > commit 8c944fc > Author: Ramakrishnan Kamalakannan <ramakrishnan.kamalakannan@oracle.com> > Date: Fri Aug 18 08:49:34 2023 +0200 > > Bug#35037114 Server crash in old_index != nullptr at my_server_abort1 parent 3e95fbb commit 6416cd4
File tree
46 files changed
+1873
-2058
lines changed- mysql-test/suite/innodb
- r
- t
- storage/innobase
- btr
- buf
- dict
- gis
- handler
- ha
- ibuf
- include
- detail/ut
- mem
- page
- rem
- row
- srv
- sync
- unittest/gunit/innodb
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+1873
-2058
lines changedLines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6075 | 6075 | | |
6076 | 6076 | | |
6077 | 6077 | | |
6078 | | - | |
6079 | | - | |
| 6078 | + | |
| 6079 | + | |
6080 | 6080 | | |
6081 | 6081 | | |
6082 | 6082 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
1555 | | - | |
| 1555 | + | |
1556 | 1556 | | |
1557 | 1557 | | |
1558 | 1558 | | |
| |||
2508 | 2508 | | |
2509 | 2509 | | |
2510 | 2510 | | |
2511 | | - | |
| 2511 | + | |
2512 | 2512 | | |
2513 | 2513 | | |
2514 | 2514 | | |
| |||
2549 | 2549 | | |
2550 | 2550 | | |
2551 | 2551 | | |
2552 | | - | |
| 2552 | + | |
2553 | 2553 | | |
2554 | 2554 | | |
2555 | 2555 | | |
| |||
2936 | 2936 | | |
2937 | 2937 | | |
2938 | 2938 | | |
2939 | | - | |
| 2939 | + | |
2940 | 2940 | | |
2941 | 2941 | | |
2942 | 2942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
| 691 | + | |
691 | 692 | | |
692 | 693 | | |
693 | 694 | | |
| |||
770 | 771 | | |
771 | 772 | | |
772 | 773 | | |
| 774 | + | |
| 775 | + | |
773 | 776 | | |
774 | 777 | | |
775 | 778 | | |
776 | 779 | | |
777 | 780 | | |
778 | 781 | | |
779 | | - | |
| 782 | + | |
780 | 783 | | |
781 | 784 | | |
782 | 785 | | |
| |||
786 | 789 | | |
787 | 790 | | |
788 | 791 | | |
789 | | - | |
| 792 | + | |
790 | 793 | | |
791 | 794 | | |
792 | 795 | | |
| |||
958 | 961 | | |
959 | 962 | | |
960 | 963 | | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
965 | 968 | | |
966 | 969 | | |
967 | 970 | | |
| |||
1130 | 1133 | | |
1131 | 1134 | | |
1132 | 1135 | | |
1133 | | - | |
| 1136 | + | |
1134 | 1137 | | |
1135 | 1138 | | |
1136 | 1139 | | |
| |||
1657 | 1660 | | |
1658 | 1661 | | |
1659 | 1662 | | |
1660 | | - | |
| 1663 | + | |
1661 | 1664 | | |
1662 | 1665 | | |
1663 | 1666 | | |
| |||
3337 | 3340 | | |
3338 | 3341 | | |
3339 | 3342 | | |
| 3343 | + | |
3340 | 3344 | | |
3341 | 3345 | | |
3342 | 3346 | | |
| |||
3394 | 3398 | | |
3395 | 3399 | | |
3396 | 3400 | | |
3397 | | - | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
3398 | 3404 | | |
3399 | 3405 | | |
3400 | 3406 | | |
| |||
3409 | 3415 | | |
3410 | 3416 | | |
3411 | 3417 | | |
| 3418 | + | |
| 3419 | + | |
3412 | 3420 | | |
3413 | 3421 | | |
3414 | | - | |
| 3422 | + | |
3415 | 3423 | | |
3416 | 3424 | | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
3417 | 3429 | | |
3418 | 3430 | | |
3419 | 3431 | | |
| |||
0 commit comments