Skip to content

Conversation

@Emgariko
Copy link
Contributor

@Emgariko Emgariko commented Apr 10, 2025

Changelog entry

Add of date range parameters (--date-to, --date-from to support uniform PK distribution) for ydb workload log run operations including bulk_upsert, insert, and upsert

Changelog category

  • New feature

Description for reviewers

Added date_from & date_to params to ydb workload log to support uniformly distributed timestamp generation.
Добавил эти параметры в workload run {bulk_upsert, insert, upsert}. Параметры валидируются. --timestamp_deviation и --date-from, --date-to - взаимоисключающие. Нужно передавать либо --timestamp_deviation, либо --date-from, --date-to. Если не указывать ничего из этих опций - используется timestamp_deviation = 0

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

🟢 2025-05-17 19:18:12 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

2025-04-10 11:21:31 UTC Pre-commit check linux-x86_64-release-asan for 7267b72 has started.
2025-04-10 11:21:47 UTC Artifacts will be uploaded here
2025-04-10 11:24:09 UTC ya make is running...
🟡 2025-04-10 11:45:48 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
645 621 0 5 9 10

2025-04-10 11:46:02 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-10 11:57:37 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
26 (only retried tests) 10 0 3 3 10

2025-04-10 11:57:45 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-10 12:09:02 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?
17 (only retried tests) 4 0 2 2 9

🟢 2025-04-10 12:09:09 UTC Build successful.
🟢 2025-04-10 12:09:26 UTC ydbd size 3.9 GiB changed* by +13.6 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: cbbff2d merge: 7267b72 diff diff %
ydbd size 4 137 021 664 Bytes 4 137 035 600 Bytes +13.6 KiB +0.000%
ydbd stripped size 1 428 885 768 Bytes 1 428 888 008 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

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

2025-04-10 11:23:43 UTC Pre-commit check linux-x86_64-relwithdebinfo for 7267b72 has started.
2025-04-10 11:24:05 UTC Artifacts will be uploaded here
2025-04-10 11:26:56 UTC ya make is running...
🟡 2025-04-10 11:50:56 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?
1095 1082 0 2 2 9

2025-04-10 11:51:10 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-10 12:00:24 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
18 (only retried tests) 15 0 0 0 3

🟢 2025-04-10 12:00:35 UTC Build successful.
🟢 2025-04-10 12:00:45 UTC ydbd size 2.2 GiB changed* by +8.4 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: cbbff2d merge: 7267b72 diff diff %
ydbd size 2 357 823 936 Bytes 2 357 832 544 Bytes +8.4 KiB +0.000%
ydbd stripped size 492 814 880 Bytes 492 816 352 Bytes +1.4 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

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

2025-04-10 12:39:25 UTC Pre-commit check linux-x86_64-release-asan for 1d80331 has started.
2025-04-10 12:39:40 UTC Artifacts will be uploaded here
2025-04-10 12:41:59 UTC ya make is running...
🟡 2025-04-10 13:07:30 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
645 610 0 5 20 10

2025-04-10 13:07:42 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-10 13:18:49 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
37 (only retried tests) 22 0 3 2 10

2025-04-10 13:18:57 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-10 13:31:04 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?
16 (only retried tests) 3 0 2 2 9

🟢 2025-04-10 13:31:11 UTC Build successful.
🟡 2025-04-10 13:31:27 UTC ydbd size 3.9 GiB changed* by +179.7 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: cbbff2d merge: 1d80331 diff diff %
ydbd size 4 137 021 664 Bytes 4 137 205 712 Bytes +179.7 KiB +0.004%
ydbd stripped size 1 428 885 768 Bytes 1 428 936 712 Bytes +49.8 KiB +0.004%

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

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

2025-04-10 12:43:28 UTC Pre-commit check linux-x86_64-relwithdebinfo for 1d80331 has started.
2025-04-10 12:43:44 UTC Artifacts will be uploaded here
2025-04-10 12:45:59 UTC ya make is running...
🟢 2025-04-10 13:11:26 UTC Tests successful.

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1095 1083 0 0 3 9

🟢 2025-04-10 13:11:36 UTC Build successful.
🟡 2025-04-10 13:11:47 UTC ydbd size 2.2 GiB changed* by +111.9 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: cbbff2d merge: 1d80331 diff diff %
ydbd size 2 357 823 936 Bytes 2 357 938 504 Bytes +111.9 KiB +0.005%
ydbd stripped size 492 814 880 Bytes 492 839 840 Bytes +24.4 KiB +0.005%

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

@Emgariko Emgariko linked an issue Apr 10, 2025 that may be closed by this pull request
@Emgariko
Copy link
Contributor Author

Протестировал ydb workload log run {insert, upsert, bulk_upsert} --date_from --date_to - работает ожидаемым образом. PK генерируются равномерно на промежутке при его указании с помощью этих опций

@Emgariko Emgariko requested a review from pnv1 April 11, 2025 09:42
@Emgariko Emgariko requested a review from a team as a code owner April 24, 2025 10:58
@github-actions
Copy link

github-actions bot commented Apr 24, 2025

2025-04-24 11:02:50 UTC Pre-commit check linux-x86_64-release-asan for f99a40e has started.
2025-04-24 11:03:06 UTC Artifacts will be uploaded here
2025-04-24 11:05:58 UTC ya make is running...
🔴 2025-04-24 11:08:28 UTC Build failed, see the logs. Also see fail summary

@github-actions
Copy link

github-actions bot commented Apr 24, 2025

2025-04-24 11:46:19 UTC Pre-commit check linux-x86_64-relwithdebinfo for f99a40e has started.
2025-04-24 11:46:45 UTC Artifacts will be uploaded here
2025-04-24 11:50:01 UTC ya make is running...
🔴 2025-04-24 11:52:13 UTC Build failed, see the logs. Also see fail summary

@github-actions
Copy link

github-actions bot commented Apr 24, 2025

2025-04-24 14:49:15 UTC Pre-commit check linux-x86_64-release-asan for 2f2fed7 has started.
2025-04-24 14:49:40 UTC Artifacts will be uploaded here
2025-04-24 14:53:08 UTC ya make is running...
🟡 2025-04-24 16:09:52 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12451 12323 0 67 36 25

2025-04-24 16:10:57 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-24 16:23:46 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
153 (only retried tests) 86 0 36 10 21

2025-04-24 16:23:56 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-24 16:36:35 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?
87 (only retried tests) 31 0 35 1 20

🟢 2025-04-24 16:36:42 UTC Build successful.
🟢 2025-04-24 16:37:15 UTC ydbd size 3.9 GiB changed* by +4.1 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 9211297 merge: 2f2fed7 diff diff %
ydbd size 4 136 018 368 Bytes 4 136 022 592 Bytes +4.1 KiB +0.000%
ydbd stripped size 1 431 929 912 Bytes 1 431 930 744 Bytes +832 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

@github-actions
Copy link

github-actions bot commented Apr 24, 2025

2025-04-24 14:51:32 UTC Pre-commit check linux-x86_64-relwithdebinfo for 2f2fed7 has started.
2025-04-24 14:51:48 UTC Artifacts will be uploaded here
2025-04-24 14:54:38 UTC ya make is running...
🟡 2025-04-24 15:59:45 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?
19989 18610 0 2 1275 102

2025-04-24 16:01:24 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-24 16:13:51 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
161 (only retried tests) 67 0 0 0 94

🟢 2025-04-24 16:14:06 UTC Build successful.
🟢 2025-04-24 16:14:26 UTC ydbd size 2.2 GiB changed* by +3.3 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 9211297 merge: 2f2fed7 diff diff %
ydbd size 2 354 429 048 Bytes 2 354 432 448 Bytes +3.3 KiB +0.000%
ydbd stripped size 494 200 128 Bytes 494 200 448 Bytes +320 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

#ifdef DT_CHR
#undef DT_CHR
#endif
#include <ydb/library/benchmarks/gen/tpch-dbgen/dss.h>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Без этого трюка падало с ошибкой - https://paste.yandex-team.ru/bea6a2c6-a803-4b8e-aa40-507d3624429c

Copy link
Contributor Author

@Emgariko Emgariko Apr 24, 2025

Choose a reason for hiding this comment

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

a85d2e9 - при добавлении вот этого диффа(#include <ydb/public/lib/ydb_cli/common/command.h> в хедере + дифф который добавляет методы и их реализации) падает с такой ошибкой. Почему-то редефайнится значение.

Без этого диффа ошибки нет.

#include <ydb/public/sdk/cpp/include/ydb-cpp-sdk/client/value/value.h>
#include <ydb/library/accessor/accessor.h>
#include <library/cpp/getopt/last_getopt.h>
#include <ydb/public/lib/ydb_cli/common/command.h>
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

@Emgariko Emgariko Apr 24, 2025

Choose a reason for hiding this comment

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

А почему? И что значит наоборот? что command.h инклюдит workload_query_generator.h?

Copy link
Collaborator

@iddqdex iddqdex Apr 24, 2025

Choose a reason for hiding this comment

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

Потому что команды ссылаются на библиотеку, а не наоборот.

  1. Тут очень вероятно появление циклических зависимостей.
  2. абстрактная библиотека очень тяжелеет в смысле зависимостей.

@github-actions
Copy link

github-actions bot commented Apr 25, 2025

2025-04-25 09:30:43 UTC Pre-commit check linux-x86_64-release-asan for 46f2a49 has started.
2025-04-25 09:30:58 UTC Artifacts will be uploaded here
2025-04-25 09:33:52 UTC ya make is running...
2025-04-25 10:23:12 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Apr 25, 2025

2025-04-25 09:30:44 UTC Pre-commit check linux-x86_64-relwithdebinfo for 46f2a49 has started.
2025-04-25 09:31:00 UTC Artifacts will be uploaded here
2025-04-25 09:33:47 UTC ya make is running...
2025-04-25 10:23:14 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Apr 25, 2025

2025-04-25 10:26:17 UTC Pre-commit check linux-x86_64-release-asan for c194ebe has started.
2025-04-25 10:26:33 UTC Artifacts will be uploaded here
2025-04-25 10:29:26 UTC ya make is running...
2025-04-25 10:33:21 UTC Check cancelled

@Emgariko Emgariko force-pushed the ydb-workload-log-uniform-pk-distribution branch from 377455d to 5dddd6a Compare April 25, 2025 10:32
@github-actions
Copy link

github-actions bot commented Apr 25, 2025

2025-04-25 10:36:59 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0ed060c has started.
2025-04-25 10:37:17 UTC Artifacts will be uploaded here
2025-04-25 10:40:49 UTC ya make is running...
🟡 2025-04-25 11:38:45 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?
19989 18596 0 3 1351 39

2025-04-25 11:40:27 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-25 11:51:14 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
104 (only retried tests) 74 0 0 0 30

🟢 2025-04-25 11:51:21 UTC Build successful.
🟢 2025-04-25 11:51:41 UTC ydbd size 2.2 GiB changed* by +3.3 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 6e24151 merge: 0ed060c diff diff %
ydbd size 2 354 794 104 Bytes 2 354 797 488 Bytes +3.3 KiB +0.000%
ydbd stripped size 494 254 848 Bytes 494 255 168 Bytes +320 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

@github-actions
Copy link

github-actions bot commented Apr 25, 2025

2025-04-25 10:37:13 UTC Pre-commit check linux-x86_64-release-asan for 0ed060c has started.
2025-04-25 10:37:27 UTC Artifacts will be uploaded here
2025-04-25 10:40:09 UTC ya make is running...
🟡 2025-04-25 11:55:32 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12451 12322 0 69 38 22

2025-04-25 11:56:40 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-25 12:09:20 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
163 (only retried tests) 104 0 36 3 20

2025-04-25 12:09:28 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-25 12:22:43 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?
81 (only retried tests) 27 0 35 0 19

🟢 2025-04-25 12:22:55 UTC Build successful.
🟢 2025-04-25 12:23:25 UTC ydbd size 3.9 GiB changed* by +4.1 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 6e24151 merge: 0ed060c diff diff %
ydbd size 4 136 733 776 Bytes 4 136 737 992 Bytes +4.1 KiB +0.000%
ydbd stripped size 1 432 106 072 Bytes 1 432 106 904 Bytes +832 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

@Emgariko Emgariko force-pushed the ydb-workload-log-uniform-pk-distribution branch from 61d254c to 65cb9c8 Compare May 15, 2025 09:45
@github-actions
Copy link

github-actions bot commented May 15, 2025

2025-05-15 09:49:40 UTC Pre-commit check linux-x86_64-release-asan for 6a3722d has started.
2025-05-15 09:49:52 UTC Artifacts will be uploaded here
2025-05-15 09:52:36 UTC ya make is running...
🟡 2025-05-15 11:26:35 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12559 12379 0 123 31 26

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

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1244 (only retried tests) 1144 0 63 12 25

2025-05-15 11:58:47 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-05-15 12:26:12 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?
1035 (only retried tests) 921 0 63 26 25

🟢 2025-05-15 12:26:26 UTC Build successful.
🟢 2025-05-15 12:27:04 UTC ydbd size 3.9 GiB changed* by +16.4 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 386cc57 merge: 6a3722d diff diff %
ydbd size 4 139 063 240 Bytes 4 139 080 056 Bytes +16.4 KiB +0.000%
ydbd stripped size 1 436 932 696 Bytes 1 436 937 688 Bytes +4.9 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

}
virtual TString GetWorkloadName() const = 0;

