-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
DynamicThreadPoolRegisterParameter#threadFactory序列化异常 #1085
Comments
客户端线程池注册服务端有单独的 API,该流程是否走的自主注册 API? |
Fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BUG 报告
在开始报告错误之前,请确保认真查看了以下步骤:
请在提交问题之前回答这些问题,谢谢。
你使用了哪个项目?hippo4j config 还是 hippo4j server?
hippo4j config、hippo4j server
你使用了哪个版本?
最新版本
预期行为
客户端注册服务端不报错。
实际行为
原因分析(如果可以)
ThreadFactoryBuilder#build(cn.hippo4j.common.design.builder.ThreadFactoryBuilder) 中使用了
Executors.defaultThreadFactory()
问题重现步骤
1.拉取最新版本代码,删除服务端数据库中数据,走服务器中未定义的动态线程池配置的逻辑,让客户端自己注册
2.启动服务端
3.启动
hippo4j-spring-boot-starter-example
示例模块解决方案
DynamicThreadPoolRegisterParameter#threadFactory
的属性上加上,@JsonIgnore
不进行序列化。查看服务端接口并未使用客户端上传上来的ThreadFactory
字段。用于重现此问题的示例代码(例如 GitHub 链接)
The text was updated successfully, but these errors were encountered: