turms
turms copied to clipboard
序列化和反序列化问题
cpu使用率低,流量低的时候,,所有业务都正常,压测的时候 就会大量报这种错误
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.
我们已经使用很久了,现在一直有这种问题,最近很频繁。进行了大量的业务处理,所以不能也不敢升级。。能否帮忙看看? 大佬
进行了大量的业务处理,所以不能也不敢升级
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.
1.大佬,您说你改过的包含这个bug,那大概改动的哪一块,是否可以具体一点,这样我好有个方向 2.大佬,我如果覆盖序列化和反序列化的代码,我需要使用官方的哪个分支进行覆盖?
跪谢大佬,跪谢大佬,跪谢大佬
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月16日 21:35 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [turms-im/turms] 序列化和反序列化问题 (Issue #1291) |
进行了大量的业务处理,所以不能也不敢升级
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.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
您说你改过的包含这个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.
1是现在正在使用的
2是master上的代码
大佬,我发现出现上述问题的错误的代码,都在使用1这个方法,请问下和这个是否有关系?
嗯嗯,谢谢大佬哈
---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2024年05月16日 23:17 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [turms-im/turms] 序列化和反序列化问题 (Issue #1291) |
您说你改过的包含这个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.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>