Skip to content

[wip] autopartitioning of mirrored topics #22221

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

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

Conversation

ubyte
Copy link
Collaborator

@ubyte ubyte commented Aug 2, 2025

Changelog entry

...

Changelog category

  • New feature
  • Experimental feature
  • Improvement
  • Performance improvement
  • User Interface
  • Bugfix
  • Backward incompatible change
  • Documentation (changelog entry is not required)
  • Not for changelog (changelog entry is not required)

Description for reviewers

...

Copy link

github-actions bot commented Aug 2, 2025

🟢 2025-08-02 13:53:16 UTC The validation of the Pull Request description is successful.

ctx.Send(ev->Get()->Sender, new TEvPQ::TEvPartitionStatusResponse(result, Partition));
}

void TPartition::Handle(TEvPQ::TEvPartitionScaleStatusChanged::TPtr& ev, const TActorContext& ctx)
{
const bool mirroredPartition = Config.GetPartitionConfig().HasMirrorFrom();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Кажется ты для этого выделил MirrorFromEnabled

}

void TPartitionScaleManager::HandleScaleStatusChange(const ui32 partitionId, NKikimrPQ::EScaleStatus scaleStatus, const TActorContext& ctx) {
TString TPartitionScaleManager::LogPrefix() const {
Copy link
Collaborator

Choose a reason for hiding this comment

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

А зачем partitionId переименовывать в partition? У тебя и в TPartitionScaleOperationInfo называется PartitionId :)

@@ -5111,6 +5111,12 @@ void TPersQueue::Handle(TEvPQ::TEvReadingPartitionStatusRequest::TPtr& ev, const

void TPersQueue::Handle(TEvPQ::TEvPartitionScaleStatusChanged::TPtr& ev, const TActorContext& ctx)
{
const bool mirroredPartition = Config.GetPartitionConfig().HasMirrorFrom();
Copy link
Collaborator

Choose a reason for hiding this comment

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

И тут MirrorFromEnabled

Copy link
Collaborator

Choose a reason for hiding this comment

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

и тут точно надо что то логировать?
если надо . то может для всех сообщений?

mirrorer_ut.cpp
topic_ut.cpp
)

NO_OPTIMIZE()
Copy link
Collaborator

Choose a reason for hiding this comment

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

а это что бы стеки нормально отображались?

@ubyte ubyte force-pushed the mirror-autopart-old branch from 0e0d8ed to 00b5681 Compare August 5, 2025 02:35
Copy link

github-actions bot commented Aug 5, 2025

2025-08-05 02:39:17 UTC Pre-commit check linux-x86_64-relwithdebinfo for d438a6d has started.
2025-08-05 02:39:31 UTC Artifacts will be uploaded here
2025-08-05 02:43:28 UTC ya make is running...
🟢 2025-08-05 04:42:34 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39267 36491 0 0 2743 33

🟢 2025-08-05 04:45:58 UTC Build successful.
🟡 2025-08-05 04:46:17 UTC ydbd size 2.2 GiB changed* by +338.3 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 517fa17 merge: d438a6d diff diff %
ydbd size 2 412 330 152 Bytes 2 412 676 592 Bytes +338.3 KiB +0.014%
ydbd stripped size 503 692 648 Bytes 503 744 008 Bytes +50.2 KiB +0.010%

*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 Aug 5, 2025

2025-08-05 02:39:40 UTC Pre-commit check linux-x86_64-release-asan for d438a6d has started.
2025-08-05 02:39:54 UTC Artifacts will be uploaded here
2025-08-05 02:43:53 UTC ya make is running...
🟡 2025-08-05 05:23:05 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?
16732 16266 0 147 290 29

🟢 2025-08-05 05:24:35 UTC Build successful.
🟡 2025-08-05 05:25:05 UTC ydbd size 4.0 GiB changed* by +551.8 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 517fa17 merge: d438a6d diff diff %
ydbd size 4 240 878 248 Bytes 4 241 443 248 Bytes +551.8 KiB +0.013%
ydbd stripped size 1 468 079 864 Bytes 1 468 211 032 Bytes +128.1 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

Copy link

github-actions bot commented Aug 5, 2025

2025-08-05 14:28:27 UTC Pre-commit check linux-x86_64-release-asan for b97a661 has started.
2025-08-05 14:28:41 UTC Artifacts will be uploaded here
2025-08-05 14:32:29 UTC ya make is running...
🟡 2025-08-05 16:59:52 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?
16761 16354 0 84 297 26

🟢 2025-08-05 17:01:21 UTC Build successful.
🟡 2025-08-05 17:01:48 UTC ydbd size 4.0 GiB changed* by +556.0 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 129dcff merge: b97a661 diff diff %
ydbd size 4 241 839 768 Bytes 4 242 409 120 Bytes +556.0 KiB +0.013%
ydbd stripped size 1 468 403 128 Bytes 1 468 538 520 Bytes +132.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

Copy link

github-actions bot commented Aug 5, 2025

2025-08-05 14:28:57 UTC Pre-commit check linux-x86_64-relwithdebinfo for b97a661 has started.
2025-08-05 14:29:11 UTC Artifacts will be uploaded here
2025-08-05 14:33:07 UTC ya make is running...
🟡 2025-08-05 16:31:11 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?
39296 36516 0 2 2746 32

2025-08-05 16:34:36 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-08-05 16:48:10 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
775 (only retried tests) 659 0 0 94 22

🟢 2025-08-05 16:48:22 UTC Build successful.
🟡 2025-08-05 16:48:42 UTC ydbd size 2.2 GiB changed* by +330.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 129dcff merge: b97a661 diff diff %
ydbd size 2 412 874 120 Bytes 2 413 212 520 Bytes +330.5 KiB +0.014%
ydbd stripped size 503 813 352 Bytes 503 856 648 Bytes +42.3 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

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