Skip to content

Add compaction logs #19990

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 2 commits into from
Jun 25, 2025
Merged

Conversation

VPolka
Copy link
Collaborator

@VPolka VPolka commented Jun 20, 2025

Changelog entry

...

Changelog category

  • Improvement

Description for reviewers

...

Copy link

github-actions bot commented Jun 20, 2025

2025-06-20 15:29:26 UTC Pre-commit check linux-x86_64-relwithdebinfo for 75286a4 has started.
2025-06-20 15:29:37 UTC Artifacts will be uploaded here
2025-06-20 15:32:56 UTC ya make is running...
🔴 2025-06-20 15:36:59 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Jun 20, 2025

2025-06-20 15:29:44 UTC Pre-commit check linux-x86_64-release-asan for 75286a4 has started.
2025-06-20 15:30:01 UTC Artifacts will be uploaded here
2025-06-20 15:33:22 UTC ya make is running...
🔴 2025-06-20 15:36:38 UTC Build failed, see the logs. Also see fail summary

Copy link

github-actions bot commented Jun 20, 2025

🔴 2025-06-23 09:08:54 UTC The validation of the Pull Request description has failed. Please update the description.

The changelog entry is less than 20 characters or missing.

@VPolka VPolka force-pushed the add-compaction-logs-2 branch from 956338c to 06ab15e Compare June 23, 2025 09:02
@VPolka VPolka changed the title Add compaction logs 2 Add compaction logs Jun 23, 2025
Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 09:05:58 UTC Pre-commit check linux-x86_64-relwithdebinfo for bc08ca5 has started.
2025-06-23 09:06:09 UTC Artifacts will be uploaded here
2025-06-23 09:09:23 UTC ya make is running...
2025-06-23 09:10:11 UTC Check cancelled

Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 09:06:29 UTC Pre-commit check linux-x86_64-release-asan for bc08ca5 has started.
2025-06-23 09:06:40 UTC Artifacts will be uploaded here
2025-06-23 09:09:57 UTC Check cancelled

@VPolka VPolka force-pushed the add-compaction-logs-2 branch from 06ab15e to 0527738 Compare June 23, 2025 09:09
Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 09:11:48 UTC Pre-commit check linux-x86_64-relwithdebinfo for 879f382 has started.
2025-06-23 09:11:59 UTC Artifacts will be uploaded here
2025-06-23 09:15:15 UTC ya make is running...
2025-06-23 09:22:04 UTC Check cancelled

Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 09:11:56 UTC Pre-commit check linux-x86_64-release-asan for 879f382 has started.
2025-06-23 09:12:06 UTC Artifacts will be uploaded here
2025-06-23 09:15:16 UTC ya make is running...
2025-06-23 09:22:07 UTC Check cancelled

@VPolka VPolka force-pushed the add-compaction-logs-2 branch from 0527738 to 2f56013 Compare June 23, 2025 09:21
Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 09:23:39 UTC Pre-commit check linux-x86_64-relwithdebinfo for b5bfca7 has started.
2025-06-23 09:24:35 UTC Artifacts will be uploaded here
2025-06-23 09:28:47 UTC ya make is running...
🟡 2025-06-23 10:31:06 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?
29516 28123 0 5 1347 41

2025-06-23 10:33:36 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-23 10:44:59 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?
478 (only retried tests) 445 0 2 1 30

2025-06-23 10:45:10 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-06-23 10:57:19 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?
457 (only retried tests) 425 0 1 0 31

🟢 2025-06-23 10:57:27 UTC Build successful.
🟡 2025-06-23 10:57:50 UTC ydbd size 2.2 GiB changed* by +172.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: e45a3f0 merge: b5bfca7 diff diff %
ydbd size 2 379 036 816 Bytes 2 379 213 480 Bytes +172.5 KiB +0.007%
ydbd stripped size 498 376 520 Bytes 498 413 448 Bytes +36.1 KiB +0.007%

*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 Jun 23, 2025

2025-06-23 09:26:17 UTC Pre-commit check linux-x86_64-release-asan for b5bfca7 has started.
2025-06-23 09:26:29 UTC Artifacts will be uploaded here
2025-06-23 09:29:54 UTC ya make is running...
🟡 2025-06-23 11:14:00 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?
14275 13919 0 116 210 30

2025-06-23 11:15:19 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-23 11:49:15 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?
1598 (only retried tests) 1348 0 54 171 25

2025-06-23 11:49:33 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-23 12:21:01 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?
1450 (only retried tests) 1170 0 55 202 23

