liutang123 opened a new issue #6320:
URL: https://github.com/apache/incubator-doris/issues/6320
1. `StorageEngine::_delete_tablets_on_unused_root_path` will try to obtain
tablet shard write lock in `TabletManager`
```
StorageEngine::_delete_tablets_on_unused_root_path
TabletManager::drop_tablets_on_error_root_path
obtain each tablet shard's write lock
```
2. `TabletManager::build_all_report_tablets_info` and other methods will
obtain tablet shard read lock frequently.
So, `StorageEngine::_delete_tablets_on_unused_root_path` will hold
`_store_lock` for a long time.
This will make it difficult for other threads to get write `_store_lock`,
such as `StorageEngine::get_stores_for_create_tablet`
`drop_tablets_on_error_root_path` is a small probability event,
`TabletManager::drop_tablets_on_error_root_path` should return when its param
`tablet_info_vec` is empty
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]