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

Skip to content

[Messenger] Add missing runtime check for ext redis version #31872

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
Jun 5, 2019

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Jun 5, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #31791
License MIT
Doc PR n/a

Lower versions lead to segmentation faults.

@chalasr
Copy link
Member Author

chalasr commented Jun 5, 2019

Build failure is unrelated.

@@ -43,6 +44,10 @@ class Connection

public function __construct(array $configuration, array $connectionCredentials = [], array $redisOptions = [], \Redis $redis = null)
Copy link
Member

Choose a reason for hiding this comment

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

unrelated, but we missed making this class compatible with other kind of redis instances: RedisArray, RedisCluser, RedisProxy and RedisClusterProxy

Copy link
Member

Choose a reason for hiding this comment

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

are they compatible with redis streams ?

Copy link
Member

Choose a reason for hiding this comment

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

I think so, because in the end this is just a key. https://redis.io/topics/streams-intro also mentions clusters. But I didn't try, so maybe not. Yet the hardcoded signature would be a blocker for the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will give it a try and drop the typehint in favor of a check anyways.

@fabpot
Copy link
Member

fabpot commented Jun 5, 2019

Thank you @chalasr.

@fabpot fabpot merged commit 07603da into symfony:4.3 Jun 5, 2019
fabpot added a commit that referenced this pull request Jun 5, 2019
…n (chalasr)

This PR was merged into the 4.3 branch.

Discussion
----------

[Messenger] Add missing runtime check for ext redis version

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31791
| License       | MIT
| Doc PR        | n/a

Lower versions lead to segmentation faults.

Commits
-------

07603da [Messenger] Add runtime check for ext redis version
@chalasr chalasr deleted the redis-version-check branch June 5, 2019 16:14
@fabpot fabpot mentioned this pull request Jun 6, 2019
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Jun 13, 2019
This PR was merged into the 4.3 branch.

Discussion
----------

Redis 4.3 is required

See symfony/symfony#31872

But also the conversation on symfony/messenger@47d2b91

So, I'm not actually sure if that commit is correct and the docs should be updated, or if that commit is wrong. Opening this up to at least have some placeholder to figure that out.

Commits
-------

c76afd3 Redis 4.3 is required
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.

5 participants