Skip to content

Allows RedisClusterProxy instance in Lock RedisStore #37590

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
Jul 23, 2020

Conversation

jderusse
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #37476
License MIT
Doc PR /

This PR allow clients instance of RedisClusterProxy created by the StoreFactory in #28691 /cc @nicolas-grekas

@jderusse
Copy link
Member Author

failing Travis test is related to branch 3.4 (when Redis server is not running)
failing github test is related to cache

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Jul 22, 2020
@nicolas-grekas
Copy link
Member

Are the failures related? Can you rebase to retrigger maybe?

@jderusse
Copy link
Member Author

Are the failures related? Can you rebase to retrigger maybe?

rebased. Faillure are not related.

failure is about test against branch 3.4 without Redis container running nor mechanism to early exit when redis is not runing

@jderusse
Copy link
Member Author

CI green @nicolas-grekas

@nicolas-grekas
Copy link
Member

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit 0eae7a6 into symfony:4.4 Jul 23, 2020
This was referenced Jul 24, 2020
@@ -33,13 +33,13 @@ class RedisStore implements StoreInterface
private $initialTtl;

/**
* @param \Redis|\RedisArray|\RedisCluster|\Predis\ClientInterface $redisClient
* @param float $initialTtl the expiration delay of locks in seconds
* @param \Redis|\RedisArray|\RedisCluster|RedisProxy|RedisClusterProxy\Predis\ClientInterface $redisClient
Copy link
Contributor

Choose a reason for hiding this comment

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

@jderusse There is a bug: no pipe in RedisClusterProxy\Predis\ClientInterface leads to wrong class FQN.

b1rdex added a commit to b1rdex/symfony that referenced this pull request Jul 27, 2020
This is a fix for a regression from symfony#37590
b1rdex added a commit to b1rdex/symfony that referenced this pull request Jul 27, 2020
This is a fix for a regression from symfony#37590
stof added a commit that referenced this pull request Jul 27, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

Fix RedisStore constructor signature

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | no
| License       | MIT
| Doc PR        | no

This is a fix for a regression from #37590

Commits
-------

6831271 Fix RedisStore constructor signature
@jderusse jderusse deleted the fix-redis branch October 15, 2020 10:01
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