Skip to content
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

Maintan schema versions reference count and remove unused from local database and memory #9134

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

aavdonkin
Copy link
Collaborator

Changelog entry

...

Changelog category

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

Additional information

...

@aavdonkin aavdonkin requested a review from a team as a code owner September 12, 2024 09:40
Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 09:43:20 UTC Pre-commit check linux-x86_64-release-clang14 for 5a7c7a4 has started.
2024-09-12 09:43:23 UTC Artifacts will be uploaded here
2024-09-12 09:46:12 UTC ya make is running...
🟢 2024-09-12 10:17:34 UTC Build successful.

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 09:43:49 UTC Pre-commit check linux-x86_64-release-asan for 5a7c7a4 has started.
2024-09-12 09:43:52 UTC Artifacts will be uploaded here
2024-09-12 09:46:51 UTC ya make is running...
2024-09-12 11:29:02 UTC Check cancelled

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 09:44:36 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5a7c7a4 has started.
2024-09-12 09:44:39 UTC Artifacts will be uploaded here
2024-09-12 09:47:28 UTC ya make is running...
🟡 2024-09-12 11:13:06 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
40927 35222 0 7 5666 32

2024-09-12 11:16:48 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-09-12 11:25:40 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
273 (only retried tests) 180 0 0 7 86

🟢 2024-09-12 11:25:48 UTC Build successful.
🟡 2024-09-12 11:26:24 UTC ydbd size 8.4 GiB changed* by +175.0 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 4d137ad merge: 5a7c7a4 diff diff %
ydbd size 9 035 109 760 Bytes 9 035 288 992 Bytes +175.0 KiB +0.002%
ydbd stripped size 488 206 024 Bytes 488 213 000 Bytes +6.8 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

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 11:30:34 UTC Pre-commit check linux-x86_64-release-asan for 7561db2 has started.
2024-09-12 11:30:44 UTC Artifacts will be uploaded here
2024-09-12 11:33:39 UTC ya make is running...
2024-09-12 13:36:33 UTC Check cancelled

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 11:31:01 UTC Pre-commit check linux-x86_64-release-clang14 for 7561db2 has started.
2024-09-12 11:31:45 UTC Artifacts will be uploaded here
2024-09-12 11:35:19 UTC ya make is running...
🟢 2024-09-12 12:12:03 UTC Build successful.

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 11:33:05 UTC Pre-commit check linux-x86_64-relwithdebinfo for 7561db2 has started.
2024-09-12 11:33:16 UTC Artifacts will be uploaded here
2024-09-12 11:36:22 UTC ya make is running...
🟡 2024-09-12 13:12:59 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
40957 35174 0 30 5723 30

2024-09-12 13:16:35 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-09-12 13:26:55 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
348 (only retried tests) 255 0 0 7 86

🟢 2024-09-12 13:27:03 UTC Build successful.
🟡 2024-09-12 13:27:49 UTC ydbd size 8.4 GiB changed* by +893.6 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 1afa3ba merge: 7561db2 diff diff %
ydbd size 9 035 158 744 Bytes 9 036 073 832 Bytes +893.6 KiB +0.010%
ydbd stripped size 488 206 664 Bytes 488 229 128 Bytes +21.9 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

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 13:49:40 UTC Pre-commit check linux-x86_64-release-asan for 5c05cb2 has started.
2024-09-12 13:49:44 UTC Artifacts will be uploaded here
2024-09-12 13:52:36 UTC ya make is running...
2024-09-12 14:31:53 UTC Check cancelled

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 14:03:19 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5c05cb2 has started.
2024-09-12 14:03:23 UTC Artifacts will be uploaded here
2024-09-12 14:06:22 UTC ya make is running...
2024-09-12 14:31:49 UTC Check cancelled

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 14:04:14 UTC Pre-commit check linux-x86_64-release-clang14 for 5c05cb2 has started.
2024-09-12 14:04:41 UTC Artifacts will be uploaded here
2024-09-12 14:07:46 UTC ya make is running...
2024-09-12 14:31:48 UTC Check cancelled

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 15:12:36 UTC Pre-commit check linux-x86_64-release-asan for 4f1c561 has started.
2024-09-12 15:13:13 UTC Artifacts will be uploaded here
2024-09-12 15:16:33 UTC ya make is running...
🔴 2024-09-12 17:17:05 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11662 11520 0 11 31 100

