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

Fix registry cache broken #2715

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Conversation

littlecoderonway
Copy link
Contributor

services varable here may be shared by routines, when application changes services returned by get function may lead to other routine set a changed services to cache. (which has happened on our live evn)
we need make sure services set to cache is what we get from registry by return the copy

Shuaihu Liu added 2 commits July 1, 2024 23:42
… returned by get function may lead to other routine set a changed services to cache
… returned by get function may lead to other routine set a changed services to cache
@asim asim merged commit 4d5b3b0 into micro:master Jul 2, 2024
1 check failed
butonic pushed a commit to butonic/go-micro that referenced this pull request Oct 28, 2024
* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache

* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache

---------

Co-authored-by: Shuaihu Liu <[email protected]>
butonic pushed a commit to butonic/go-micro that referenced this pull request Oct 28, 2024
* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache

* services is shared between routines, when application change services returned by get function may lead to other routine set a changed services to cache

---------

Co-authored-by: Shuaihu Liu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants