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
6 changes: 5 additions & 1 deletion be/src/olap/storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,11 @@ bool StorageEngine::get_peers_replica_backends(int64_t tablet_id, std::vector<TB
std::unique_lock<std::mutex> lock(_peer_replica_infos_mutex);
if (result.tablet_replica_infos.contains(tablet_id)) {
std::vector<TReplicaInfo> reps = result.tablet_replica_infos[tablet_id];
DCHECK_NE(reps.size(), 0);
if (reps.empty()) [[unlikely]] {
VLOG_DEBUG << "get_peers_replica_backends reps is empty, maybe this tablet is in "
"schema change. Go to FE to see more info. Tablet id: "
<< tablet_id;
}
for (const auto& rep : reps) {
if (rep.replica_id != tablet->replica_id()) {
TBackend backend;
Expand Down
Loading