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

[dq] Fix the parallel precompute execution hangup in some cases #5046

Merged
merged 1 commit into from
May 31, 2024

Conversation

rvu1024
Copy link
Member

@rvu1024 rvu1024 commented May 30, 2024

Changelog entry

The root cause of the hang-up is the common ExecState in the dq exec transformer. The completion of any precompute triggers multiple TAsyncTransformCallback execution for all running graphs with precomputes. The first graph executes TAsyncTransformCallback, creates new promise, and adds subscription for it. The subsequent TAsyncTransformCallback execution overrides the promise, and then the first graph has no chance to report completion.
This fix keeps the common ExecState for all precomputes, but uses separate futures for each precompute node.

Changelog category

  • Bugfix

Additional information

...

@rvu1024 rvu1024 marked this pull request as ready for review May 30, 2024 15:30
@rvu1024 rvu1024 requested a review from a team as a code owner May 30, 2024 15:30
@rvu1024 rvu1024 added the area/yql YQL query language issues label May 30, 2024
Copy link

github-actions bot commented May 30, 2024

2024-05-30 15:58:21 UTC Pre-commit check for aae297b has started.
2024-05-30 16:01:05 UTC Build linux-x86_64-release-clang14 is running...
🟢 2024-05-30 16:27:43 UTC Build successful.

Copy link

github-actions bot commented May 30, 2024

2024-05-30 16:01:30 UTC Pre-commit check for aae297b has started.
2024-05-30 16:03:57 UTC Build linux-x86_64-release-asan is running...
🟢 2024-05-30 16:29:14 UTC Build successful.
2024-05-30 16:29:26 UTC Tests are running...
🔴 2024-05-30 18:08:10 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
9213 9139 0 29 26 19

Copy link

github-actions bot commented May 30, 2024

2024-05-30 16:18:23 UTC Pre-commit check for aae297b has started.
2024-05-30 16:20:53 UTC Build linux-x86_64-relwithdebinfo is running...
🟢 2024-05-30 16:24:24 UTC Build successful.
2024-05-30 16:24:37 UTC Tests are running...
🔴 2024-05-30 18:04:00 UTC Some tests failed, follow the links below.

Test history

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
62502 49925 0 12 12549 16

@rvu1024 rvu1024 merged commit 4b60d4d into ydb-platform:main May 31, 2024
12 of 19 checks passed
@rvu1024 rvu1024 deleted the precompute branch May 31, 2024 13:47
@StekPerepolnen StekPerepolnen mentioned this pull request May 31, 2024
@niksaveliev niksaveliev mentioned this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/yql YQL query language issues bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants