Skip to content

Commit

Permalink
fix pipe retryies
Browse files Browse the repository at this point in the history
  • Loading branch information
nshestakov committed Feb 22, 2024
1 parent 8ab8af7 commit 270e2da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ydb/core/persqueue/read_balancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ TActorId TPersQueueReadBalancer::GetPipeClient(const ui64 tabletId, const TActor

auto it = TabletPipes.find(tabletId);
if (it == TabletPipes.end()) {
NTabletPipe::TClientConfig clientConfig;
NTabletPipe::TClientConfig clientConfig(NTabletPipe::TClientRetryPolicy::WithRetries());
pipeClient = ctx.RegisterWithSameMailbox(NTabletPipe::CreateClient(ctx.SelfID, tabletId, clientConfig));
TabletPipes[tabletId].PipeActor = pipeClient;
auto res = PipesRequested.insert(tabletId);
Expand All @@ -758,6 +758,7 @@ void TPersQueueReadBalancer::RequestTabletIfNeeded(const ui64 tabletId, const TA
NTabletPipe::SendData(ctx, pipeClient, new NSchemeShard::TEvSchemeShard::TEvDescribeScheme(tabletId, PathId));
} else {
TActorId pipeClient = GetPipeClient(tabletId, ctx);

auto it = AggregatedStats.Cookies.find(tabletId);
if (!pipeReconnected || it != AggregatedStats.Cookies.end()) {
ui64 cookie;
Expand All @@ -772,6 +773,7 @@ void TPersQueueReadBalancer::RequestTabletIfNeeded(const ui64 tabletId, const TA
TStringBuilder() << "Send TEvPersQueue::TEvStatus TabletId: " << tabletId << " Cookie: " << cookie);
NTabletPipe::SendData(ctx, pipeClient, new TEvPersQueue::TEvStatus("", true), cookie);
}

NTabletPipe::SendData(ctx, pipeClient, new TEvPQ::TEvSubDomainStatus(SubDomainOutOfSpace));
}
}
Expand Down

0 comments on commit 270e2da

Please sign in to comment.