virtual void Validate() const {};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Валидировать надо с проверкой типа run-а - т.к например такая валидация не нужна для Select-а.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Убедил, пусть будет Validate. Давай только сделаем его универсальнее, пусть принимает параметры const ECommandType commandType, int workloadType, чтобы его можно было из разных мест звать.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Хорошо

Добавил эти параметры в Validate.

@github-actions
Copy link

github-actions bot commented May 15, 2025

2025-05-15 10:45:40 UTC Pre-commit check linux-x86_64-relwithdebinfo for 6a3722d has started.
2025-05-15 10:46:03 UTC Artifacts will be uploaded here
2025-05-15 10:49:31 UTC ya make is running...
🟡 2025-05-15 12:14:24 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?
20351 18976 0 12 1329 34

2025-05-15 12:16:07 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-05-15 12:37:11 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?
771 (only retried tests) 737 0 3 0 31

2025-05-15 12:37:26 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-05-15 12:59:53 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?
86 (only retried tests) 50 0 2 3 31

🟢 2025-05-15 13:00:01 UTC Build successful.
🟢 2025-05-15 13:00:34 UTC ydbd size 2.2 GiB changed* by +8.0 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 386cc57 merge: 6a3722d diff diff %
ydbd size 2 352 540 536 Bytes 2 352 548 712 Bytes +8.0 KiB +0.000%
ydbd stripped size 494 527 744 Bytes 494 527 872 Bytes +128 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

PrepareForRun(config);
Params.DbPath = config.Database;
auto workloadGen = Params.CreateGenerator();
Params.Validate();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Не нужна отдельная публичная функция в интерфейсе. Можно прямо в CreateGenerator вставить проверку.

Copy link
Contributor Author

@Emgariko Emgariko May 15, 2025

Choose a reason for hiding this comment

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

CreateGenerator вызывается еще в том числе до того как проставились параметры.
Если туда добавлять проверку, валидация ошибочно срабатывает.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Предлагаю такой вариант оставить, и вмержить хотя бы так.
А дальше сделать рефакторинг. Я пытался разобраться с CreateGenerator - быстро сделать не получилось. Пока пришел к такому решению.

Copy link
Collaborator

Choose a reason for hiding this comment

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

CreateGenerator вызывается прямо перед твоей проверкой, между ними ничего не происходит. Параметры там одни и те же в обоих местах. Сейчас это выглядит как какой-то костыль, зачем-то торчащий из интерфейса.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Да, перед моей проверкой он вызывается.

А так же вызывается в других местах. И если добавлять в CreateGenerator валидацию - то при вызове из других мест эта валидация падает, т.к там еще не попарсились параметры.

Copy link
Contributor Author

@Emgariko Emgariko May 16, 2025

Choose a reason for hiding this comment

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

(gdb) break TLogWorkloadParams::CreateGenerator
Breakpoint 1 at 0xd28b18f: file /home/emgariko/project/ydb_fork_1/ydb/ydb/library/workload/log/log.cpp, line 489.
(gdb) run -e grpc://localhost:2136 -d /Root/test workload log run upsert --date-from 1 --date-to 2000 --timestamp_deviation 3
Starting program: /home/emgariko/project/ydb_fork_1/ydb/ydb/apps/ydb/ydb -e grpc://localhost:2136 -d /Root/test workload log run upsert --date-from 1 --date-to 2000 --timestamp_deviation 3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Breakpoint 1, NYdbWorkload::NLog::TLogWorkloadParams::CreateGenerator (this=0x6f83f801040)
    at /home/emgariko/project/ydb_fork_1/ydb/ydb/library/workload/log/log.cpp:489
489	    return MakeHolder<TLogGenerator>(this);
(gdb) where
#0  NYdbWorkload::NLog::TLogWorkloadParams::CreateGenerator (this=0x6f83f801040)
    at /home/emgariko/project/ydb_fork_1/ydb/ydb/library/workload/log/log.cpp:489
