Open DanielZhangQD opened 2 months ago
fixed
To be verified
Failed in cloud dev:
mysql> explain analyze SELECT * FROM (select `statement`,system.statement_info.statement_id,IF(`status`='Running', TIMESTAMPDIFF(MICROSECOND,`request_at`,now())*1000, `duration`) AS `duration`,`status`,`query_type`,`request_at`,system.statement_info.response_at,`user`,`database`,`transaction_id`,`session_id`,`rows_read`,`bytes_scan`,`result_count`,IF(status = 'Running', NULL, CAST(IF(JSON_UNQUOTE(JSON_EXTRACT(stats, '$[0]')) >= 4, JSON_UNQUOTE(JSON_EXTRACT(stats, '$[8]')), mo_cu_v1(stats, duration)) AS DECIMAL(32,4))) AS `cu` from system.statement_info where 1=1 AND `request_at` >= '2024-08-02 04:34:40' AND `request_at` <= '2024-09-02 06:34:40' AND system.statement_info.account = '0191461f-1289-719e-83cc-633fb2c0293c' AND sql_source_type IN ('cloud_user_sql','external_sql') )t ORDER BY request_at DESC LIMIT 20;
ERROR 20101 (HY000): internal error: panic inconsistent refcnt count: -1:
github.com/matrixorigin/matrixone/pkg/fileservice/memorycache.(*refcnt).release
/go/src/github.com/matrixorigin/matrixone/pkg/fileservice/memorycache/refcnt.go:45
github.com/matrixorigin/matrixone/pkg/fileservice/memorycache.(*Data).Release
/go/src/github.com/matrixorigin/matrixone/pkg/fileservice/memorycache/data.go:84
github.com/matrixorigin/matrixone/pkg/fileservice/memorycache.NewCache.func3
/go/src/github.com/matrixorigin/matrixone/pkg/fileservi
To be verified
To be verified
Failed in cloud dev:
mysql> explain analyze SELECT * FROM (select `statement`,system.statement_info.statement_id,IF(`status`='Running', TIMESTAMPDIFF(MICROSECOND,`request_at`,now())*1000, `duration`) AS `duration`,`status`,`query_type`,`request_at`,system.statement_info.response_at,`user`,`database`,`transaction_id`,`session_id`,`rows_read`,`bytes_scan`,`result_count`,IF(status = 'Running', NULL, CAST(IF(JSON_UNQUOTE(JSON_EXTRACT(stats, '$[0]')) >= 4, JSON_UNQUOTE(JSON_EXTRACT(stats, '$[8]')), mo_cu_v1(stats, duration)) AS DECIMAL(32,4))) AS `cu` from system.statement_info where 1=1 AND `request_at` >= '2024-08-02 04:34:40' AND `request_at` <= '2024-09-02 06:34:40' AND system.statement_info.account = '0191461f-1289-719e-83cc-633fb2c0293c' AND sql_source_type IN ('cloud_user_sql','external_sql') )t ORDER BY request_at DESC LIMIT 20; ERROR 20101 (HY000): internal error: panic inconsistent refcnt count: -1: github.com/matrixorigin/matrixone/pkg/fileservice/memorycache.(*refcnt).release /go/src/github.com/matrixorigin/matrixone/pkg/fileservice/memorycache/refcnt.go:45 github.com/matrixorigin/matrixone/pkg/fileservice/memorycache.(*Data).Release /go/src/github.com/matrixorigin/matrixone/pkg/fileservice/memorycache/data.go:84 github.com/matrixorigin/matrixone/pkg/fileservice/memorycache.NewCache.func3 /go/src/github.com/matrixorigin/matrixone/pkg/fileservi
The query hangs in the latest commit.
数据分布不均匀 待查的目标账户查了五千万行才有五行 导致limit 20的优化不生效
需要修改ddl为clusterby account,requestat
等待修改ddl以后重测
等待修改ddl以后重测
等待在2.0环境上验证
testing
Is there an existing issue for the same bug?
Branch Name
1.2-dev
Commit ID
v1.2.2-d9b695823-2024-09-02
Other Environment Information
Actual Behavior
Expected Behavior
Query returns in reasonable time
Steps to Reproduce
Additional information
Cloud qa env