Skip to content

Conversation

@kungasc
Copy link
Contributor

@kungasc kungasc commented Jun 2, 2025

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

@github-actions
Copy link

github-actions bot commented Jun 2, 2025

🟢 2025-06-02 10:20:11 UTC The validation of the Pull Request description is successful.

@kungasc kungasc marked this pull request as ready for review June 2, 2025 10:22
@kungasc kungasc requested review from a team as code owners June 2, 2025 10:22
@github-actions
Copy link

github-actions bot commented Jun 2, 2025

2025-06-02 10:22:44 UTC Pre-commit check linux-x86_64-release-asan for 982289e has started.
2025-06-02 10:22:55 UTC Artifacts will be uploaded here
2025-06-02 10:25:55 UTC ya make is running...
2025-06-02 10:26:14 UTC Check cancelled

@kungasc kungasc requested a review from vitalif June 2, 2025 10:22
@github-actions
Copy link

github-actions bot commented Jun 2, 2025

2025-06-02 10:23:45 UTC Pre-commit check linux-x86_64-relwithdebinfo for 982289e has started.
2025-06-02 10:23:56 UTC Artifacts will be uploaded here
2025-06-02 10:26:12 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Jun 2, 2025

2025-06-02 10:30:04 UTC Pre-commit check linux-x86_64-release-asan for fce3a69 has started.
2025-06-02 10:30:14 UTC Artifacts will be uploaded here
2025-06-02 10:33:15 UTC ya make is running...
2025-06-02 11:06:04 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Jun 2, 2025

2025-06-02 10:30:24 UTC Pre-commit check linux-x86_64-relwithdebinfo for fce3a69 has started.
2025-06-02 10:30:36 UTC Artifacts will be uploaded here
2025-06-02 10:33:41 UTC ya make is running...
2025-06-02 11:06:04 UTC Check cancelled

auto copy = record;
TStringBuilder result;
// clusters are not human readable and can be large like 100Kb+
result << " Clusters: " << copy.ClustersSize();
Copy link
Collaborator

Choose a reason for hiding this comment

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

не странно, что Clusters/Rows: будет перед общим описанием, а не после?

TClusterId SetPostingParentFlag(TClusterId parent);

TString ToShortDebugString(const NKikimrTxDataShard::TEvReshuffleKMeansRequest& record);
TString ToShortDebugString(const NKikimrTxDataShard::TEvSampleKResponse& record);
Copy link
Collaborator

Choose a reason for hiding this comment

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

а тут не странно, что оно в table_index.h? может эти функции прямо в классы TEvSampleKResponse и TEvReshuffleKMeansRequest засунуть?

Copy link
Contributor 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.

Copy link
Contributor 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.

а, ну эти конкретно не там, там некие обёртки. но может в них как раз и засунуть?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

формально это не верно, ты можешь заполнять ответы/запросы а уже потом получать/отправлять их

Copy link
Member

@CyberROFL CyberROFL left a comment

Choose a reason for hiding this comment

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

Имхо, лучше аннотировать потенциально большие поля в proto-описании и реализовать кастомный принтер. См. ydb/library/protobuf_printer

TString ToShortDebugString(const NKikimrTxDataShard::TEvReshuffleKMeansRequest& record) {
auto copy = record;
TStringBuilder result;
// clusters are not human readable and can be large like 100Kb+
Copy link
Member

Choose a reason for hiding this comment

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

Т.е печатать жалко, а копировать не жалко?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ну там и правда не понятно зачем байты строк в логе читать

@kungasc
Copy link
Contributor Author

kungasc commented Jun 2, 2025

Имхо, лучше аннотировать потенциально большие поля в proto-описании и реализовать кастомный принтер. См. ydb/library/protobuf_printer

я бы вообще ожидал что такой атрибут будет из коробки для протобуф файлов, но что-то не нашёл

и как я понял никто не умеет добавлять поддержку атрибутов чтобы их сразу учитывал Codegen дефолтных методов

помнить то что надо для каких-то протобуфоф использовать всегда отдельный принтер как-то тоже стрёмно

так что пока бы оставил решение "на коленке"

@CyberROFL
Copy link
Member

помнить то что надо для каких-то протобуфоф использовать всегда отдельный принтер как-то тоже стрёмно

текущее решение тоже подразумевает "помнить".

@github-actions
Copy link

github-actions bot commented Jun 2, 2025

2025-06-02 11:08:27 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5e5c9a5 has started.
2025-06-02 11:08:33 UTC Artifacts will be uploaded here
2025-06-02 11:11:37 UTC ya make is running...
🟡 2025-06-02 12:25:00 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
30383 27697 0 2 2652 32

2025-06-02 12:27:30 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-02 12:37:48 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
558 (only retried tests) 484 0 45 0 29

2025-06-02 12:37:58 UTC ya make is running... (failed tests rerun, try 3)
🟢 2025-06-02 12:50:03 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
357 (only retried tests) 332 0 0 0 25

🟢 2025-06-02 12:50:13 UTC Build successful.
🟢 2025-06-02 12:50:36 UTC ydbd size 2.2 GiB changed* by +7.0 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 8a267cb merge: 5e5c9a5 diff diff %
ydbd size 2 364 060 288 Bytes 2 364 067 496 Bytes +7.0 KiB +0.000%
ydbd stripped size 496 256 232 Bytes 496 256 616 Bytes +384 Bytes +0.000%

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

@kungasc kungasc requested review from CyberROFL and vitalif June 2, 2025 11:08
@github-actions
Copy link

github-actions bot commented Jun 2, 2025

2025-06-02 11:09:45 UTC Pre-commit check linux-x86_64-release-asan for 5e5c9a5 has started.
2025-06-02 11:09:56 UTC Artifacts will be uploaded here
2025-06-02 11:12:56 UTC ya make is running...
🟡 2025-06-02 12:56:53 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15394 15212 0 81 79 22

2025-06-02 12:58:11 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-02 13:31:31 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1564 (only retried tests) 1478 0 62 5 19

2025-06-02 13:31:49 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-02 14:03:27 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1325 (only retried tests) 1247 0 52 5 21

🟢 2025-06-02 14:03:44 UTC Build successful.
🟢 2025-06-02 14:04:23 UTC ydbd size 3.9 GiB changed* by +9.7 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 8a267cb merge: 5e5c9a5 diff diff %
ydbd size 4 157 752 824 Bytes 4 157 762 800 Bytes +9.7 KiB +0.000%
ydbd stripped size 1 442 898 040 Bytes 1 442 900 344 Bytes +2.2 KiB +0.000%

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

@kungasc
Copy link
Contributor Author

kungasc commented Jun 2, 2025

текущее решение тоже подразумевает "помнить"

всё так, в PR каких-то значимых улучшений нет, просто вынос хэлпера

а сделать значительно лучше — значительно сложнее, так что предалгаю влить как есть

@kungasc kungasc enabled auto-merge (squash) June 2, 2025 13:34
@kungasc kungasc merged commit 11fc6cb into ydb-platform:main Jun 2, 2025
13 checks passed
@kungasc kungasc self-assigned this Jun 2, 2025
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