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

Only decode plan in LaunchMultiTaskParams once #743

Merged
merged 16 commits into from
Apr 13, 2023
Merged

Conversation

Dandandan
Copy link
Contributor

@Dandandan Dandandan commented Apr 12, 2023

Which issue does this PR close?

Closes #742

Rationale for this change

When starting many tasks on single executors, the execution plan is decoded for every task/partition.
This can take quite a bit of time for larger plans, delaying execution and consumes quite some memory as well for executors that start a lot of tasks for the same query stage at the same time.

What changes are included in this PR?

Decode the plan only once and share the Arc<dyn ExecutionPlan>.

Are there any user-facing changes?

@Dandandan Dandandan changed the title Only decode plan once Only decode plan in LaunchMultiTaskParams once Apr 12, 2023
@Dandandan Dandandan marked this pull request as ready for review April 13, 2023 09:00
Copy link
Contributor

@thinkharderdev thinkharderdev left a comment

Choose a reason for hiding this comment

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

LGTM

@Dandandan Dandandan merged commit 4e4842c into main Apr 13, 2023
yahoNanJing pushed a commit to yahoNanJing/arrow-ballista that referenced this pull request Jun 26, 2023
yahoNanJing added a commit that referenced this pull request Jun 28, 2023
…e decoded one (#817)

* Revert "Only decode plan in `LaunchMultiTaskParams`  once (#743)"

This reverts commit 4e4842c.

* Refactor the TaskDefinition by changing encoding execution plan to the decoded one

* Refine the error handling of run_task in the executor_server

---------

Co-authored-by: yangzhong <[email protected]>
yahoNanJing pushed a commit to yahoNanJing/arrow-ballista that referenced this pull request Jun 28, 2023
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.

Decode LaunchMultiTaskParams execution plan only once
2 participants