Giter Club home page Giter Club logo

Comments (7)

JamesChenX avatar JamesChenX commented on September 22, 2024

From your logs, you seem don't upgrade turms dockers for more than half a year.
Please upgrade your Turms client SDK and servers to have a try.

from turms.

wangqingchengsg avatar wangqingchengsg commented on September 22, 2024

我们已经使用很久了,现在一直有这种问题,最近很频繁。进行了大量的业务处理,所以不能也不敢升级。。能否帮忙看看? 大佬

from turms.

JamesChenX avatar JamesChenX commented on September 22, 2024

进行了大量的业务处理,所以不能也不敢升级

btw, that's why I recommend users commit their changes back to Turms if possible in the doc:
about-upstream-first
关于“上游优先”.

现在一直有这种问题,最近很频繁

Your Turms servers seem quite old, and I have fixed tens of bugs including this bug since you posted the issue.

For upgrading (using the latest code on master branch, or the latest images), I am sure there is no breaking change in the collection schema, which means your data stored in MongoDB collections will still work as usual after upgrading.
But there are some breaking changes in status codes (e.g. code names change), and the proto models,
so:

If you can upgrade both Turms client SDK and servers, you SHOULD upgrade them all together. You should NOT just upgrade one of them.

If you plan to never upgrade Turms, you can try your luck to copy the code under im.turms.server.common.storage.mongo.codec.EntityCodec to your codebase, but I cannot promise it can fix the bug. And I have no plan to provide support for users who plan to never upgrade because if users plan to not upgrade, they should maintain their code for themselves.

from turms.

wangqingchengsg avatar wangqingchengsg commented on September 22, 2024

from turms.

JamesChenX avatar JamesChenX commented on September 22, 2024

您说你改过的包含这个bug,那大概改动的哪一块,是否可以具体一点

The class may be im.turms.server.common.storage.mongo.codec.EntityCodec. After you paste the code, if the bug still exists, you can try to copy all classes under im.turms.server.common.storage.mongo.codec package.

btw, if you know how to modify the Turms source code, it should be easy for you to apply the changes under im.turms.server.common.storage.mongo.codec package.

我如果覆盖序列化和反序列化的代码,我需要使用官方的哪个分支进行覆盖?

Use the master branch, which is a stable branch.

btw, if you have lost all git commits in Turms repo, I suggest you first pull the Turms repo, check out the master branch, and then just take time and patience to merge your changed code.
It's a good practice to write your tests to ensure your modified code can work as expected so that you don't need to be "afraid" of upgrading Turms.

from turms.

wangqingchengsg avatar wangqingchengsg commented on September 22, 2024

image
1是现在正在使用的
2是master上的代码
大佬,我发现出现上述问题的错误的代码,都在使用1这个方法,请问下和这个是否有关系?

from turms.

wangqingchengsg avatar wangqingchengsg commented on September 22, 2024

from turms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.