Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion be/src/olap/olap_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,8 @@ void StorageEngine::_update_replica_infos_callback() {

int start = 0;
int tablet_size = all_tablets.size();
while (start < tablet_size) {
// The while loop may take a long time, we should skip it when stop
while (start < tablet_size && _stop_background_threads_latch.count() > 0) {
int batch_size = std::min(100, tablet_size - start);
int end = start + batch_size;
TGetTabletReplicaInfosRequest request;
Expand Down