🟢 2024-09-12 17:18:05 UTC Build successful.
🟡 2024-09-12 17:18:34 UTC ydbd size 5.6 GiB changed* by +1.1 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: efdd4c7 merge: 4f1c561 diff diff %
ydbd size 6 050 853 256 Bytes 6 051 966 648 Bytes +1.1 MiB +0.018%
ydbd stripped size 1 514 124 784 Bytes 1 514 279 472 Bytes +151.1 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 Sep 12, 2024

2024-09-12 15:13:54 UTC Pre-commit check linux-x86_64-release-clang14 for 4f1c561 has started.
2024-09-12 15:14:23 UTC Artifacts will be uploaded here
2024-09-12 15:17:28 UTC ya make is running...
🟢 2024-09-12 16:03:08 UTC Build successful.

Copy link

github-actions bot commented Sep 12, 2024

2024-09-12 15:14:32 UTC Pre-commit check linux-x86_64-relwithdebinfo for 4f1c561 has started.
2024-09-12 15:15:45 UTC Artifacts will be uploaded here
2024-09-12 15:19:27 UTC ya make is running...
🟡 2024-09-12 17:12:29 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
40969 35237 0 24 5439 269

2024-09-12 17:16:10 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-09-12 17:27:44 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
302 (only retried tests) 197 0 7 8 90

2024-09-12 17:28:28 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-09-12 17:36:11 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
101 (only retried tests) 13 0 3 0 85

🟢 2024-09-12 17:36:18 UTC Build successful.
🟡 2024-09-12 17:37:02 UTC ydbd size 8.4 GiB changed* by +1.1 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: efdd4c7 merge: 4f1c561 diff diff %
ydbd size 9 041 030 016 Bytes 9 042 190 320 Bytes +1.1 MiB +0.013%
ydbd stripped size 488 545 512 Bytes 488 577 384 Bytes +31.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 Sep 13, 2024

2024-09-13 11:56:10 UTC Pre-commit check linux-x86_64-relwithdebinfo for ee7395b has started.
2024-09-13 11:57:04 UTC Artifacts will be uploaded here
2024-09-13 12:01:03 UTC ya make is running...
🔴 2024-09-13 12:10:24 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 11:56:45 UTC Pre-commit check linux-x86_64-release-clang14 for ee7395b has started.
2024-09-13 11:57:40 UTC Artifacts will be uploaded here
2024-09-13 12:01:17 UTC ya make is running...
🔴 2024-09-13 12:08:33 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 11:56:56 UTC Pre-commit check linux-x86_64-release-asan for ee7395b has started.
2024-09-13 11:57:31 UTC Artifacts will be uploaded here
2024-09-13 12:01:21 UTC ya make is running...
🔴 2024-09-13 12:11:12 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 16:48:28 UTC Pre-commit check linux-x86_64-release-clang14 for 8b36a2a has started.
2024-09-13 16:48:38 UTC Artifacts will be uploaded here
2024-09-13 16:51:36 UTC ya make is running...
🔴 2024-09-13 17:19:57 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 16:48:34 UTC Pre-commit check linux-x86_64-relwithdebinfo for 8b36a2a has started.
2024-09-13 16:48:45 UTC Artifacts will be uploaded here
2024-09-13 16:51:57 UTC ya make is running...
🔴 2024-09-13 17:12:41 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 16:48:35 UTC Pre-commit check linux-x86_64-release-asan for 8b36a2a has started.
2024-09-13 16:48:44 UTC Artifacts will be uploaded here
2024-09-13 16:51:43 UTC ya make is running...
🔴 2024-09-13 17:15:09 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 20:50:33 UTC Pre-commit check linux-x86_64-release-clang14 for 0d2444e has started.
2024-09-13 20:50:43 UTC Artifacts will be uploaded here
2024-09-13 20:53:37 UTC ya make is running...
🟢 2024-09-13 21:20:52 UTC Build successful.

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 20:50:35 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0d2444e has started.
2024-09-13 20:50:44 UTC Artifacts will be uploaded here
2024-09-13 20:53:46 UTC ya make is running...
🟡 2024-09-13 22:27:28 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41021 35476 0 6 5446 93

2024-09-13 22:31:03 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-09-13 22:38:54 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
110 (only retried tests) 23 0 0 1 86

🟢 2024-09-13 22:39:01 UTC Build successful.
🟡 2024-09-13 22:39:38 UTC ydbd size 8.4 GiB changed* by +1.5 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 3553a11 merge: 0d2444e diff diff %
ydbd size 9 044 520 304 Bytes 9 046 063 456 Bytes +1.5 MiB +0.017%
ydbd stripped size 488 952 392 Bytes 488 997 768 Bytes +44.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

Copy link

github-actions bot commented Sep 13, 2024

2024-09-13 20:51:26 UTC Pre-commit check linux-x86_64-release-asan for 0d2444e has started.
2024-09-13 20:51:35 UTC Artifacts will be uploaded here
2024-09-13 20:54:34 UTC ya make is running...
🔴 2024-09-13 23:00:41 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11704 11522 0 35 40 107

🟢 2024-09-13 23:01:46 UTC Build successful.
🟡 2024-09-13 23:02:24 UTC ydbd size 5.6 GiB changed* by +1.4 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 3553a11 merge: 0d2444e diff diff %
ydbd size 6 053 392 304 Bytes 6 054 882 944 Bytes +1.4 MiB +0.025%
ydbd stripped size 1 514 960 464 Bytes 1 515 187 216 Bytes +221.4 KiB +0.015%

*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 Sep 16, 2024

2024-09-16 09:37:11 UTC Pre-commit check linux-x86_64-release-clang14 for 20e948a has started.
2024-09-16 09:37:21 UTC Artifacts will be uploaded here
2024-09-16 09:40:18 UTC ya make is running...
🟢 2024-09-16 10:11:25 UTC Build successful.

Copy link

github-actions bot commented Sep 16, 2024

2024-09-16 09:37:43 UTC Pre-commit check linux-x86_64-relwithdebinfo for 20e948a has started.
2024-09-16 09:37:54 UTC Artifacts will be uploaded here
2024-09-16 09:40:54 UTC ya make is running...
🔴 2024-09-16 11:08:36 UTC Too many tests failed, NOT going to retry
🔴 2024-09-16 11:12:00 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41023 34913 0 549 5441 120

🟢 2024-09-16 11:15:36 UTC Build successful.
🟡 2024-09-16 11:16:19 UTC ydbd size 8.4 GiB changed* by +1.5 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 7e21f33 merge: 20e948a diff diff %
ydbd size 9 043 242 368 Bytes 9 044 823 248 Bytes +1.5 MiB +0.017%
ydbd stripped size 488 944 968 Bytes 488 983 112 Bytes +37.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

Copy link

github-actions bot commented Sep 16, 2024

2024-09-16 09:38:09 UTC Pre-commit check linux-x86_64-release-asan for 20e948a has started.
2024-09-16 09:38:19 UTC Artifacts will be uploaded here
2024-09-16 09:41:26 UTC ya make is running...
🔴 2024-09-16 11:49:50 UTC Too many tests failed, NOT going to retry
🔴 2024-09-16 11:50:57 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11713 10790 0 575 283 65

