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

roc_pipeline benchmark: fix a task completer race #788

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

sm00th
Copy link

@sm00th sm00th commented Dec 15, 2024

In peakload benchmarks it is possible for the TaskThread object to be removed along with the pipeline_task_completed() callback before all tasks are completed. This results in a SIGABRT with "pure virtual method called" message.

To fix this move pipeline_task_completed() to TestPipeline class that has a longer lifespan.

Fixes: #537

In peakload benchmarks it is possible for the TaskThread object to be
removed along with the pipeline_task_completed() callback before all
tasks are completed. This results in a SIGABRT with "pure virtual method
called" message.

To fix this move pipeline_task_completed() to TestPipeline class that has
a longer lifespan.

Fixes: roc-streaming#537
@github-actions github-actions bot added the contribution A pull-request by someone else except maintainers label Dec 15, 2024
@gavv gavv added this to the next milestone Dec 19, 2024
@gavv gavv force-pushed the task_completer_thread_race_fix branch from 063b1bc to ee3f557 Compare December 19, 2024 12:42
@gavv gavv merged commit d3026ed into roc-streaming:develop Dec 19, 2024
4 checks passed
@gavv
Copy link
Member

gavv commented Dec 19, 2024

Thanks a lot!

When testing this, I found that this benchmarks had a few regressions after recent rework of factory interfaces. (Probably you've noticed too). I've pushed a fix: d6bf124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution A pull-request by someone else except maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants