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

Commit for autopartitioned topics #11629

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

niksaveliev
Copy link
Collaborator

@niksaveliev niksaveliev commented Nov 14, 2024

Changelog entry

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

...

Copy link

github-actions bot commented Nov 14, 2024

2024-11-14 22:16:04 UTC Pre-commit check linux-x86_64-release-asan for 36b6f16 has started.
2024-11-14 22:16:29 UTC Artifacts will be uploaded here
2024-11-14 22:19:57 UTC ya make is running...
🔴 2024-11-14 22:41:21 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Nov 14, 2024

2024-11-14 22:17:30 UTC Pre-commit check linux-x86_64-relwithdebinfo for 36b6f16 has started.
2024-11-14 22:17:40 UTC Artifacts will be uploaded here
2024-11-14 22:21:02 UTC ya make is running...
🔴 2024-11-14 22:34:33 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Nov 15, 2024

2024-11-15 00:43:03 UTC Pre-commit check linux-x86_64-release-asan for 94dc75b has started.
2024-11-15 00:43:15 UTC Artifacts will be uploaded here
2024-11-15 00:46:38 UTC ya make is running...
2024-11-15 00:50:31 UTC Check cancelled

Copy link

github-actions bot commented Nov 15, 2024

2024-11-15 00:45:20 UTC Pre-commit check linux-x86_64-relwithdebinfo for 94dc75b has started.
2024-11-15 00:45:32 UTC Artifacts will be uploaded here
2024-11-15 00:48:53 UTC ya make is running...
2024-11-15 00:50:30 UTC Check cancelled

Copy link

github-actions bot commented Nov 15, 2024

2024-11-15 00:54:26 UTC Pre-commit check linux-x86_64-relwithdebinfo for 7500205 has started.
2024-11-15 00:54:37 UTC Artifacts will be uploaded here
2024-11-15 00:57:57 UTC ya make is running...
🔴 2024-11-15 01:18:09 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Nov 15, 2024

2024-11-15 00:54:28 UTC Pre-commit check linux-x86_64-release-asan for 7500205 has started.
2024-11-15 00:54:38 UTC Artifacts will be uploaded here
2024-11-15 00:58:05 UTC ya make is running...
🔴 2024-11-15 01:10:36 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Nov 15, 2024

2024-11-15 07:10:06 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0e1b15f has started.
2024-11-15 07:10:17 UTC Artifacts will be uploaded here
2024-11-15 07:13:37 UTC ya make is running...
🔴 2024-11-15 07:22:31 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Nov 15, 2024

2024-11-15 07:10:08 UTC Pre-commit check linux-x86_64-release-asan for 0e1b15f has started.
2024-11-15 07:10:18 UTC Artifacts will be uploaded here
2024-11-15 07:13:39 UTC ya make is running...
🔴 2024-11-15 07:21:55 UTC Build failed, see the logs. Also see fail summary

}

void TConsumerOperations::AddOperation(const TString& consumer, const Ydb::Topic::OffsetsRange& range)
bool TConsumerOperations::GetOnlyCheckCommitedToFinish() const
Copy link
Collaborator

Choose a reason for hiding this comment

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

почему Only? разве нельзя закомитить позицию по родительской партиции и заодно проверить этот предикат и отправить его в дочернюю?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

можно, но это поле в рамках одной партиции. По конкретной партиции мы же либо двигаем оффсеты, либо чекаем предикат?

const NKikimrKqp::TTopicOperationsRequest_TopicOffsets_PartitionOffsets_OffsetsRange& range,
bool forceCommit,
bool killReadSession,
bool onlyCheckCommitedToFinish)
Copy link
Collaborator

Choose a reason for hiding this comment

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

CommittedToFinish...у нас разве так назвается? FullyProcesed может? Это значит и комит по конец, и факт закрытия партиции на запись

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

В доке так, да. CommittedToFinishAndClosed может тогда? Длинное, зато понятное

Copy link
Collaborator

Choose a reason for hiding this comment

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

CommittedToEndOfClosed

