-
大量删除 Tablet 后导致 BE 建表慢
有如下堆栈:
tid: 4925
0x5ae583f rocksdb::MemTableIterator::key()
0x5afb41e rocksdb::FragmentedRangeTombstoneList::FragmentTombstones()
0x5afbc8f rocksdb::FragmentedRangeTombstoneList::FragmentedRangeTombstoneList()
0x5ae0376 rocksdb::MemTable::NewRangeTombstoneIterator()
0x5ae0654 rocksdb::MemTable::Get()
0x5a22f4f rocksdb::DBImpl::GetImpl()
0x5a23c41 rocksdb::DBImpl::Get()
0x45731cd starrocks::KVStore::get()
0x42e7655 starrocks::TabletMetaManager::get_persistent_index_meta()
0x433067b starrocks::TabletUpdates::get_pk_index_write_amp_score()
0x42cc631 starrocks::TabletManager::pick_tablets_to_do_pk_index_major_compaction()
0x4555c37 starrocks::PersistentIndexCompactionManager::schedule()
0x457c630 _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN9starrocks13StorageEngine16start_bg_threadsEvEUlvE5_EEEEE6_M_runEv
0x7eda630 execute_native_thread_routine
0x7f96359c5ea5 start_thread
0x7f96356ee8dd __clone
(nil) (unknown)
2 tids: 4844,4846
0x7f96359c939c __GI___pthread_rwlock_wrlock
0x42d63df starrocks::TabletManager::create_tablet()
0x42838af starrocks::StorageEngine::create_tablet()
0x2747291 starrocks::run_create_tablet_task()
0x4cc3e32 starrocks::ThreadPool::dispatch_thread()
0x4cbe8ca starrocks::Thread::supervise_thread()
0x7f96359c5ea5 start_thread
0x7f96356ee8dd __clone
(nil) (unknown)
- Github Issue:
- Github Fix PR:
- Jira
- 问题版本:
- 2.5.0 ~ 2.5.17
- 3.0.0 ~ 3.0.9
- 3.1.0 ~ 3.1.6
- 3.2.1 ~ 3.2.2
- 修复版本:
- 2.5.18+
- 3.0.10+
- 3.1.7+
- 3.2.3+
- 问题原因:
- 临时解决办法: