liutang123 edited a comment on issue #3294: Use read lock when iterate tablet_map in TabletManager::start_trash_sweep URL: https://github.com/apache/incubator-doris/pull/3294#issuecomment-612041189 > > By add logs, we found that `TabletManager::start_trash_sweep` will take write lock for a long time. > > How long? And after this PR applied, how long will it be? We set `tablet_map_shard_size` to 16, this function will holds each map lock about more than 1 second. After this PR, this function holds write lock less than 100 ms.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org