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

[fea] Avoid multithreaded write lock conflicts in event queue. #754

Merged
merged 1 commit into from
May 8, 2023

Conversation

Ted-Jiang
Copy link
Member

@Ted-Jiang Ted-Jiang commented Apr 25, 2023

Which issue does this PR close?

Closes #753.

Rationale for this change

After fix concurrency visit lock before four long running event reduce to 200~500 micro seconds cost.

2023-04-17T05:36:45.695838Z  WARN tokio-runtime-worker ThreadId(16) ballista_scheduler::scheduler_server::query_stage_scheduler: [METRICS] JobUpdated : job_id=jr3EVUI. events cost 553 us!

What changes are included in this PR?

Are there any user-facing changes?

queued_at,
submitted_at: timestamp_millis(),
resubmit: false,
plan,
Copy link
Member Author

Choose a reason for hiding this comment

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

move the job related status updating to QueryStageSchedulerEvent::JobSubmitted

@Ted-Jiang
Copy link
Member Author

I will merge this one, If anyone have problem i will be happy to fix it.

@Ted-Jiang Ted-Jiang merged commit 9b4a121 into apache:main May 8, 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.

[fea] Avoid multithreaded write lock conflicts in event queue.
1 participant