Skip to content

Conversation

@kardymonds
Copy link
Collaborator

Changelog entry

...

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

@kardymonds kardymonds requested a review from a team as a code owner October 3, 2025 12:07
@github-actions
Copy link

github-actions bot commented Oct 3, 2025

2025-10-03 12:08:43 UTC Pre-commit check linux-x86_64-release-asan for 85867e1 has started.
2025-10-03 12:08:58 UTC Artifacts will be uploaded here
2025-10-03 12:12:29 UTC ya make is running...
2025-10-03 12:13:23 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

🟢 2025-10-03 12:09:09 UTC The validation of the Pull Request description is successful.

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

2025-10-03 12:09:48 UTC Pre-commit check linux-x86_64-relwithdebinfo for 85867e1 has started.
2025-10-03 12:10:03 UTC Artifacts will be uploaded here
2025-10-03 12:13:22 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

2025-10-03 12:14:51 UTC Pre-commit check linux-x86_64-release-asan for 5a8d954 has started.
2025-10-03 12:15:05 UTC Artifacts will be uploaded here
2025-10-03 12:18:36 UTC ya make is running...
2025-10-03 12:50:36 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Oct 3, 2025

2025-10-03 12:15:35 UTC Pre-commit check linux-x86_64-relwithdebinfo for 5a8d954 has started.
2025-10-03 12:15:39 UTC Artifacts will be uploaded here
2025-10-03 12:19:17 UTC ya make is running...
2025-10-03 12:50:33 UTC Check cancelled

}

NThreading::TFuture<TGetSchemeEntryResult> GetSchemeEntryType(
NThreading::TFuture<TGetSchemeEntryResult> GetSchemeEntryTypeImpl(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Предлагаю перенести реализацию в анонимный namespace (так как она больше не определена в .h файле)

opts
.DiscoveryEndpoint(endpoint)
.Database(database)
.Database(!addRoot ? database : "/Root" + database)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Может быть тут заменить !addRoot -> addRoot? (и переставить местами значения)


return schemeClient->DescribePath(path)
.Apply([actorSystem = NActors::TActivationContext::ActorSystem(), p = path, sc = schemeClient, database, endpoint](const NThreading::TFuture<NYdb::NScheme::TDescribePathResult>& result) {
return schemeClient->DescribePath(!addRoot ? path : "/Root" + path)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Может быть тут заменить !addRoot -> addRoot? (и переставить местами значения)

bool useTls,
const TString& structuredTokenJson,
const TString& path) {
return GetSchemeEntryTypeImpl(NActors::TActivationContext::ActorSystem(), federatedQuerySetup, endpoint, database, useTls, structuredTokenJson, path, false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Предлагаю вызвать CanonizePath от database перед дописывание /Root, чтобы гарантировать наличие '/' в начале:

Suggested change
return GetSchemeEntryTypeImpl(NActors::TActivationContext::ActorSystem(), federatedQuerySetup, endpoint, database, useTls, structuredTokenJson, path, false);
return GetSchemeEntryTypeImpl(NActors::TActivationContext::ActorSystem(), federatedQuerySetup, endpoint, CanonizePath(database), useTls, structuredTokenJson, path, false);


NThreading::TFuture<TGetSchemeEntryResult> GetSchemeEntryType(
NThreading::TFuture<TGetSchemeEntryResult> GetSchemeEntryTypeImpl(
TActorSystem *actorSystem,
Copy link
Collaborator

@uzhastik uzhastik Oct 3, 2025

Choose a reason for hiding this comment

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

* прижимаем влево

yumkam
yumkam previously approved these changes Oct 3, 2025
@github-actions
Copy link

github-actions bot commented Oct 3, 2025

2025-10-03 12:51:21 UTC Pre-commit check linux-x86_64-relwithdebinfo for 63621cf has started.
2025-10-03 12:53:00 UTC Artifacts will be uploaded here
2025-10-03 12:57:22 UTC ya make is running...
🟡 2025-10-03 14:32:29 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
38625 35851 0 4 2739 31

2025-10-03 14:32:39 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-10-03 14:52:04 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
321 (only retried tests) 298 0 0 0 23

🟢 2025-10-03 14:52:07 UTC Build successful.
🟢 2025-10-03 14:52:24 UTC ydbd size 2.2 GiB changed* by +14.5 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 8ca586a merge: 63621cf diff diff %
ydbd size 2 415 631 880 Bytes 2 415 646 736 Bytes +14.5 KiB +0.001%
ydbd stripped size 514 714 248 Bytes 514 715 976 Bytes +1.7 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 Oct 3, 2025

2025-10-03 12:52:54 UTC Pre-commit check linux-x86_64-release-asan for 63621cf has started.
2025-10-03 12:53:25 UTC Artifacts will be uploaded here
2025-10-03 12:57:35 UTC ya make is running...
🟡 2025-10-03 14:55:12 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15683 15225 0 169 267 22

🟢 2025-10-03 14:55:18 UTC Build successful.
🟢 2025-10-03 14:55:42 UTC ydbd size 3.7 GiB changed* by +21.5 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 8ca586a merge: 63621cf diff diff %
ydbd size 4 017 658 360 Bytes 4 017 680 400 Bytes +21.5 KiB +0.001%
ydbd stripped size 1 493 136 544 Bytes 1 493 141 536 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

uzhastik
uzhastik previously approved these changes Oct 3, 2025
yumkam
yumkam previously approved these changes Oct 22, 2025
Copy link
Collaborator

@yumkam yumkam left a comment

Choose a reason for hiding this comment

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

(посравнивал код - если получили CLIENT_UNAUTH, ретраимся с добавлением /Root в начало database, других отличий нет, lgtm)

auto describePathResult = result.GetValue();
TGetSchemeEntryResult res;
if (!describePathResult.IsSuccess()) {
if (describePathResult.GetStatus() == NYdb::EStatus::CLIENT_UNAUTHENTICATED && !addRoot) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

А имеет ли смысл когда-либо делать /Root/Root? (соответственно, можно смотреть на .starts_with("/Root")); впрочем, как сейчас тоже нормально

@kardymonds kardymonds dismissed stale reviews from yumkam and uzhastik via 1b4c6cf October 27, 2025 06:30
@github-actions
Copy link

github-actions bot commented Oct 27, 2025

2025-10-27 06:33:32 UTC Pre-commit check linux-x86_64-release-asan for c4fc9e2 has started.
2025-10-27 06:33:46 UTC Artifacts will be uploaded here
2025-10-27 06:35:07 UTC ya make is running...
🟡 2025-10-27 08:40:46 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15480 14968 0 225 267 20

🟢 2025-10-27 08:40:51 UTC Build successful.
🟢 2025-10-27 08:41:15 UTC ydbd size 3.8 GiB changed* by +25.4 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: fd2cb7b merge: c4fc9e2 diff diff %
ydbd size 4 055 777 320 Bytes 4 055 803 312 Bytes +25.4 KiB +0.001%
ydbd stripped size 1 506 056 128 Bytes 1 506 065 216 Bytes +8.9 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 Oct 27, 2025

2025-10-27 06:33:44 UTC Pre-commit check linux-x86_64-relwithdebinfo for c4fc9e2 has started.
2025-10-27 06:33:58 UTC Artifacts will be uploaded here
2025-10-27 06:35:21 UTC ya make is running...
🟡 2025-10-27 08:03:25 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39017 36228 0 3 2763 23

2025-10-27 08:03:35 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-10-27 08:25:23 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
428 (only retried tests) 406 0 2 0 20

2025-10-27 08:25:26 UTC ya make is running... (failed tests rerun, try 3)
🔴 2025-10-27 08:43:26 UTC Some tests failed, follow the links below.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
416 (only retried tests) 397 0 1 0 18

🟢 2025-10-27 08:43:29 UTC Build successful.
🟢 2025-10-27 08:43:46 UTC ydbd size 2.3 GiB changed* by +14.4 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: fd2cb7b merge: c4fc9e2 diff diff %
ydbd size 2 437 356 520 Bytes 2 437 371 240 Bytes +14.4 KiB +0.001%
ydbd stripped size 518 133 704 Bytes 518 135 368 Bytes +1.6 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

@kardymonds kardymonds requested a review from a team as a code owner October 27, 2025 11:45
@github-actions
Copy link

github-actions bot commented Oct 27, 2025

2025-10-27 11:49:29 UTC Pre-commit check linux-x86_64-release-asan for 514e953 has started.
2025-10-27 11:49:53 UTC Artifacts will be uploaded here
2025-10-27 11:51:57 UTC ya make is running...
🟡 2025-10-27 14:02:07 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15481 14992 0 239 231 19

🟢 2025-10-27 14:02:13 UTC Build successful.
🔴 2025-10-27 14:02:37 UTC ydbd size 3.8 GiB changed* by +4.4 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: aa1cb3a merge: 514e953 diff diff %
ydbd size 4 055 911 368 Bytes 4 060 489 216 Bytes +4.4 MiB +0.113%
ydbd stripped size 1 506 943 104 Bytes 1 508 599 488 Bytes +1.6 MiB +0.110%

*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 Oct 27, 2025

2025-10-27 11:49:30 UTC Pre-commit check linux-x86_64-relwithdebinfo for 514e953 has started.
2025-10-27 11:49:46 UTC Artifacts will be uploaded here
2025-10-27 11:51:09 UTC ya make is running...
🟡 2025-10-27 13:35:10 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39043 36198 0 9 2806 30

2025-10-27 13:35:20 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-10-27 14:02:14 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
1078 (only retried tests) 1052 0 4 0 22

2025-10-27 14:02:17 UTC ya make is running... (failed tests rerun, try 3)
🟢 2025-10-27 14:24:35 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
761 (only retried tests) 742 0 0 0 19

🟢 2025-10-27 14:24:38 UTC Build successful.
🔴 2025-10-27 14:24:56 UTC ydbd size 2.3 GiB changed* by +2.8 MiB, which is >= 2.0 MiB vs main: Alert

ydbd size dash main: aa1cb3a merge: 514e953 diff diff %
ydbd size 2 437 018 600 Bytes 2 439 906 536 Bytes +2.8 MiB +0.119%
ydbd stripped size 518 366 664 Bytes 518 918 664 Bytes +539.1 KiB +0.106%

*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 Oct 29, 2025

2025-10-29 10:43:10 UTC Pre-commit check linux-x86_64-relwithdebinfo for 41514dd has started.
2025-10-29 10:43:17 UTC Artifacts will be uploaded here
2025-10-29 10:44:52 UTC ya make is running...
🟡 2025-10-29 12:19:03 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39073 36236 0 8 2795 34

2025-10-29 12:19:20 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-10-29 12:39:37 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat | Test bloat

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

2025-10-29 12:39:45 UTC ya make is running... (failed tests rerun, try 3)
🟢 2025-10-29 12:58:26 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
453 (only retried tests) 433 0 0 0 20

🟢 2025-10-29 12:58:29 UTC Build successful.
🟢 2025-10-29 12:58:49 UTC ydbd size 2.3 GiB changed* by +14.5 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: f361531 merge: 41514dd diff diff %
ydbd size 2 427 610 680 Bytes 2 427 625 568 Bytes +14.5 KiB +0.001%
ydbd stripped size 517 613 768 Bytes 517 615 624 Bytes +1.8 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 Oct 29, 2025

2025-10-29 10:47:18 UTC Pre-commit check linux-x86_64-release-asan for 41514dd has started.
2025-10-29 10:47:43 UTC Artifacts will be uploaded here
2025-10-29 10:49:44 UTC ya make is running...
🟡 2025-10-29 12:49:50 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15503 15075 0 161 249 18

🟢 2025-10-29 12:49:56 UTC Build successful.
🟢 2025-10-29 12:50:22 UTC ydbd size 3.8 GiB changed* by +25.4 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: f361531 merge: 41514dd diff diff %
ydbd size 4 063 244 720 Bytes 4 063 270 744 Bytes +25.4 KiB +0.001%
ydbd stripped size 1 509 631 736 Bytes 1 509 640 888 Bytes +8.9 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

@kardymonds kardymonds merged commit ad8b580 into ydb-platform:main Oct 29, 2025
12 checks passed
GrigoriyPA pushed a commit to GrigoriyPA/ydb that referenced this pull request Nov 6, 2025
GrigoriyPA pushed a commit to GrigoriyPA/ydb that referenced this pull request Nov 6, 2025
qyryq pushed a commit to qyryq/ydb that referenced this pull request Nov 24, 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.

5 participants