Skip to content

Protect memory queue purges with the queue mutex - #2827

Open
IlyaKhalafi wants to merge 2 commits into
celery:mainfrom
IlyaKhalafi:campaign30/2026-11-06/kombu
Open

IlyaKhalafi wants to merge 2 commits into
celery:mainfrom
IlyaKhalafi:campaign30/2026-11-06/kombu

Conversation

@IlyaKhalafi

Copy link
Copy Markdown

This PR fixes memory queue purges racing with consumers and raising IndexError. The message count and removal now share the queue mutex.

Fixes #2826

The unit suite passes with 2,225 passed and 171 optional skips. The related transport and messaging tests, pinned pre-commit hooks, flake8, pydocstyle and mypy pass. External broker integration tests were not run.

@auvipy auvipy added this to the 5.7.x milestone Nov 7, 2026
@auvipy
auvipy self-requested a review November 8, 2026 06:22
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.

Memory queue purges can race with consumers and raise IndexError

2 participants