File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class TKafkaRecord: public TMessage {
165
165
166
166
static constexpr TKafkaVersions PresentVersions = VersionsAlways;
167
167
static constexpr TKafkaVersions TaggedVersions = VersionsNever;
168
- static constexpr TKafkaVersions NullableVersions = VersionsNever ;
168
+ static constexpr TKafkaVersions NullableVersions = VersionsAlways ;
169
169
static constexpr TKafkaVersions FlexibleVersions = VersionsAlways;
170
170
};
171
171
ValueMeta::Type Value;
Original file line number Diff line number Diff line change @@ -568,6 +568,24 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
568
568
AssertMessageMeta (readMessage, headerKey, headerValue);
569
569
}
570
570
571
+ // send empty produce message
572
+ {
573
+ TKafkaRecordBatch batch;
574
+ batch.BaseOffset = 3 ;
575
+ batch.BaseSequence = 5 ;
576
+ batch.Magic = 2 ; // Current supported
577
+ batch.Records .resize (1 );
578
+ batch.Records [0 ].Key = TKafkaBytes{};
579
+ batch.Records [0 ].Value = TKafkaBytes{};
580
+
581
+ auto msg = client.Produce (topicName, 0 , batch);
582
+
583
+ UNIT_ASSERT_VALUES_EQUAL (msg->Responses [0 ].Name , topicName);
584
+ UNIT_ASSERT_VALUES_EQUAL (msg->Responses [0 ].PartitionResponses [0 ].Index , 0 );
585
+ UNIT_ASSERT_VALUES_EQUAL (msg->Responses [0 ].PartitionResponses [0 ].ErrorCode ,
586
+ static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
587
+ }
588
+
571
589
{
572
590
// Check short topic name
573
591
You can’t perform that action at this time.
0 commit comments