[MCOL-5169] mcsgetsqlcount shows wrong number of running sql statements Created: 2022-07-25  Updated: 2022-10-25

Status: Open
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: None
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Kirill Perov Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

CREATE DATABASE cal_test_db;
USE cal_test_db;
create table t1(a int, b int comment 'autoincrement=1') engine=columnstore;
select mcsflushcache();
select mcssettrace(0);
select mcssetparms("pmmaxmemorysmallside","2048000000");
select mcsgettrace();
select mcsgetversion()=calgetversion();
select mcsviewtablelock("t1");
select mcscleartablelock(0);
select mcslastinsertid("t1");
<show processlist; – for debug purposes>
select mcsgetsqlcount();
<show processlist; – for debug purposes>

should give: Running SQL statements 0, Waiting SQL statments 0
but sometime give: Running SQL statements 1, Waiting SQL statments 0

same time show processlist before and after doesn't show any process running:

Id User Host db Command Time State Info Progress
444 root localhost cal_test_db Query 0 starting show processlist 0.000
select mcsgetsqlcount();
mcsgetsqlcount()
Running SQL statements 1, Waiting SQL statments 0
show processlist;
Id User Host db Command Time State Info Progress
444 root localhost cal_test_db Query 0 starting show processlist 0.000



 Comments   
Comment by Kirill Perov [ 2022-07-25 ]

environment: columnstore develop, MDB 10.9, DroneCI, any OS

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