🟢 2024-09-16 11:52:00 UTC Build successful.
🟡 2024-09-16 11:52:38 UTC ydbd size 5.6 GiB changed* by +1.5 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 7e21f33 merge: 20e948a diff diff %
ydbd size 6 052 711 760 Bytes 6 054 240 440 Bytes +1.5 MiB +0.025%
ydbd stripped size 1 514 892 432 Bytes 1 515 118 736 Bytes +221.0 KiB +0.015%

*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 Sep 16, 2024

2024-09-16 12:10:43 UTC Pre-commit check linux-x86_64-release-clang14 for 6f8bb82 has started.
2024-09-16 12:11:18 UTC Artifacts will be uploaded here
2024-09-16 12:14:16 UTC ya make is running...
🟢 2024-09-16 12:44:47 UTC Build successful.

Copy link

github-actions bot commented Sep 16, 2024

2024-09-16 12:12:20 UTC Pre-commit check linux-x86_64-release-asan for 6f8bb82 has started.
2024-09-16 12:13:01 UTC Artifacts will be uploaded here
2024-09-16 12:16:46 UTC ya make is running...
🔴 2024-09-16 14:26:07 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11718 11336 0 66 37 279

🟢 2024-09-16 14:27:17 UTC Build successful.
🟡 2024-09-16 14:27:53 UTC ydbd size 5.6 GiB changed* by +1.7 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 946e6a2 merge: 6f8bb82 diff diff %
ydbd size 6 045 727 016 Bytes 6 047 523 760 Bytes +1.7 MiB +0.030%
ydbd stripped size 1 513 221 360 Bytes 1 513 483 760 Bytes +256.2 KiB +0.017%

*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 Sep 23, 2024

2024-09-23 15:18:44 UTC Pre-commit check linux-x86_64-release-asan for 3be8480 has started.
2024-09-23 15:19:17 UTC Artifacts will be uploaded here
2024-09-23 15:20:05 UTC Check cancelled

Copy link

github-actions bot commented Sep 23, 2024

2024-09-23 15:20:46 UTC Pre-commit check linux-x86_64-release-asan for 860820c has started.
2024-09-23 15:20:56 UTC Artifacts will be uploaded here
2024-09-23 15:24:04 UTC ya make is running...
🔴 2024-09-23 15:48:02 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 23, 2024

2024-09-23 15:21:07 UTC Pre-commit check linux-x86_64-release-clang14 for 860820c has started.
2024-09-23 15:21:11 UTC Artifacts will be uploaded here
2024-09-23 15:24:13 UTC ya make is running...
🔴 2024-09-23 15:45:06 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 23, 2024

2024-09-23 15:21:34 UTC Pre-commit check linux-x86_64-relwithdebinfo for 860820c has started.
2024-09-23 15:21:44 UTC Artifacts will be uploaded here
2024-09-23 15:24:45 UTC ya make is running...
🔴 2024-09-23 15:59:13 UTC Build failed, see the logs.

Copy link

github-actions bot commented Sep 23, 2024

2024-09-23 16:27:37 UTC Pre-commit check linux-x86_64-release-asan for 469072c has started.
2024-09-23 16:28:10 UTC Artifacts will be uploaded here
2024-09-23 16:31:38 UTC ya make is running...
🔴 2024-09-23 18:41:06 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11780 11382 0 76 266 56

🟢 2024-09-23 18:42:13 UTC Build successful.
🔴 2024-09-23 18:42:48 UTC ydbd size 5.7 GiB changed* by +2.2 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: bcf8689 merge: 469072c diff diff %
ydbd size 6 079 037 464 Bytes 6 081 310 336 Bytes +2.2 MiB +0.037%
ydbd stripped size 1 519 889 520 Bytes 1 520 251 088 Bytes +353.1 KiB +0.024%

*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 Sep 23, 2024

2024-09-23 16:28:51 UTC Pre-commit check linux-x86_64-relwithdebinfo for 469072c has started.
2024-09-23 16:29:50 UTC Artifacts will be uploaded here
2024-09-23 16:33:31 UTC ya make is running...
🟡 2024-09-23 18:06:08 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41152 35551 0 32 5469 100

