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

Allows RedisClusterProxy instance in Lock RedisStore #37590

Merged
merged 1 commit into from Jul 23, 2020

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Jul 15, 2020

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

jderusse commented Jul 16, 2020

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

nicolas-grekas commented Jul 23, 2020

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

@jderusse
Copy link
Member Author

jderusse commented Jul 23, 2020

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

jderusse commented Jul 23, 2020

CI green @nicolas-grekas

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Jul 23, 2020

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit 0eae7a6 into symfony:4.4 Jul 23, 2020
5 checks passed
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

@b1rdex b1rdex Jul 27, 2020

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 issue Jul 27, 2020
This is a fix for a regression from symfony#37590
b1rdex added a commit to b1rdex/symfony that referenced this issue Jul 27, 2020
This is a fix for a regression from symfony#37590
stof added a commit that referenced this issue 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 Oct 15, 2020
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.

None yet

5 participants