Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed possible memory travel #16016

Merged
merged 1 commit into from
Mar 20, 2025
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
5 changes: 3 additions & 2 deletions ydb/core/persqueue/read_balancer__balancing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,13 +1079,14 @@ bool TConsumer::ProccessReadingFinished(ui32 partitionId, bool wasInactive, cons

void TConsumer::StartReading(ui32 partitionId, const TActorContext& ctx) {
if (!GetPartitionInfo(partitionId)) {
PQ_LOG_CRIT("start reading for deleted partition " << partitionId);
PQ_LOG_NOTICE("Reading of the partition " << partitionId << " was started by " << ConsumerName << " but partition has been deleted.");
return;
}

auto* partition = GetPartition(partitionId);
if (!partition) {
PQ_LOG_D("Reading of the partition " << partitionId << " was started by " << ConsumerName << ".");
PQ_LOG_NOTICE("Reading of the partition " << partitionId << " was started by " << ConsumerName << " but partition does not exist.");
return;
}

auto wasInactive = partition->IsInactive();
Expand Down
Loading