[MDEV-31456] main.opt_trace fails with view-protocol Created: 2023-06-11  Updated: 2023-06-11  Resolved: 2023-06-11

Status: Closed
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.5, 10.6, 10.9, 10.10
Fix Version/s: 10.4.31, 10.5.22, 10.6.15, 10.9.8, 10.10.6

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: not-10.11+


 Description   

10.5 b3074128

$ perl ./mtr main.opt_trace --mem --view-protocol
 
main.opt_trace                           [ fail ]
        Test ended at 2023-06-11 22:10:40
 
CURRENT_TEST: main.opt_trace
--- /mnt8t/bld/10.5-asan/mysql-test/main/opt_trace.result	2023-05-12 01:52:44.000000000 +0300
+++ /mnt8t/bld/10.5-asan/mysql-test/main/opt_trace.reject	2023-06-11 22:10:40.666720368 +0300
@@ -8911,31 +8911,7 @@
 ) as JS
 from information_schema.optimizer_trace;
 JS
-[
-    {
-        "considered_keys": 
-        [
-            {
-                "table_name": "t10",
-                "index": "grp_id",
-                "rec_per_key": 100,
-                "param_tables": 1
-            }
-        ],
-        "refills": 5,
-        "spl_pd_boundary": 2,
-        "split_plan_search": 
-        [],
-        "lead_table": "t10",
-        "index": "grp_id",
-        "parts": 1,
-        "split_sel": 0.001,
-        "cost": 2535.968504,
-        "records": 100,
-        "refills": 5,
-        "chosen": true
-    }
-]
+NULL
 drop table t1,t2,t3,t10,t11;
 set optimizer_trace=DEFAULT;
 #
 
mysqltest: Result length mismatch

Not reproducible on 10.11+.



 Comments   
Comment by Elena Stepanova [ 2023-06-11 ]

Apparently already fixed by
https://github.com/MariaDB/server/commit/131ef14a6e70eeaadf71f65e8463d59e30bf76c5

Generated at Thu Feb 08 10:24:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.