#1  0x0000000010ce9f7c in NYdb::NConsoleClient::TWorkloadCommandRoot::TWorkloadCommandRoot (this=0x6f83f787d10, key=...)
    at /home/emgariko/project/ydb_fork_1/ydb/ydb/public/lib/ydb_cli/commands/ydb_workload.cpp:431
#2  0x0000000010ce43df in std::__y1::make_unique[abi:fe190000]<NYdb::NConsoleClient::TWorkloadCommandRoot, char const*>(char const*&&) (
    __args=@0x7fffffffda48: 0x6f83f6524a9 "log") at /home/emgariko/project/ydb_fork_1/ydb/contrib/libs/cxxsupp/libcxx/include/__memory/unique_ptr.h:621
#3  0x0000000010ce3f75 in NYdb::NConsoleClient::TCommandWorkload::TCommandWorkload (this=0x6f83f7863b0)
    at /home/emgariko/project/ydb_fork_1/ydb/ydb/public/lib/ydb_cli/commands/ydb_workload.cpp:52
#4  0x000000000d575f90 in std::__y1::make_unique[abi:fe190000]<NYdb::NConsoleClient::TCommandWorkload>() ()
    at /home/emgariko/project/ydb_fork_1/ydb/contrib/libs/cxxsupp/libcxx/include/__memory/unique_ptr.h:621
#5  0x000000000d5748da in NYdb::NConsoleClient::TClientCommandRootCommon::TClientCommandRootCommon (this=0x6f83f6c0780, name=..., settings=...)
    at /home/emgariko/project/ydb_fork_1/ydb/ydb/public/lib/ydb_cli/commands/ydb_root_common.cpp:56
#6  0x000000000d56c339 in NYdb::NConsoleClient::TClientCommandRoot::TClientCommandRoot (this=0x6f83f6c0780, name=..., settings=...)
    at /-S/ydb/apps/ydb/commands/ydb_root.cpp:16
#7  0x000000000d56c499 in NYdb::NConsoleClient::TYdbClientCommandRoot::TYdbClientCommandRoot (this=0x6f83f6c0780, name=..., settings=...)
    at /-S/ydb/apps/ydb/commands/ydb_root.cpp:62
#8  0x000000000d56d364 in MakeHolder<NYdb::NConsoleClient::TYdbClientCommandRoot, std::__y1::basic_string<char, std::__y1::char_traits<char>, std::__y1::allocator<char> >, NYdb::NConsoleClient::TClientSettings&> (args=..., args=...) at /-S/util/generic/ptr.h:370
#9  0x000000000d56cf9d in NYdb::NConsoleClient::NewYdbClient (argc=15, argv=0x7fffffffe388) at /-S/ydb/apps/ydb/commands/ydb_root.cpp:121
#10 0x000000000b302d32 in main (argc=15, argv=0x7fffffffe388) at /-S/ydb/apps/ydb/main.cpp:14
(gdb)

здесь параметры еще не попарсились

@github-actions
Copy link

github-actions bot commented May 16, 2025

2025-05-16 13:55:38 UTC Pre-commit check linux-x86_64-relwithdebinfo for 9a24243 has started.
2025-05-16 13:55:50 UTC Artifacts will be uploaded here
2025-05-16 13:58:35 UTC ya make is running...
🟡 2025-05-16 15:13:38 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?
20588 19202 0 8 1345 33

2025-05-16 15:15:19 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-05-16 15:41:13 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?
458 (only retried tests) 422 0 1 4 31

2025-05-16 15:41:25 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-05-16 16:08:54 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?
83 (only retried tests) 51 0 1 1 30

🟢 2025-05-16 16:09:02 UTC Build successful.
🟡 2025-05-16 16:09:26 UTC ydbd size 2.2 GiB changed* by +206.6 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: c5fc3a3 merge: 9a24243 diff diff %
ydbd size 2 353 658 848 Bytes 2 353 870 400 Bytes +206.6 KiB +0.009%
ydbd stripped size 494 644 872 Bytes 494 649 288 Bytes +4.3 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

@github-actions
Copy link

github-actions bot commented May 16, 2025

2025-05-16 13:55:45 UTC Pre-commit check linux-x86_64-release-asan for 9a24243 has started.
2025-05-16 13:55:56 UTC Artifacts will be uploaded here
2025-05-16 13:58:42 UTC ya make is running...
🟡 2025-05-16 15:43:59 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12897 12723 0 113 36 25

2025-05-16 15:45:06 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-05-16 16:15:24 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1305 (only retried tests) 1200 0 62 17 26

2025-05-16 16:15:41 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-05-16 16:44:14 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?
1137 (only retried tests) 1033 0 58 21 25

🟢 2025-05-16 16:44:29 UTC Build successful.
🟡 2025-05-16 16:45:05 UTC ydbd size 3.9 GiB changed* by +674.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: d2e9063 merge: 9a24243 diff diff %
ydbd size 4 140 369 648 Bytes 4 141 060 336 Bytes +674.5 KiB +0.017%
ydbd stripped size 1 437 218 936 Bytes 1 437 488 024 Bytes +262.8 KiB +0.019%

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

@github-actions
Copy link

github-actions bot commented May 17, 2025

2025-05-17 17:39:17 UTC Pre-commit check linux-x86_64-relwithdebinfo for bd74eca has started.
2025-05-17 17:39:30 UTC Artifacts will be uploaded here
2025-05-17 17:42:23 UTC ya make is running...
2025-05-17 18:26:54 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented May 17, 2025

2025-05-17 17:39:36 UTC Pre-commit check linux-x86_64-release-asan for bd74eca has started.
2025-05-17 17:39:48 UTC Artifacts will be uploaded here
2025-05-17 17:42:39 UTC ya make is running...
2025-05-17 18:26:54 UTC Check cancelled

@Emgariko Emgariko requested a review from iddqdex May 17, 2025 18:27
@github-actions
Copy link

github-actions bot commented May 17, 2025

2025-05-17 18:28:52 UTC Pre-commit check linux-x86_64-relwithdebinfo for c871aaa has started.
2025-05-17 18:29:24 UTC Artifacts will be uploaded here
2025-05-17 18:33:00 UTC ya make is running...
🟡 2025-05-17 19:45:24 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?
20615 19250 0 3 1327 35

2025-05-17 19:47:06 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-05-17 20:10:38 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
540 (only retried tests) 508 0 0 1 31

🟢 2025-05-17 20:10:48 UTC Build successful.
🟢 2025-05-17 20:11:11 UTC ydbd size 2.2 GiB changed* by +352 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: 78c0da6 merge: c871aaa diff diff %
ydbd size 2 354 405 552 Bytes 2 354 405 904 Bytes +352 Bytes +0.000%
ydbd stripped size 494 722 376 Bytes 494 722 504 Bytes +128 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

@github-actions
Copy link

github-actions bot commented May 17, 2025

2025-05-17 18:31:04 UTC Pre-commit check linux-x86_64-release-asan for c871aaa has started.
2025-05-17 18:31:17 UTC Artifacts will be uploaded here
2025-05-17 18:34:09 UTC ya make is running...
🟡 2025-05-17 20:10:28 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12917 12698 0 150 40 29

2025-05-17 20:11:36 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-05-17 20:46:32 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1600 (only retried tests) 1488 0 59 29 24

2025-05-17 20:46:51 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-05-17 21:17:25 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?
1161 (only retried tests) 1054 0 59 24 24

🟢 2025-05-17 21:17:40 UTC Build successful.
🟢 2025-05-17 21:18:22 UTC ydbd size 3.9 GiB changed* by +224 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: 78c0da6 merge: c871aaa diff diff %
ydbd size 4 141 869 424 Bytes 4 141 869 648 Bytes +224 Bytes +0.000%
ydbd stripped size 1 437 654 264 Bytes 1 437 654 296 Bytes +32 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

@Emgariko Emgariko enabled auto-merge (squash) May 17, 2025 19:03
@Emgariko Emgariko requested a review from pnv1 May 19, 2025 07:00
@Emgariko Emgariko merged commit 95cd12a into ydb-platform:main May 19, 2025
16 checks passed
nshestakov pushed a commit to nshestakov/ydb that referenced this pull request May 20, 2025
Co-authored-by: Oleg Geller <iddqd@ydb.tech>
xyliganSereja pushed a commit to xyliganSereja/ydb_work that referenced this pull request Jun 3, 2025
Co-authored-by: Oleg Geller <iddqd@ydb.tech>
@liruoko liruoko added the release-scope-25-3 Для PR-ов. Означает "этот PR вошел в состав одной из версий 25-3-nnn" label Oct 13, 2025
@liruoko liruoko added the changelog/f25-3 PR участвует в списке изменений label Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/f25-3 PR участвует в списке изменений new-feature release-scope-25-3 Для PR-ов. Означает "этот PR вошел в состав одной из версий 25-3-nnn"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test cs read-write. Log scenario (random writes)

4 participants