2024-09-23 18:10:07 UTC ya make is running... (failed tests rerun, try 2)
🟡 2024-09-23 18:21:43 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
144 (only retried tests) 42 0 12 0 90

2024-09-23 18:21:52 UTC ya make is running... (failed tests rerun, try 3)
🔴 2024-09-23 18:33:02 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
107 (only retried tests) 5 0 12 0 90

🟢 2024-09-23 18:33:13 UTC Build successful.
🔴 2024-09-23 18:33:57 UTC ydbd size 8.5 GiB changed* by +3.1 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: bcf8689 merge: 469072c diff diff %
ydbd size 9 070 911 424 Bytes 9 074 203 624 Bytes +3.1 MiB +0.036%
ydbd stripped size 490 539 976 Bytes 490 617 992 Bytes +76.2 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

Copy link

github-actions bot commented Sep 23, 2024

2024-09-23 16:29:02 UTC Pre-commit check linux-x86_64-release-clang14 for 469072c has started.
2024-09-23 16:29:12 UTC Artifacts will be uploaded here
2024-09-23 16:32:14 UTC ya make is running...
🟢 2024-09-23 17:03:18 UTC Build successful.

Copy link

github-actions bot commented Sep 24, 2024

2024-09-24 07:33:15 UTC Pre-commit check linux-x86_64-release-clang14 for 4a96f6b has started.
2024-09-24 07:33:25 UTC Artifacts will be uploaded here
2024-09-24 07:36:32 UTC ya make is running...
🟢 2024-09-24 07:48:17 UTC Build successful.

Copy link

github-actions bot commented Sep 24, 2024

2024-09-24 07:33:41 UTC Pre-commit check linux-x86_64-release-asan for 4a96f6b has started.
2024-09-24 07:33:52 UTC Artifacts will be uploaded here
2024-09-24 07:37:01 UTC ya make is running...
🔴 2024-09-24 09:40:57 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11786 11369 0 62 298 57

🟢 2024-09-24 09:42:00 UTC Build successful.
🔴 2024-09-24 09:42:36 UTC ydbd size 5.7 GiB changed* by +2.3 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: 1002b94 merge: 4a96f6b diff diff %
ydbd size 6 079 048 480 Bytes 6 081 455 936 Bytes +2.3 MiB +0.040%
ydbd stripped size 1 519 895 600 Bytes 1 520 295 920 Bytes +390.9 KiB +0.026%

*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 Sep 24, 2024

2024-09-24 07:34:18 UTC Pre-commit check linux-x86_64-relwithdebinfo for 4a96f6b has started.
2024-09-24 07:34:28 UTC Artifacts will be uploaded here
2024-09-24 07:37:43 UTC ya make is running...
🟡 2024-09-24 08:56:30 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41152 35542 0 7 5500 103

2024-09-24 08:59:58 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-09-24 09:11:32 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
154 (only retried tests) 61 0 0 2 91

🟢 2024-09-24 09:11:40 UTC Build successful.
🔴 2024-09-24 09:12:23 UTC ydbd size 8.5 GiB changed* by +3.1 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: d2b896d merge: 4a96f6b diff diff %
ydbd size 9 071 190 256 Bytes 9 074 479 144 Bytes +3.1 MiB +0.036%
ydbd stripped size 490 550 600 Bytes 490 624 520 Bytes +72.2 KiB +0.015%

*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 Sep 24, 2024

2024-09-24 09:49:21 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5fea1f1 has started.
2024-09-24 09:49:54 UTC Artifacts will be uploaded here
2024-09-24 09:53:18 UTC ya make is running...
🟡 2024-09-24 11:03:09 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41154 35414 0 8 5696 36

2024-09-24 11:06:43 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-09-24 11:18:05 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
290 (only retried tests) 191 0 0 8 91

🟢 2024-09-24 11:18:14 UTC Build successful.
🔴 2024-09-24 11:18:56 UTC ydbd size 8.5 GiB changed* by +3.1 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: 922ce5c merge: 5fea1f1 diff diff %
ydbd size 9 071 190 256 Bytes 9 074 400 816 Bytes +3.1 MiB +0.035%
ydbd stripped size 490 550 600 Bytes 490 620 424 Bytes +68.2 KiB +0.014%

*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 Sep 24, 2024

2024-09-24 09:49:57 UTC Pre-commit check linux-x86_64-release-clang14 for 5fea1f1 has started.
2024-09-24 09:51:00 UTC Artifacts will be uploaded here
2024-09-24 09:54:44 UTC ya make is running...
🟢 2024-09-24 10:02:15 UTC Build successful.

Copy link

github-actions bot commented Sep 24, 2024

2024-09-24 09:50:23 UTC Pre-commit check linux-x86_64-release-asan for 5fea1f1 has started.
2024-09-24 09:50:34 UTC Artifacts will be uploaded here
2024-09-24 09:53:37 UTC ya make is running...
🔴 2024-09-24 11:42:44 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11773 11414 0 35 272 52

🟢 2024-09-24 11:43:49 UTC Build successful.
🔴 2024-09-24 11:44:25 UTC ydbd size 5.7 GiB changed* by +2.1 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: 922ce5c merge: 5fea1f1 diff diff %
ydbd size 6 079 178 392 Bytes 6 081 362 536 Bytes +2.1 MiB +0.036%
ydbd stripped size 1 519 930 128 Bytes 1 520 282 992 Bytes +344.6 KiB +0.023%

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

@aavdonkin aavdonkin changed the title Put TColumnShard* object to TDBWrapper Maintan schema versions reference count and remove unused from local database and memory Sep 24, 2024
Copy link

github-actions bot commented Sep 24, 2024

2024-09-24 12:39:39 UTC Pre-commit check linux-x86_64-relwithdebinfo for f33b4cf has started.
2024-09-24 12:39:48 UTC Artifacts will be uploaded here
2024-09-24 12:42:47 UTC ya make is running...
🟡 2024-09-24 15:36:45 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41156 35598 0 3 5458 97

2024-09-24 15:40:22 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-09-24 15:51:37 UTC Tests successful.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
103 (only retried tests) 12 0 0 1 90

🟢 2024-09-24 15:51:44 UTC Build successful.
🔴 2024-09-24 15:52:25 UTC ydbd size 8.5 GiB changed* by +2.6 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: a19277a merge: f33b4cf diff diff %
ydbd size 9 073 110 720 Bytes 9 075 839 472 Bytes +2.6 MiB +0.030%
ydbd stripped size 490 576 904 Bytes 490 647 112 Bytes +68.6 KiB +0.014%

*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 Sep 24, 2024

2024-09-24 12:39:47 UTC Pre-commit check linux-x86_64-release-clang14 for f33b4cf has started.
2024-09-24 12:39:57 UTC Artifacts will be uploaded here
2024-09-24 12:42:59 UTC ya make is running...
🟢 2024-09-24 13:12:32 UTC Build successful.

Copy link

github-actions bot commented Sep 24, 2024

2024-09-24 12:40:56 UTC Pre-commit check linux-x86_64-release-asan for f33b4cf has started.
2024-09-24 12:41:04 UTC Artifacts will be uploaded here
2024-09-24 12:44:04 UTC ya make is running...
🔴 2024-09-24 14:44:25 UTC Some tests failed, follow the links below.

Test history | Ya make output

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11776 11585 0 34 35 122

🟢 2024-09-24 14:45:29 UTC Build successful.
🟡 2024-09-24 14:46:06 UTC ydbd size 5.7 GiB changed* by +1.6 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: a19277a merge: f33b4cf diff diff %
ydbd size 6 080 164 376 Bytes 6 081 829 568 Bytes +1.6 MiB +0.027%
ydbd stripped size 1 520 042 160 Bytes 1 520 332 240 Bytes +283.3 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

