[MDEV-27421] ./mtr --ps-protocol main.opt_trace fails to produce some traces Created: 2022-01-04  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Tests
Affects Version/s: 10.6, 10.7, 10.8
Fix Version/s: 10.6

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Michael Widenius
Resolution: Unresolved Votes: 0
Labels: None


 Description   

The recently added optimizer_trace option fails to produce any output for two EXPLAIN statements in 10.6, 10.7, 10.8. In 10.4 and 10.5, it works fine. The following change will ensure that the optimizer trace output is generated.

diff --git a/mysql-test/main/opt_trace.test b/mysql-test/main/opt_trace.test
index 2077422fa1b..a516c2891a2 100644
--- a/mysql-test/main/opt_trace.test
+++ b/mysql-test/main/opt_trace.test
@@ -48,12 +48,14 @@ create view v1 as select a from t1 group by b;
 create view v2 as select a from t2;
 
 --echo # Mergeable view
+--disable_ps_protocol
 --optimizer_trace
 explain select * from v2 ;
 
 --echo # Non-Mergeable view
 --optimizer_trace
 explain select * from v1 ;
+--enable_ps_protocol
 drop table t1,t2;
 drop view v1,v2;
 


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