Skip to content

Commit

Permalink
Fix kafka produce codec (#10029)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksaveliev authored Oct 10, 2024
1 parent 47bedc0 commit 1738d8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ydb/core/kafka_proxy/actors/kafka_produce_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <ydb/core/persqueue/utils.h>
#include <ydb/core/protos/grpc_pq_old.pb.h>
#include <ydb/public/api/protos/draft/persqueue_common.pb.h>

namespace NKafka {

Expand Down Expand Up @@ -262,6 +263,7 @@ THolder<TEvPartitionWriter::TEvWriteRequest> Convert(const TProduceRequestData::

for (const auto& record : batch->Records) {
NKikimrPQClient::TDataChunk proto;
proto.set_codec(NPersQueueCommon::RAW);
for(auto& h : record.Headers) {
auto res = proto.AddMessageMeta();
if (h.Key) {
Expand Down

0 comments on commit 1738d8c

Please sign in to comment.