Skip to content

Commit

Permalink
fix build after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kardymonds committed Dec 4, 2024
1 parent 6a01338 commit 803c079
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ydb/core/fq/libs/row_dispatcher/row_dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ void TRowDispatcher::Handle(NFq::TEvRowDispatcher::TEvStartSession::TPtr& ev) {
source.GetDatabase(),
Config,
SelfId(),
CompileServiceActorId,
partitionId,
YqSharedResources->UserSpaceYdbDriver,
CreateCredentialsProviderFactoryForStructuredToken(
Expand Down
6 changes: 4 additions & 2 deletions ydb/core/fq/libs/row_dispatcher/topic_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,10 @@ bool HasJsonColumns(const NYql::NPq::NProto::TDqPqTopicSource& sourceParams) {

void TTopicSession::StartClientSession(TClientsInfo& info) {
if (ReadSession) {
if (info.Settings.HasOffset() && info.Settings.GetOffset() <= LastMessageOffset) {
LOG_ROW_DISPATCHER_INFO("New client has less offset (" << info.Settings.GetOffset() << ") than the last message (" << LastMessageOffset << "), stop (restart) topic session");
auto offset = GetOffset(info.Settings);

if (offset && (offset <= LastMessageOffset)) {
LOG_ROW_DISPATCHER_INFO("New client has less offset (" << offset << ") than the last message (" << LastMessageOffset << "), stop (restart) topic session");
Metrics.RestartSessionByOffsets->Inc();
++RestartSessionByOffsets;
info.RestartSessionByOffsetsByQuery->Inc();
Expand Down

0 comments on commit 803c079

Please sign in to comment.