-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LOGBROKER-8894 enable minSeqNo save in partition #1654
Conversation
⚪
|
⚪
|
@@ -327,13 +327,13 @@ void TPartition::AnswerCurrentWrites(const TActorContext& ctx) { | |||
if (it == SourceIdStorage.GetInMemorySourceIds().end()) { | |||
Y_ABORT_UNLESS(!writeResponse.Msg.HeartbeatVersion); | |||
TabletCounters.Cumulative()[COUNTER_PQ_SID_CREATED].Increment(1); | |||
SourceIdStorage.RegisterSourceId(s, seqNo, offset, CurrentTimestamp); | |||
SourceIdStorage.RegisterSourceId(s, seqNo, 0, offset, CurrentTimestamp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я правильно понимаю, что это первая операция записи для неизвестного SourceId
? Если это так, то MinSeqNo
должно быть равно seqNo
ydb/core/persqueue/sourceid.cpp
Outdated
auto copy = *this; | ||
copy.SeqNo = seqNo; | ||
if (minSeqNo) { | ||
copy.MinSeqNo = minSeqNo; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А здесь должно быть MinSeqNo? Оно сохраняется один раз при первой операции записи и не меняется.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это на случай, если оно нулём инициализировано, а потом у нас через это копирование Update происходит.
⚪
|
⚪
|
No description provided.