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

YQ-3855 Add cookie to events RD <-> read_actor #11562

Merged

Conversation

kardymonds
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Additional information

...

Copy link

github-actions bot commented Nov 13, 2024

2024-11-13 11:46:59 UTC Pre-commit check linux-x86_64-relwithdebinfo for 41c4fec has started.
2024-11-13 11:47:05 UTC Artifacts will be uploaded here
2024-11-13 11:50:11 UTC ya make is running...
🟡 2024-11-13 12:52:28 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?
74121 59977 0 20 14000 124

2024-11-13 12:59:14 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-11-13 13:10:31 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?
143 (only retried tests) 31 0 3 0 109

2024-11-13 13:10:39 UTC ya make is running... (failed tests rerun, try 3)
🟢 2024-11-13 13:20:42 UTC ydbd size 2.8 GiB changed* by +39.8 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: ca52826 merge: 41c4fec diff diff %
ydbd size 3 050 061 192 Bytes 3 050 101 928 Bytes +39.8 KiB +0.001%
ydbd stripped size 482 466 520 Bytes 482 474 840 Bytes +8.1 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation
2024-11-13 13:20:44 UTC Check cancelled

Copy link

github-actions bot commented Nov 13, 2024

2024-11-13 11:49:42 UTC Pre-commit check linux-x86_64-release-asan for 41c4fec has started.
2024-11-13 11:49:53 UTC Artifacts will be uploaded here
2024-11-13 11:53:01 UTC ya make is running...
🟡 2024-11-13 13:03:59 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?
9460 9338 0 41 30 51

🟢 2024-11-13 13:04:49 UTC Build successful.
🟢 2024-11-13 13:05:24 UTC ydbd size 5.7 GiB changed* by +83.0 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: ca52826 merge: 41c4fec diff diff %
ydbd size 6 172 497 608 Bytes 6 172 582 552 Bytes +83.0 KiB +0.001%
ydbd stripped size 1 538 453 072 Bytes 1 538 472 656 Bytes +19.1 KiB +0.001%

*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 13, 2024

2024-11-13 13:22:28 UTC Pre-commit check linux-x86_64-relwithdebinfo for 73f7436 has started.
2024-11-13 13:22:35 UTC Artifacts will be uploaded here
2024-11-13 13:24:58 UTC Check cancelled

Copy link

github-actions bot commented Nov 13, 2024

2024-11-13 13:22:32 UTC Pre-commit check linux-x86_64-release-asan for 73f7436 has started.
2024-11-13 13:22:43 UTC Artifacts will be uploaded here
2024-11-13 13:24:58 UTC Check cancelled

Copy link

github-actions bot commented Nov 13, 2024

2024-11-13 13:27:31 UTC Pre-commit check linux-x86_64-release-asan for 690c93e has started.
2024-11-13 13:29:14 UTC Artifacts will be uploaded here
2024-11-13 13:32:48 UTC ya make is running...
🟡 2024-11-13 14:42:19 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?
9216 9116 0 38 16 46

🟢 2024-11-13 14:43:26 UTC Build successful.
🟡 2024-11-13 14:44:01 UTC ydbd size 5.7 GiB changed* by +188.0 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 7d51c2b merge: 690c93e diff diff %
ydbd size 6 171 493 232 Bytes 6 171 685 720 Bytes +188.0 KiB +0.003%
ydbd stripped size 1 538 179 472 Bytes 1 538 224 464 Bytes +43.9 KiB +0.003%

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

@kardymonds kardymonds marked this pull request as ready for review November 13, 2024 13:28
@kardymonds kardymonds requested a review from a team as a code owner November 13, 2024 13:28
Copy link

github-actions bot commented Nov 13, 2024

2024-11-13 13:29:20 UTC Pre-commit check linux-x86_64-relwithdebinfo for 690c93e has started.
2024-11-13 13:29:32 UTC Artifacts will be uploaded here
2024-11-13 13:32:30 UTC ya make is running...
🟡 2024-11-13 14:47:18 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?
73851 59742 0 12 13984 113

2024-11-13 14:56:30 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-11-13 15:07:58 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
119 (only retried tests) 11 0 0 0 108

🟢 2024-11-13 15:08:09 UTC Build successful.
🟢 2024-11-13 15:08:34 UTC ydbd size 2.8 GiB changed* by +68.2 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: ee51155 merge: 690c93e diff diff %
ydbd size 3 049 731 352 Bytes 3 049 801 192 Bytes +68.2 KiB +0.002%
ydbd stripped size 482 438 240 Bytes 482 451 360 Bytes +12.8 KiB +0.003%

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

@kardymonds kardymonds enabled auto-merge (squash) November 15, 2024 12:58

template <class TEventPtr>
bool TRowDispatcher::CheckSession(TAtomicSharedPtr<ConsumerInfo>& consumer, const TEventPtr& ev) {
if (ev->Cookie != consumer->Generation) {
Copy link
Collaborator

@dorooleg dorooleg Nov 15, 2024

Choose a reason for hiding this comment

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

А тут прямо строгая проверка нужна, а не <= ?

Copy link
Collaborator Author

@kardymonds kardymonds Nov 18, 2024

Choose a reason for hiding this comment

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

Да. Инициатором "соединения" является read_actor (и он увеличивает generation).
Если ev->Cookie < consumer->Generation - значит пришло старое сообщение.
Если ev->Cookie > consumer->Generation - такого не может быть (если только бага в коде / проигнорировали StartSession и т.п.). Можно assert добавить в этом случае.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

А при TEvStartSession добавлены особые проверки на эти Generation

Copy link
Collaborator

Choose a reason for hiding this comment

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

assert не нужно, так лучше)

@kardymonds kardymonds merged commit c6b53a8 into ydb-platform:main Nov 18, 2024
10 checks passed
kardymonds added a commit to kardymonds/ydb that referenced this pull request Nov 18, 2024
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.

2 participants