ydb/core/persqueue/partition.cpp Outdated Show resolved Hide resolved
ydb/core/persqueue/partition.cpp Outdated Show resolved Hide resolved
ok = false;
}
} else {
if (!operation.GetForceCommit() && operation.GetCommitOffsetsBegin() > operation.GetCommitOffsetsEnd()) { // savnik check default
Copy link
Collaborator

Choose a reason for hiding this comment

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

HasForceCommit не проверяешь. Выше проверяешь и Has. Может и выше не надо Has?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

чекну


userInfo.Offset = operation.GetEnd();
if (operation.GetKillReadSession()) { // savnik check default
userInfo.Session = "";
Copy link
Collaborator

Choose a reason for hiding this comment

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

в точечном коммите до твоих изменений только это происходит?

Copy link
Collaborator

Choose a reason for hiding this comment

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

И важно это делать после персиста, а не при обработке запроса. ТУт еще предикаты от соседей не получены, не факт что транзакцию закомитят

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

да, в точечном так же.
По поводу "после персиста" - смотрю

ydb/services/persqueue_v1/actors/commit_offset_actor.cpp Outdated Show resolved Hide resolved
commits.push_back(commit);
}

TKqpHelper::TCommitInfo commit {.PartitionId = partitionNode->Id, .Offset = commitRequest->Getoffset()};
Copy link
Collaborator

Choose a reason for hiding this comment

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

а всякие там проверки не надо делать? Что там докомичен родитель до конца? Пусть будет полноценная операция, с проверками тоже!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

А зачем она тут? Это точечный коммит. Тут же можно ничего не проверять, только оффсеты правильно расставить в поддереве и у родителей. Или я не понял

Copy link
Collaborator

Choose a reason for hiding this comment

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

Можно не проверять. Если бага нет в формировании запроса. А если есть? Если ты про EndOffset неправильно узнал?

ydb/core/persqueue/partition.cpp Show resolved Hide resolved
Copy link

github-actions bot commented Nov 18, 2024

2024-11-18 11:41:37 UTC Pre-commit check linux-x86_64-relwithdebinfo for 8097409 has started.
2024-11-18 11:41:48 UTC Artifacts will be uploaded here
2024-11-18 11:45:20 UTC ya make is running...
🟡 2024-11-18 13:16:12 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41885 36207 0 5 5560 113

2024-11-18 13:19:59 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-11-18 13:37:08 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
116 (only retried tests) 7 0 1 0 108

2024-11-18 13:37:18 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-11-18 13:48:41 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
109 (only retried tests) 1 0 1 0 107

🟢 2024-11-18 13:48:49 UTC Build successful.
🟡 2024-11-18 13:49:09 UTC ydbd size 2.5 GiB changed* by +323.2 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 2b91145 merge: 8097409 diff diff %
ydbd size 2 683 609 792 Bytes 2 683 940 728 Bytes +323.2 KiB +0.012%
ydbd stripped size 481 062 000 Bytes 481 100 336 Bytes +37.4 KiB +0.008%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Nov 18, 2024

2024-11-18 11:41:47 UTC Pre-commit check linux-x86_64-release-asan for 8097409 has started.
2024-11-18 11:41:57 UTC Artifacts will be uploaded here
2024-11-18 11:45:19 UTC ya make is running...
🟡 2024-11-18 13:19:43 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10473 10400 0 20 7 46

🟢 2024-11-18 13:20:37 UTC Build successful.
🟡 2024-11-18 13:21:07 UTC ydbd size 4.9 GiB changed* by +604.3 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 2b91145 merge: 8097409 diff diff %
ydbd size 5 259 415 704 Bytes 5 260 034 512 Bytes +604.3 KiB +0.012%
ydbd stripped size 1 351 036 016 Bytes 1 351 159 056 Bytes +120.2 KiB +0.009%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

if (record.GetYdbStatus() != Ydb::StatusIds::SUCCESS) { // savnik finish this part!
Ydb::Topic::CommitOffsetResult result;
Request().SendResult(result, record.GetYdbStatus());
Die(ctx);
Copy link
Collaborator

Choose a reason for hiding this comment

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

return

if (step == TKqpHelper::ECurrentStep::DONE) {
Ydb::Topic::CommitOffsetResult result;
Request().SendResult(result, Ydb::StatusIds::SUCCESS);
Die(ctx);
Copy link
Collaborator

Choose a reason for hiding this comment

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

return

Copy link

github-actions bot commented Nov 27, 2024

2024-11-27 00:19:19 UTC Pre-commit check linux-x86_64-relwithdebinfo for 7edc749 has started.
2024-11-27 00:19:30 UTC Artifacts will be uploaded here
2024-11-27 00:22:46 UTC ya make is running...
🟡 2024-11-27 01:48:03 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
32584 29675 0 74 2719 116

2024-11-27 01:50:43 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-11-27 02:02:42 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
888 (only retried tests) 705 0 73 0 110

2024-11-27 02:02:54 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-11-27 02:14:33 UTC Some tests failed, follow the links below.

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
830 (only retried tests) 649 0 73 0 108

🟢 2024-11-27 02:14:43 UTC Build successful.
🟡 2024-11-27 02:15:07 UTC ydbd size 2.5 GiB changed* by +422.3 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 40b58a4 merge: 7edc749 diff diff %
ydbd size 2 694 101 816 Bytes 2 694 534 232 Bytes +422.3 KiB +0.016%
ydbd stripped size 482 087 952 Bytes 482 141 776 Bytes +52.6 KiB +0.011%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

Copy link

github-actions bot commented Nov 27, 2024

2024-11-27 00:19:37 UTC Pre-commit check linux-x86_64-release-asan for 7edc749 has started.
2024-11-27 00:19:47 UTC Artifacts will be uploaded here
2024-11-27 00:23:04 UTC ya make is running...
🟡 2024-11-27 02:03:04 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15164 15037 0 72 8 47

🟢 2024-11-27 02:04:18 UTC Build successful.
🟡 2024-11-27 02:04:45 UTC ydbd size 4.9 GiB changed* by +796.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 40b58a4 merge: 7edc749 diff diff %
ydbd size 5 293 078 656 Bytes 5 293 894 280 Bytes +796.5 KiB +0.015%
ydbd stripped size 1 360 778 416 Bytes 1 360 943 344 Bytes +161.1 KiB +0.012%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@niksaveliev niksaveliev force-pushed the commit-for-autopartitioned-topics branch from d5a05e9 to c9241c4 Compare December 4, 2024 12:39
@niksaveliev niksaveliev force-pushed the commit-for-autopartitioned-topics branch from c9241c4 to 50195e2 Compare December 4, 2024 12:58
Copy link

github-actions bot commented Dec 4, 2024

2024-12-04 13:00:04 UTC Pre-commit check linux-x86_64-relwithdebinfo for 58c37b9 has started.
2024-12-04 13:00:34 UTC Artifacts will be uploaded here
2024-12-04 13:04:21 UTC ya make is running...
🔴 2024-12-04 13:14:11 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Dec 4, 2024

2024-12-04 13:01:21 UTC Pre-commit check linux-x86_64-release-asan for 58c37b9 has started.
2024-12-04 13:01:59 UTC Artifacts will be uploaded here
2024-12-04 13:05:54 UTC ya make is running...
🔴 2024-12-04 13:21:40 UTC Build failed, see the logs. Also see fail summary

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

Successfully merging this pull request may close these issues.

3 participants