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

redis pipeline: brpoplpush is deprecated #1827

Closed
ghost opened this issue Mar 23, 2021 · 4 comments · Fixed by #2149
Closed

redis pipeline: brpoplpush is deprecated #1827

ghost opened this issue Mar 23, 2021 · 4 comments · Fixed by #2149
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior component: core

Comments

@ghost
Copy link

ghost commented Mar 23, 2021

BRPOPLPUSH is deprecated in favour of BLMOVE.

The command is used here:

retval = self.pipe.brpoplpush(self.source_queue,
self.internal_queue, 0)

and mocked here:
pl.pipe.brpoplpush = lambda source_q, inter_q, i: pl.pipe.lindex(source_q, -1)

@ghost ghost added bug Indicates an unexpected problem or unintended behavior component: core labels Mar 23, 2021
@aaronkaplan
Copy link
Member

you could also take a look at redis streams

@ghost
Copy link
Author

ghost commented Sep 10, 2021

Do redis streams already support atomic push+pop operations? If not, we can add them as optional broker, if consistency is not important, but not as replacement for the redis-list based approach.

@aaronkaplan
Copy link
Member

aaronkaplan commented Sep 17, 2021 via email

@waldbauer-certat
Copy link
Contributor

waldbauer-certat commented Feb 3, 2022

I tried fixing that issue, but I've seen that redis-py had some bugs <= 4.1.2 with blmove, its fixed in the latest release redis/redis-py#1776. https://github.com/redis/redis-py/releases/tag/v4.1.2

Btw. I like their release design :D looks sooo pretty

waldbauer-certat added a commit that referenced this issue Feb 3, 2022
Fixes #1827

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
waldbauer-certat added a commit that referenced this issue Feb 3, 2022
Fixes #1827

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
waldbauer-certat added a commit that referenced this issue Jul 13, 2022
Fixes #1827

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
waldbauer-certat added a commit that referenced this issue Jul 18, 2022
Fixes #1827

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
waldbauer-certat added a commit that referenced this issue Jul 18, 2022
Fixes #1827

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
waldbauer-certat added a commit that referenced this issue Jul 18, 2022
Fixes #1827

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: core
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants