Skip to content

Sync EvaluteExpr execution (#11801) (#14455) #14857

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

Conversation

gridnevvvit
Copy link
Member

During query compilation special subroutine called "Expression Evaluation" may be triggered (most common case is Constant Folding in query optimization phase).

It was implemented with async API and future waiting. In some rare cases (erros or failures) future was not completed and compilation hangs forever

This path removes future from call stack and replaces it with direct sync call. It requires change of internal API, it is one of the reason why this pattern was not choosed at the time of the development.

The fix was checked with load test (enabled in this PR) and by @dcherednik in manual runs.

@gridnevvvit gridnevvvit requested a review from a team as a code owner February 20, 2025 16:17
Copy link

github-actions bot commented Feb 20, 2025

2025-02-20 16:19:14 UTC Pre-commit check for 03e7818 has started.
2025-02-20 16:21:53 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2025-02-20 17:04:35 UTC Build successful.
2025-02-20 17:04:53 UTC Tests are running...
🔴 2025-02-20 19:06:53 UTC Some tests failed, follow the links below.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39072 33794 0 23 5218 37

Copy link

github-actions bot commented Feb 20, 2025

2025-02-20 16:25:12 UTC Pre-commit check for 03e7818 has started.
2025-02-20 16:27:55 UTC Build linux-x86_64-release-asan is running...
🟢 2025-02-20 16:51:41 UTC Build successful.
2025-02-20 16:52:00 UTC Tests are running...
🔴 2025-02-20 19:16:13 UTC Some tests failed, follow the links below.

Test history | Test log

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10504 10394 0 38 27 45

@gridnevvvit gridnevvvit enabled auto-merge (squash) February 20, 2025 18:15
@gridnevvvit gridnevvvit merged commit 59406c9 into ydb-platform:stable-24-4-1-hotfix Feb 20, 2025
6 of 10 checks passed
@gridnevvvit gridnevvvit deleted the merge-sync-expr branch February 25, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants