Skip to content
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

Closed
wants to merge 0 commits into from

Conversation

FloatingCrowbar
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Feb 7, 2024

2024-02-07 09:14:46 UTC Pre-commit check for c0ad227 has started.
2024-02-07 09:14:49 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-02-07 09:48:59 UTC Build successful.
2024-02-07 09:49:16 UTC Tests are running...
🔴 2024-02-07 11:14:16 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
58936 49628 0 4 9280 24

Copy link

github-actions bot commented Feb 7, 2024

2024-02-07 09:16:57 UTC Pre-commit check for c0ad227 has started.
2024-02-07 09:17:00 UTC Build linux-x86_64-release-asan is running...
🟢 2024-02-07 09:55:24 UTC Build successful.
2024-02-07 09:55:37 UTC Tests are running...
🔴 2024-02-07 11:34:57 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14564 14438 0 24 61 41

@@ -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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я правильно понимаю, что это первая операция записи для неизвестного SourceId? Если это так, то MinSeqNo должно быть равно seqNo

auto copy = *this;
copy.SeqNo = seqNo;
if (minSeqNo) {
copy.MinSeqNo = minSeqNo;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А здесь должно быть MinSeqNo? Оно сохраняется один раз при первой операции записи и не меняется.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это на случай, если оно нулём инициализировано, а потом у нас через это копирование Update происходит.

Copy link

github-actions bot commented Feb 9, 2024

2024-02-09 10:21:25 UTC Pre-commit check for 94b2e0c has started.
2024-02-09 10:21:28 UTC Build linux-x86_64-release-asan is running...
🟢 2024-02-09 11:00:07 UTC Build successful.
2024-02-09 11:00:21 UTC Tests are running...
🔴 2024-02-09 12:37:54 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14738 14558 0 18 121 41

Copy link

github-actions bot commented Feb 9, 2024

2024-02-09 10:21:31 UTC Pre-commit check for 94b2e0c has started.
2024-02-09 10:21:34 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-02-09 11:05:46 UTC Build successful.
2024-02-09 11:07:48 UTC Tests are running...
🔴 2024-02-09 12:41:28 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
67409 56465 0 1 10892 51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants