Skip to content

Fixes #4356: Modify order of protocol upgrade detection. - #4357

Merged
thedrow merged 1 commit into
celery:3.1from
zapier:v3.1.x
Nov 12, 2017
Merged

thedrow merged 1 commit into
celery:3.1from
zapier:v3.1.x

Conversation

@freakboy3742

Copy link
Copy Markdown
Contributor

Description

If a task is executed under Celery 3.1.25, and is retried under Celery 4 node, and then retried again under a Celery 3.1.25 node, the Celery 3.1.25 node will crash, resulting in message loss.

When the Celery 3.1.25 task is executed on a Celery 4, the task message is upgraded to Protocol 2. However, the upgrade results in a hybrid message that complies with both formats, and when the task fails and is retried on the Celery 3.1.25 worker, the "hybrid" message is mis-identified as a Protocol 1

By changing the detection order, the "hybrid" is correctly identified as being Protocol 2 compliant.

Unfortunately, this change must be made against the 3.1 branch, as the error lies in the "forward-compatibility" code introduced in that version.

we detected that during cycles between celery 3.1.25 and celery 4.1.0 workers, a message returning from a celery 4.1.0 worker crashes 3.1.25 workers with an unrecoverable error due to "hybrid" messages.
@thedrow

thedrow commented Nov 12, 2017

Copy link
Copy Markdown
Contributor

I'll need to release a new 3.x version.

@ewdurbin
ewdurbin deleted the v3.1.x branch November 18, 2017 23:34
@auvipy

auvipy commented Dec 19, 2017

Copy link
Copy Markdown
Member

@thedrow do if possible

@thedrow

thedrow commented Dec 20, 2017

Copy link
Copy Markdown
Contributor

Will do with the release of 4.2.

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.

4 participants