Skip to content

Break loop dependency in TDataAccessorRequest destructor #14567

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

Merged
merged 6 commits into from
Feb 27, 2025

Conversation

aavdonkin
Copy link
Contributor

@aavdonkin aavdonkin commented Feb 14, 2025

Changelog entry

Optionally disable breaking message processing loop to avoid leaving unprocessed message which breaks loop dependency and thus results in memory leak

TDataAccessorsRequest
Subscriber - IDataAccessorRequestsSubscriber->TDataAccessorsSubscriber
	    Changes - TColumnEngineChanges
		      PortionsToAccess - std::make_shared<TDataAccessorsRequest>

...

Changelog category

  • Bugfix

Additional information

#13514

@aavdonkin aavdonkin requested a review from a team as a code owner February 14, 2025 11:09
Copy link

github-actions bot commented Feb 14, 2025

2025-02-14 11:10:47 UTC Pre-commit check linux-x86_64-release-asan for 8d884e6 has started.
2025-02-14 11:11:03 UTC Artifacts will be uploaded here
2025-02-14 11:13:54 UTC ya make is running...
🟡 2025-02-14 12:30: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?
12173 12063 0 47 22 41

2025-02-14 12:32:13 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-02-14 12:44:26 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
160 (only retried tests) 126 0 0 2 32

🟢 2025-02-14 12:44:33 UTC Build successful.
🟢 2025-02-14 12:44:59 UTC ydbd size 3.6 GiB changed* by +5.2 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: c9c0fb4 merge: 8d884e6 diff diff %
ydbd size 3 884 157 576 Bytes 3 884 162 952 Bytes +5.2 KiB +0.000%
ydbd stripped size 1 360 041 168 Bytes 1 360 041 456 Bytes +288 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

Copy link

github-actions bot commented Feb 14, 2025

2025-02-14 11:12:27 UTC Pre-commit check linux-x86_64-relwithdebinfo for 8d884e6 has started.
2025-02-14 11:12:39 UTC Artifacts will be uploaded here
2025-02-14 11:15:45 UTC ya make is running...
🟡 2025-02-14 12:22:21 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?
26334 23716 0 11 2472 135

2025-02-14 12:25:36 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-02-14 12:38:22 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?
230 (only retried tests) 100 0 1 2 127

2025-02-14 12:38:31 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-02-14 12:57:47 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?
192 (only retried tests) 65 0 1 0 126

🟢 2025-02-14 12:57:55 UTC Build successful.
🟢 2025-02-14 12:58:18 UTC ydbd size 2.1 GiB changed* by +3.5 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: c9c0fb4 merge: 8d884e6 diff diff %
ydbd size 2 233 430 840 Bytes 2 233 434 376 Bytes +3.5 KiB +0.000%
ydbd stripped size 473 988 920 Bytes 473 988 984 Bytes +64 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

Copy link

github-actions bot commented Feb 19, 2025

2025-02-19 12:29:02 UTC Pre-commit check linux-x86_64-relwithdebinfo for 512ff40 has started.
2025-02-19 12:29:28 UTC Artifacts will be uploaded here
2025-02-19 12:32:53 UTC ya make is running...
🟡 2025-02-19 13:02:49 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?
15092 13865 0 1 1176 50

2025-02-19 13:04:10 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-02-19 13:15:14 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?
102 (only retried tests) 53 0 1 0 48

2025-02-19 13:15:29 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-02-19 13:26:28 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?
98 (only retried tests) 49 0 1 0 48

🟢 2025-02-19 13:26:35 UTC Build successful.
🟢 2025-02-19 13:26:58 UTC ydbd size 2.1 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 6df1995 merge: 512ff40 diff diff %
ydbd size 2 238 223 232 Bytes 2 238 223 232 Bytes 0 Bytes 0.000%
ydbd stripped size 474 291 928 Bytes 474 291 928 Bytes 0 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

Copy link

github-actions bot commented Feb 19, 2025

2025-02-19 12:32:14 UTC Pre-commit check linux-x86_64-release-asan for 512ff40 has started.
2025-02-19 12:33:47 UTC Artifacts will be uploaded here
2025-02-19 12:36:32 UTC ya make is running...
🟡 2025-02-19 13:21:39 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?
10605 10556 0 22 1 26

2025-02-19 13:22:49 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-02-19 13:34:55 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?
86 (only retried tests) 60 0 1 0 25

2025-02-19 13:35:04 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-02-19 13:38:32 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?
52 (only retried tests) 28 0 1 0 23

🟢 2025-02-19 13:38:39 UTC Build successful.
🟢 2025-02-19 13:39:11 UTC ydbd size 3.6 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 6df1995 merge: 512ff40 diff diff %
ydbd size 3 893 387 816 Bytes 3 893 387 720 Bytes -96 Bytes -0.000%
ydbd stripped size 1 363 137 728 Bytes 1 363 137 664 Bytes -64 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

Copy link

github-actions bot commented Feb 19, 2025

2025-02-19 13:53:26 UTC Pre-commit check linux-x86_64-release-asan for f250da0 has started.
2025-02-19 13:55:07 UTC Artifacts will be uploaded here
2025-02-19 13:57:55 UTC ya make is running...
🟡 2025-02-19 15:07:43 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?
10614 10561 0 24 2 27

2025-02-19 15:08:53 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-02-19 15:16:34 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
96 (only retried tests) 73 0 0 0 23

🟢 2025-02-19 15:16:42 UTC Build successful.
🟡 2025-02-19 15:17:11 UTC ydbd size 3.6 GiB changed* by +1.2 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 67c0c46 merge: f250da0 diff diff %
ydbd size 3 893 387 816 Bytes 3 894 664 560 Bytes +1.2 MiB +0.033%
ydbd stripped size 1 363 137 728 Bytes 1 363 544 288 Bytes +397.0 KiB +0.030%

*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 Feb 19, 2025

2025-02-19 13:54:11 UTC Pre-commit check linux-x86_64-relwithdebinfo for f250da0 has started.
2025-02-19 13:54:23 UTC Artifacts will be uploaded here
2025-02-19 13:57:19 UTC ya make is running...
🟡 2025-02-19 15:02:13 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?
15101 13864 0 5 1177 55

2025-02-19 15:03:45 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-02-19 15:14:35 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
118 (only retried tests) 69 0 0 0 49

🟢 2025-02-19 15:14:42 UTC Build successful.
🟡 2025-02-19 15:15:01 UTC ydbd size 2.1 GiB changed* by +702.9 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 67c0c46 merge: f250da0 diff diff %
ydbd size 2 238 223 232 Bytes 2 238 943 008 Bytes +702.9 KiB +0.032%
ydbd stripped size 474 291 928 Bytes 474 410 520 Bytes +115.8 KiB +0.025%

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

@zverevgeny
Copy link
Collaborator

zverevgeny commented Feb 19, 2025

Нужно поправить описание PR
и привязать к ишью, @aavdonkin

Copy link

github-actions bot commented Feb 20, 2025

🟢 2025-02-26 06:26:57 UTC The validation of the Pull Request description is successful.

@aavdonkin aavdonkin linked an issue Feb 20, 2025 that may be closed by this pull request
@github-actions github-actions bot added bugfix and removed bugfix labels Feb 20, 2025
@@ -414,6 +414,7 @@ Y_UNIT_TEST_SUITE(ColumnShardTiers) {
Tests::NCommon::TLoggerInit(server->GetRuntime()).Clear().SetComponents({ NKikimrServices::TX_COLUMNSHARD }, "CS").Initialize();

auto& runtime = *server->GetRuntime();
runtime.DisableBreakOnStopCondition();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Можешь отключить проверку через настройку CustomFinalCondition, вместо того, чтобы расширять TTestActorRuntime? Насколько я помню, ты показывал, что эта проверка прерывает отправку событий: https://github.com/ydb-platform/ydb/blob/main/ydb/core/testlib/cs_helper.cpp#L97

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
Contributor Author

Choose a reason for hiding this comment

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

И это условие проверяется в 2 местах, я отключаю только в одном из них

Copy link
Collaborator

Choose a reason for hiding this comment

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

Можем тут кастомизировать CustomFinalCondition? Иначе же совсем не понятно когда задавать DisableBreakOnStopCondition, а когда CustomFinalCondition

@swalrus1 swalrus1 self-requested a review February 21, 2025 12:02
@github-actions github-actions bot removed the bugfix label Feb 26, 2025
Copy link

github-actions bot commented Feb 26, 2025

2025-02-26 11:58:46 UTC Pre-commit check linux-x86_64-relwithdebinfo for a6baf69 has started.
2025-02-26 11:59:01 UTC Artifacts will be uploaded here
2025-02-26 12:01:54 UTC ya make is running...
🔴 2025-02-26 12:03:45 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Feb 26, 2025

2025-02-26 11:58:56 UTC Pre-commit check linux-x86_64-release-asan for a6baf69 has started.
2025-02-26 11:59:11 UTC Artifacts will be uploaded here
2025-02-26 12:02:00 UTC ya make is running...
🔴 2025-02-26 12:04:51 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Feb 26, 2025

2025-02-26 12:23:33 UTC Pre-commit check linux-x86_64-release-asan for fbd0190 has started.
2025-02-26 12:24:04 UTC Artifacts will be uploaded here
2025-02-26 12:27:46 UTC ya make is running...
🟡 2025-02-26 13:22:47 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?
10518 10411 0 82 1 24

2025-02-26 13:23:49 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-02-26 13:32:07 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?
148 (only retried tests) 125 0 1 0 22

2025-02-26 13:32:16 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-02-26 13:35: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?
46 (only retried tests) 23 0 1 0 22

🟢 2025-02-26 13:35:33 UTC Build successful.
🟢 2025-02-26 13:36:05 UTC ydbd size 3.7 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 8d25dd3 merge: fbd0190 diff diff %
ydbd size 3 945 558 464 Bytes 3 945 558 368 Bytes -96 Bytes -0.000%
ydbd stripped size 1 374 591 760 Bytes 1 374 591 696 Bytes -64 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

Copy link

github-actions bot commented Feb 26, 2025

2025-02-26 12:23:35 UTC Pre-commit check linux-x86_64-relwithdebinfo for fbd0190 has started.
2025-02-26 12:23:46 UTC Artifacts will be uploaded here
2025-02-26 12:26:30 UTC ya make is running...
🟡 2025-02-26 13:12:07 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?
15151 13923 0 1 1178 49

2025-02-26 13:13:45 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-02-26 13:23:06 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
100 (only retried tests) 54 0 0 0 46

🟢 2025-02-26 13:23:13 UTC Build successful.
🟢 2025-02-26 13:23:31 UTC ydbd size 2.1 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: 8d25dd3 merge: fbd0190 diff diff %
ydbd size 2 265 216 328 Bytes 2 265 216 328 Bytes 0 Bytes 0.000%
ydbd stripped size 477 290 904 Bytes 477 290 904 Bytes 0 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

@dorooleg
Copy link
Collaborator

Для переноса этого условия в CustomFinalCondition придется много кода поменять. Можно будет потом порефакторить.

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

Successfully merging this pull request may close these issues.

A lot of leaks in ColumnShardTiers.TieringUsage (asan)
5 participants