Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Cache] RedisTrait::doFetch should use pipeline with GET's instead of MGET for Relay\Cluster#61234

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@dorrogeray
Copy link
Contributor

@dorrogeraydorrogeray commentedJul 25, 2025
edited by nicolas-grekas
Loading

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix #...
LicenseMIT

🛠️Relay\Cluster should be expected to operate with >1 master nodes, and therefore its not safe to usemget when fetching the ids inRedisTrait::doFetch(array $ids) as they are not guaranteed to be on a same hash slot.

This change makesdoFetch use pipeline withGET commands when$this->redis instanceof RelayCluster

rvanlaak reacted with eyes emoji
@carsonbotcarsonbot added this to the7.3 milestoneJul 25, 2025
@carsonbotcarsonbot changed the title[cache] RedisTrait::doFetch should use pipeline with GET's instead of MGET for Relay\Cluster[Cache] RedisTrait::doFetch should use pipeline with GET's instead of MGET for Relay\ClusterJul 25, 2025
@dorrogeraydorrogerayforce-pushed thecache-relay-cluster-should-use-pipeline-instead-of-mget-in-do-fetch branch fromf4fad81 tob74ec69CompareJuly 30, 2025 09:25
@dorrogeray
Copy link
ContributorAuthor

@nicolas-grekas done, I have dropped the commit which applied the diff from Fabbot. 👍 The only reason I included them originally was to make those checks pass.

@nicolas-grekasnicolas-grekas modified the milestones:7.3,6.4Jul 30, 2025
@nicolas-grekasnicolas-grekas changed the base branch from7.3 to6.4July 30, 2025 09:32
@nicolas-grekasnicolas-grekasforce-pushed thecache-relay-cluster-should-use-pipeline-instead-of-mget-in-do-fetch branch fromb74ec69 to30a2ca0CompareJuly 30, 2025 09:32
@nicolas-grekas
Copy link
Member

Thank you@dorrogeray.

dorrogeray reacted with heart emoji

@nicolas-grekasnicolas-grekas merged commit606df24 intosymfony:6.4Jul 30, 2025
9 of 10 checks passed
This was referencedJul 31, 2025
@fabpotfabpot mentioned this pull requestJul 31, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@lyrixxlyrixxAwaiting requested review from lyrixx

@ycerutoycerutoAwaiting requested review from yceruto

@chalasrchalasrAwaiting requested review from chalasr

@dunglasdunglasAwaiting requested review from dunglas

@OskarStarkOskarStarkAwaiting requested review from OskarStark

@jderussejderusseAwaiting requested review from jderusse

@xabbuhxabbuhAwaiting requested review from xabbuh

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

3 participants

@dorrogeray@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp