Skip to content

Commit f6cd127

Browse files
authored
YQ-3820 Shared reading: remove Y_ENSURE / add log message / to stable (#11351)
1 parent 07f9e3c commit f6cd127

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ydb/core/fq/libs/row_dispatcher/topic_session.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,10 +609,15 @@ void TTopicSession::SendData(TClientsInfo& info) {
609609
LOG_ROW_DISPATCHER_TRACE("Buffer empty");
610610
}
611611

612+
if (!info.NextMessageOffset) {
613+
LOG_ROW_DISPATCHER_ERROR("Try SendData() without NextMessageOffset, " << info.ReadActorId
614+
<< " unread " << info.UnreadBytes << " DataArrivedSent " << info.DataArrivedSent);
615+
return;
616+
}
617+
612618
do {
613619
auto event = std::make_unique<TEvRowDispatcher::TEvMessageBatch>();
614620
event->Record.SetPartitionId(PartitionId);
615-
Y_ENSURE(info.NextMessageOffset);
616621
event->ReadActorId = info.ReadActorId;
617622

618623
ui64 batchSize = 0;

0 commit comments

Comments
 (0)