Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions ydb/core/kafka_proxy/actors/kafka_produce_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ THolder<TEvPartitionWriter::TEvWriteRequest> Convert(const TProduceRequestData::
w->SetUncompressedSize(record.Value ? record.Value->size() : 0);
w->SetClientDC(clientDC);
w->SetIgnoreQuotaDeadline(true);
w->SetExternalOperation(true);

totalSize += record.Value ? record.Value->size() : 0;
}
Expand Down
3 changes: 2 additions & 1 deletion ydb/core/persqueue/fetch_request_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ struct TEvPrivate {
read->SetTimeoutMs(0);
read->SetBytes(Min<ui32>(maxBytes, FetchRequestBytesLeft));
read->SetReadTimestampMs(readTimestampMs);
read->SetExternalOperation(true);
NTabletPipe::SendData(ctx, jt->second.PipeClient, preq.Release());
}

Expand Down Expand Up @@ -479,7 +480,7 @@ struct TEvPrivate {
SetMeteringMode(it->second.PQInfo->Description.GetPQTabletConfig().GetMeteringMode());

if (IsQuotaRequired()) {
PendingQuotaAmount = CalcRuConsumption(GetPayloadSize(record));
PendingQuotaAmount = 1 + CalcRuConsumption(GetPayloadSize(record));
RequestDataQuota(PendingQuotaAmount, ctx);
} else {
ProceedFetchRequest(ctx);
Expand Down