Skip to content

YQ fixed kqprun grpc endpoints #19790

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GrigoriyPA
Copy link
Collaborator

Changelog entry

Added per node kqprun grpc endpoints in kqprun

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements per-node kqprun GRpc endpoints by updating tenant creation and GRpc initialization logic.

  • In ydb_setup.cpp, the GRpc port parameter has been removed from CreateTenant and tenant/server initialization logic has been adjusted.
  • In test_client.h and test_client.cpp, the GRpc structures have been updated to support a per-node mapping for GRpc endpoints.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
ydb/tests/tools/kqprun/src/ydb_setup.cpp Removed the grpcPort parameter and shifted GRpc endpoint enabling logic from CreateTenant into tenant initialization methods.
ydb/core/testlib/test_client.h Changed the TenantsGRpc mapping to use a nested unordered_map keyed by tenant then node index.
ydb/core/testlib/test_client.cpp Modified GRpc enabling and lookup logic to utilize per-node GRpc info.

Copy link

🟢 2025-06-18 08:46:34 UTC The validation of the Pull Request description is successful.

Copy link

github-actions bot commented Jun 18, 2025

2025-06-18 08:47:17 UTC Pre-commit check linux-x86_64-release-asan for 653686e has started.
2025-06-18 08:47:28 UTC Artifacts will be uploaded here
2025-06-18 08:50:25 UTC ya make is running...
🟡 2025-06-18 09:49: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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
11120 11029 0 72 7 12

2025-06-18 09:50:48 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-06-18 10:08:18 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?
1019 (only retried tests) 972 0 35 2 10

2025-06-18 10:08:33 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-06-18 10:23:09 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?
853 (only retried tests) 807 0 33 2 11

🟢 2025-06-18 10:23:22 UTC Build successful.
🟢 2025-06-18 10:23:48 UTC ydbd size 3.9 GiB changed* by -96 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: abeada2 merge: 653686e diff diff %
ydbd size 4 173 702 408 Bytes 4 173 702 312 Bytes -96 Bytes -0.000%
ydbd stripped size 1 447 299 032 Bytes 1 447 298 968 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 Jun 18, 2025

2025-06-18 08:47:50 UTC Pre-commit check linux-x86_64-relwithdebinfo for 653686e has started.
2025-06-18 08:48:02 UTC Artifacts will be uploaded here
2025-06-18 08:51:05 UTC ya make is running...
🟡 2025-06-18 09:34:03 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?
22898 21666 0 1 1216 15

2025-06-18 09:36:08 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-06-18 09:46:11 UTC Tests successful.

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

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
223 (only retried tests) 215 0 0 0 8

🟢 2025-06-18 09:46:18 UTC Build successful.
🟢 2025-06-18 09:46:34 UTC ydbd size 2.2 GiB changed* by 0 Bytes, which is <= 0 Bytes vs main: OK

ydbd size dash main: abeada2 merge: 653686e diff diff %
ydbd size 2 373 000 616 Bytes 2 373 000 616 Bytes 0 Bytes 0.000%
ydbd stripped size 497 531 720 Bytes 497 531 720 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

// Port for first static node also used in cluster initialization
Server_->EnableGRpc(grpcPortGen.GetPort(), node, absolutePath);
}
} else if (Settings_.MonitoringEnabled) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

А тут точно должен быть else if, а не if? (так было и в оригинальном коде выше, если это ошибка -- то не новая, но чуть странно)

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