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 @@ -393,6 +393,24 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
393
393
AssertMessageMeta (readMessage, headerKey, headerValue);
394
394
}
395
395
396
+ // send empty produce message
397
+ {
398
+ TKafkaRecordBatch batch;
399
+ batch.BaseOffset = 3 ;
400
+ batch.BaseSequence = 5 ;
401
+ batch.Magic = 2 ; // Current supported
402
+ batch.Records .resize (1 );
403
+ batch.Records [0 ].Key = TKafkaBytes{};
404
+ batch.Records [0 ].Value = TKafkaBytes{};
405
+
406
+ auto msg = client.Produce (topicName, 0 , batch);
407
+
408
+ UNIT_ASSERT_VALUES_EQUAL (msg->Responses [0 ].Name , topicName);
409
+ UNIT_ASSERT_VALUES_EQUAL (msg->Responses [0 ].PartitionResponses [0 ].Index , 0 );
410
+ UNIT_ASSERT_VALUES_EQUAL (msg->Responses [0 ].PartitionResponses [0 ].ErrorCode ,
411
+ static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
412
+ }
413
+
396
414
{
397
415
// Check short topic name
398
416
You can’t perform that action at this time.
0 commit comments