#pragma once

#if 0
#define TEMPLOG(x) LOG_S_CRIT(x)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Для выборочной записи логов можно использовать AFL_DEBUG|TRACE|...

Как будто они решают ту же задачу -- зачем ещё один механизм?

@@ -247,6 +251,7 @@ class TTransactionContext : public TTxMemoryProviderBase {
NTable::TDatabase &DB;
NWilson::TSpan &TransactionSpan;
NWilson::TSpan TransactionExecutionSpan;
NFlatExecutorSetup::ITablet* Owner = nullptr;
Copy link
Collaborator

@swalrus1 swalrus1 Sep 24, 2024

Choose a reason for hiding this comment

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

Зачем таблет в контексте транзакции?

Почему нельзя прокинуть CS, не нагружая им TTransactionContext? Но лучше даже не передавать CS, а передавать только счётчики туда, где они используются.

@@ -620,6 +717,29 @@ class TColumnShard
}

TColumnShard(TTabletStorageInfo* info, const TActorId& tablet);

void VersionAddRef(ui64 portion, ui64 pathId, ui64 version) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Счётчики стоит инкапсулировать в класс, чтобы не передавать CS везде, где нужен доступ к ним.

Как будто можно убрать эти методы и передавать VersionCounts везде.

template<class Key, class Versions>
ui32 VersionRemoveRef(Versions& versions, const Key& portion, ui64 version) {
auto iter = versions.find(portion);
if (iter == versions.end()) { //Portion is already removed from local databae, no need to decrease ref count
Copy link
Collaborator

Choose a reason for hiding this comment

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

А когда VersionRemoveRef может позваться дважды для одной порции? Почему возникает необходимость проверять, что порция не посчитана ранее?

То же самое для VersionAddRef.

if (!PrimaryIndex) {
PrimaryIndex = std::make_unique<NOlap::TColumnEngineForLogs>(TabletId, StoragesManager, version, schema);
PrimaryIndex = std::make_unique<NOlap::TColumnEngineForLogs>(TabletId, StoragesManager, version, schema, CS, &db);
Copy link
Collaborator

Choose a reason for hiding this comment

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

У db время жизни ограничено фазой Execute транзакции, а ссылка на неё сохраняется в TColumnEngineForLogs, который переживёт транзакцию. TColumnEngineForLogs не должен взаимодействовать с локальной базой вне транзакции, а если он так не делает, то можно не хранить в нём ссылку.

@@ -95,6 +120,9 @@ THashSet<TInsertWriteId> TInsertTable::OldWritesToAbort(const TInstant& now) con
void TInsertTable::EraseCommittedOnExecute(
IDbWrapper& dbTable, const TCommittedData& data, const std::shared_ptr<IBlobsDeclareRemovingAction>& blobsAction) {
if (Summary.HasCommitted(data)) {
dbTable.OnCommit([cs = CS, planStep = data.GetSnapshot().GetPlanStep(), txId = data.GetSnapshot().GetTxId(), pathId = data.GetPathId(), dedupId = data.GetDedupId(), schema = data.GetSchemaVersion()]() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

А можно обновить счётчики в таком месте, чтобы было очевидно, что удаление порции из памяти ровно один раз декрементирует счётчик и аналогично для добавления порции? Я не вчитывался, но как будто это можно сделать в TGranuleMeta или рядом с ней.

Сейчас, мне кажется, есть две проблемы:

  1. Чтобы не обновить счётчик дважды для одной порции, приходится дублировать список существующих порций в VersionCounts. Непонятно, почему нельзя избежать этих проверок.
  2. Не очевидно, что удаление порции всегда приводит к декременту счётчика и добавление -- к инкременрту. Как будто эту гарантию легко случайно нарушить, меняя код.

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