Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Add "non sendable" stamps #31471

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

Merged
merged 1 commit into from
May 21, 2019

Conversation

weaverryan
Copy link
Member

Q A
Branch? 4.3
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #31460
License MIT
Doc PR not needed

Fixes a bug where Symfony serialization of the AmqpReceivedStamp sometimes caused problems.

It's still a mystery why the AmqpReceivedStamp caused a segfault sometimes when going through the Symfony serializer or the VarDumper. But, that stamp really didn't need to be sent on redelivery anyways.

I don't love making the removal the responsibility of the serializers, but it didn't work well anywhere else.

Cheers!

Copy link
Contributor

@sroze sroze left a comment

Choose a reason for hiding this comment

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

The use-case is definitely there 👍

@weaverryan weaverryan force-pushed the messenger-non-sendable-stamps branch from 42e4158 to 37a43d6 Compare May 13, 2019 13:46
Fixes a bug where Symfony serialization of the AmqpReceivedStamp sometimes caused problems.
@weaverryan weaverryan force-pushed the messenger-non-sendable-stamps branch from 37a43d6 to 34e7781 Compare May 13, 2019 13:49
@weaverryan
Copy link
Member Author

Moved implementation to a new Envelope method.

I've only added the new "non-sendable stamp interface" to 3 transport-specific "received" stamps. Generally speaking, I think that stamps should be sent, unless there is a clear reason otherwise. Allowing stamps to be sendable (the default) can make the messages bigger when being retried after failure. But they also allow for a really beautiful "history" as you can look at an Envelope and see exactly what happened to it over time.

Anyways, this is ready to go!

@weaverryan
Copy link
Member Author

This is still ready to go.

@fabpot
Copy link
Member

fabpot commented May 21, 2019

Thank you @weaverryan.

@fabpot fabpot merged commit 34e7781 into symfony:4.3 May 21, 2019
fabpot added a commit that referenced this pull request May 21, 2019
This PR was merged into the 4.3 branch.

Discussion
----------

[Messenger] Add "non sendable" stamps

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31460
| License       | MIT
| Doc PR        | not needed

Fixes a bug where Symfony serialization of the AmqpReceivedStamp sometimes caused problems.

It's still a mystery why the `AmqpReceivedStamp` caused a segfault *sometimes* when going through the Symfony serializer or the `VarDumper`. But, that stamp really didn't need to be sent on redelivery anyways.

I don't love making the removal the responsibility of the serializers, but it didn't work well anywhere else.

Cheers!

Commits
-------

34e7781 Adding a new NonSendableStampInterface to avoid sending certain stamps
@fabpot fabpot mentioned this pull request May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.