🟢 2025-06-23 12:21:20 UTC Build successful.
🟡 2025-06-23 12:21:59 UTC ydbd size 3.9 GiB changed* by +297.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: e45a3f0 merge: b5bfca7 diff diff %
ydbd size 4 185 311 944 Bytes 4 185 616 560 Bytes +297.5 KiB +0.007%
ydbd stripped size 1 451 045 560 Bytes 1 451 140 088 Bytes +92.3 KiB +0.007%

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

@@ -100,7 +100,18 @@ namespace NKikimr {
bool allowGarbageCollection)
{
ui64 yardFreeUpToLsn = rtCtx->GetFreeUpToLsn();
bool compact = hullDs->HullCtx->FreshCompaction && rtCtx->LevelIndex->NeedsFreshCompaction(yardFreeUpToLsn, force);
bool needsFreshCompaction = false;
Copy link
Member

Choose a reason for hiding this comment

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

compact and needsFreshCompaction always have the same value, maybe delete needsFreshCompaction?

@@ -298,7 +298,7 @@ namespace NKikimr {
}

TString ToString() const {
return Sprintf("[%u %p %s]", Level, SstPtr.Get(), SstPtr->FirstKey().ToString().data());
return Sprintf("[%u %p (%s-%s)]", Level, SstPtr.Get(), SstPtr->FirstKey().ToString().data(), SstPtr->LastKey().ToString().data());
Copy link
Member

Choose a reason for hiding this comment

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

SstPtr.Get() is a bad and unreliable way to name SST's. Maybe use SST's first lsn instead?

This will allow us to find an SSt in UI and it will remain consistent across process restarts.

Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 14:48:00 UTC Pre-commit check linux-x86_64-relwithdebinfo for 57af6e7 has started.
2025-06-23 14:48:29 UTC Artifacts will be uploaded here
2025-06-23 14:52:22 UTC ya make is running...
2025-06-23 15:29:40 UTC Check cancelled

Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 14:50:16 UTC Pre-commit check linux-x86_64-release-asan for 57af6e7 has started.
2025-06-23 14:50:27 UTC Artifacts will be uploaded here
2025-06-23 14:53:48 UTC ya make is running...
2025-06-23 15:29:38 UTC Check cancelled

Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 15:33:50 UTC Pre-commit check linux-x86_64-relwithdebinfo for be756d1 has started.
2025-06-23 15:34:02 UTC Artifacts will be uploaded here
2025-06-23 15:37:22 UTC ya make is running...
2025-06-23 15:47:10 UTC Check cancelled

Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 15:34:12 UTC Pre-commit check linux-x86_64-release-asan for be756d1 has started.
2025-06-23 15:34:24 UTC Artifacts will be uploaded here
2025-06-23 15:37:46 UTC ya make is running...
2025-06-23 15:46:57 UTC Check cancelled

Copy link

github-actions bot commented Jun 23, 2025

2025-06-23 15:54:15 UTC Pre-commit check linux-x86_64-release-asan for 21bddab has started.
2025-06-23 15:54:27 UTC Artifacts will be uploaded here
2025-06-23 15:57:48 UTC ya make is running...
🟡 2025-06-23 18:03:19 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?
14306 13820 0 186 273 27

2025-06-23 18:04:37 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-23 18:41:11 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?
1853 (only retried tests) 1510 0 76 240 27

2025-06-23 18:41:32 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-23 19:18: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?
1752 (only retried tests) 1491 0 63 175 23

🟢 2025-06-23 19:19:01 UTC Build successful.
🟡 2025-06-23 19:19:36 UTC ydbd size 3.9 GiB changed* by +311.3 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 73aed09 merge: 21bddab diff diff %
ydbd size 4 186 778 744 Bytes 4 187 097 544 Bytes +311.3 KiB +0.008%
ydbd stripped size 1 451 394 584 Bytes 1 451 492 952 Bytes +96.1 KiB +0.007%

*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 Jun 23, 2025

2025-06-23 15:54:17 UTC Pre-commit check linux-x86_64-relwithdebinfo for 21bddab has started.
2025-06-23 15:54:29 UTC Artifacts will be uploaded here
2025-06-23 15:57:52 UTC ya make is running...
🟡 2025-06-23 17:20:22 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?
29550 28119 0 47 1346 38

2025-06-23 17:22:51 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-23 17:34:20 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?
388 (only retried tests) 355 0 1 0 32

2025-06-23 17:34:30 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-06-23 17:47:41 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?
290 (only retried tests) 259 0 1 0 30

🟢 2025-06-23 17:47:49 UTC Build successful.
🟡 2025-06-23 17:48:12 UTC ydbd size 2.2 GiB changed* by +183.4 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 73aed09 merge: 21bddab diff diff %
ydbd size 2 379 793 328 Bytes 2 379 981 112 Bytes +183.4 KiB +0.008%
ydbd stripped size 498 509 512 Bytes 498 551 752 Bytes +41.2 KiB +0.008%

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

va-kuznecov
va-kuznecov previously approved these changes Jun 23, 2025
Copy link

github-actions bot commented Jun 24, 2025

2025-06-24 10:48:45 UTC Pre-commit check linux-x86_64-release-asan for 650a90b has started.
2025-06-24 10:48:56 UTC Artifacts will be uploaded here
2025-06-24 10:52:16 UTC ya make is running...
🟡 2025-06-24 13:19: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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
14332 13984 0 103 216 29

2025-06-24 13:20:57 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-24 13:58:36 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?
1920 (only retried tests) 1636 0 71 184 29

2025-06-24 13:58:55 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-24 14:34:49 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?
1646 (only retried tests) 1392 0 53 176 25

🟢 2025-06-24 14:35:08 UTC Build successful.
🟡 2025-06-24 14:35:45 UTC ydbd size 3.9 GiB changed* by +186.8 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 4541608 merge: 650a90b diff diff %
ydbd size 4 188 013 648 Bytes 4 188 204 976 Bytes +186.8 KiB +0.005%
ydbd stripped size 1 451 827 544 Bytes 1 451 852 888 Bytes +24.8 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

Copy link

github-actions bot commented Jun 24, 2025

2025-06-24 10:48:46 UTC Pre-commit check linux-x86_64-relwithdebinfo for 650a90b has started.
2025-06-24 10:48:58 UTC Artifacts will be uploaded here
2025-06-24 10:52:18 UTC ya make is running...
🟡 2025-06-24 12:28:57 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?
29593 28189 0 5 1348 51

2025-06-24 12:31:46 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-24 12:43:37 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?
334 (only retried tests) 301 0 1 2 30

2025-06-24 12:43:46 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-06-24 12:55:03 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?
300 (only retried tests) 268 0 2 2 28

🟢 2025-06-24 12:55:11 UTC Build successful.
🟡 2025-06-24 12:55:31 UTC ydbd size 2.2 GiB changed* by +269.0 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 4541608 merge: 650a90b diff diff %
ydbd size 2 380 319 544 Bytes 2 380 595 040 Bytes +269.0 KiB +0.012%
ydbd stripped size 498 618 024 Bytes 498 700 072 Bytes +80.1 KiB +0.016%

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

@VPolka VPolka force-pushed the add-compaction-logs-2 branch from 6fa8368 to 9a2ae07 Compare June 24, 2025 19:41
Copy link

github-actions bot commented Jun 24, 2025

2025-06-24 19:44:50 UTC Pre-commit check linux-x86_64-relwithdebinfo for 050652b has started.
2025-06-24 19:45:03 UTC Artifacts will be uploaded here
2025-06-24 19:48:14 UTC ya make is running...
🟡 2025-06-24 20:51:50 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?
29598 28206 0 2 1353 37

2025-06-24 20:54:30 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-24 21:07:00 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?
386 (only retried tests) 350 0 1 7 28

2025-06-24 21:07:09 UTC ya make is running... (failed tests rerun, try 3)
🟢 2025-06-24 21:19:50 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
335 (only retried tests) 300 0 0 6 29

🟢 2025-06-24 21:19:58 UTC Build successful.
🟡 2025-06-24 21:20:23 UTC ydbd size 2.2 GiB changed* by +179.3 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 04c388e merge: 050652b diff diff %
ydbd size 2 382 766 744 Bytes 2 382 950 376 Bytes +179.3 KiB +0.008%
ydbd stripped size 498 847 400 Bytes 498 889 000 Bytes +40.6 KiB +0.008%

*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 Jun 24, 2025

2025-06-24 19:44:58 UTC Pre-commit check linux-x86_64-release-asan for 050652b has started.
2025-06-24 19:45:10 UTC Artifacts will be uploaded here
2025-06-24 19:48:41 UTC ya make is running...
🟡 2025-06-24 21:35:49 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?
14337 13930 0 119 256 32

🟢 2025-06-24 21:37:03 UTC Build successful.
🟡 2025-06-24 21:37:33 UTC ydbd size 3.9 GiB changed* by +302.5 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: a6a72eb merge: 050652b diff diff %
ydbd size 4 191 872 696 Bytes 4 192 182 440 Bytes +302.5 KiB +0.007%
ydbd stripped size 1 453 114 104 Bytes 1 453 213 176 Bytes +96.8 KiB +0.007%

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

@va-kuznecov va-kuznecov merged commit db0340a into ydb-platform:main Jun 25, 2025
12 checks passed
VPolka added a commit to VPolka/ydb that referenced this pull request Jun 27, 2025
va-kuznecov pushed a commit that referenced this pull request Jun 30, 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.

2 participants