xy720 opened a new pull request, #39807: URL: https://github.com/apache/doris/pull/39807
## Proposed changes Issue Number: this pr will pick part of #35457 to reduce the potential of dead lock with following example: 时间点 | create table线程1 | create table线程2 | table stat线程 | truncate线程 -- | -- | -- | -- | -- t1 | 获取表1的read lock | | | t2 | | 获取表2的read lock | | t3 | | | 尝试获取表1的write lock,被阻塞 | t4 | | | | 尝试获取表2的write lock,被阻塞 t5 | 尝试获取表2的read lock,由于前面有线程尝试获取表2的write lock,被迫排队 | | | t6 | | 尝试获取表1的read lock,由于前面有线程尝试获取表1的write lock,被迫排队 | | This PR places the updates of table statistics(such as data size/replica count) in the Table Stats Thread to be done on a scheduled basis, so that there is no need to add a read lock when obtaining table statistics. <!--Describe your changes.--> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org