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

How to upgrade system after updated entity classes #2009

Open
1 of 2 tasks
AprilWind123 opened this issue Jan 17, 2025 · 1 comment
Open
1 of 2 tasks

How to upgrade system after updated entity classes #2009

AprilWind123 opened this issue Jan 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@AprilWind123
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

对象缓存到 redis 了,然后我新增了一个字段,就没办法反序列化了

Component(s)

Java

Minimal reproduce step

如果系统修改了实体类,更新系统的时候,就需要统一删除缓存

What did you expect to see?

确实是个大问题,代表着只能停机更新系统,然后清除缓存

What did you see instead?

如果是大项目的话,显然不能这样做

Anything Else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@AprilWind123 AprilWind123 added the bug Something isn't working label Jan 17, 2025
@chaokunyang
Copy link
Collaborator

chaokunyang commented Jan 17, 2025

Please refer this document to set compatible mode.

Fury compatible Mode supports deserialize classes with inconsistent schema. i.e. you can update entity class like adding/deleting fields, and fury can still succeed in deserializing data .

@chaokunyang chaokunyang changed the title 关于更新系统版本等操作 How to upgrade system after updated entity classes Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants