Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Messenger] Fix rejecting of pending messages #31396

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

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented May 6, 2019

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR -

As discussed in #31387 (comment). It seems pending messages are not removed by calling xdel so we need to call xack first to remove them from the pending state and then call xdel to remove it from the complete stream.

It seems to be the correct way as mentioned in: https://github.com/antirez/redis/issues/5754

Test should be the same as added in: https://github.com/symfony/symfony/pull/31387/files#diff-46c1e03dafbcebc46b5cace7d05de20c

@alexander-schranz alexander-schranz changed the title WIP: Fix rejecting of pending messages [Messenger] Fix rejecting of pending messages May 6, 2019
@alexander-schranz alexander-schranz force-pushed the bugfix/messenger-redis-remove-fix branch from b07c65d to 19f57e9 Compare May 6, 2019 15:01
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

I confirm it fixes it. Thanks!

@fabpot fabpot force-pushed the bugfix/messenger-redis-remove-fix branch from 19f57e9 to 072e466 Compare May 6, 2019 15:19
@fabpot
Copy link
Member

fabpot commented May 6, 2019

Thank you @alexander-schranz.

@fabpot fabpot merged commit 072e466 into symfony:master May 6, 2019
fabpot added a commit that referenced this pull request May 6, 2019
…chranz)

This PR was squashed before being merged into the 4.3-dev branch (closes #31396).

Discussion
----------

[Messenger] Fix rejecting of pending messages

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

As discussed in #31387 (comment). It seems pending messages are not removed by calling xdel so we need to call xack first to remove them from the pending state and then call xdel to remove it from the complete stream.

It seems to be the correct way as mentioned in: https://github.com/antirez/redis/issues/5754

Test should be the same as added in: https://github.com/symfony/symfony/pull/31387/files#diff-46c1e03dafbcebc46b5cace7d05de20c

Commits
-------

072e466 [Messenger] Fix rejecting of pending messages
@alexander-schranz alexander-schranz deleted the bugfix/messenger-redis-remove-fix branch May 6, 2019 15:34
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.

4 participants