TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
When doing some tests, we met a case where the slow query items in the slow log are not ordered by time. This is in contradiction with the assumptions in the slow_query system table logic.
This makes queries like select xxx from slow_query where time = xxx return an empty result when there're slow query items satisfying the condition in fact.
The slow log file is attached below and is not manually modified. We need to investigate why this happened and how to avoid this.
Enhancement
When doing some tests, we met a case where the slow query items in the slow log are not ordered by time. This is in contradiction with the assumptions in the slow_query system table logic.
This makes queries like
select xxx from slow_query where time = xxx
return an empty result when there're slow query items satisfying the condition in fact.The slow log file is attached below and is not manually modified. We need to investigate why this happened and how to avoid this.
tidb_slow_query.log