apache / apache/servicecomb-java-chassis

[BUG] - Java-Chassis3.2.1之后版本servicecomb.rest.client下的connection.maxPoolSize、http2.maxPoolSize、maxWaitQueueSize等配置项失效,只能使用固定默认值

未关闭
#4,854 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Java
星标
1.9k
派生
814
平均合并
8 天 23 小时
30 天内合并 PR
1

描述

### Steps to Reproduce

Java-Chassis3.2.1 版本引入修改,创建HttpClient时原本使用 `xxx.createHttpClient(httpClientOptions)`, 修改为使用 `xxx.with(httpClientOptions)`

![Image](https://github.com/user-attachments/assets/b7137f86-25bd-49d2-bd8c-d1747ed3b165)

而`xxx.with(httpClientOptions)`只设置了`HttpClientOptions`

![Image](https://github.com/user-attachments/assets/926b91a9-4c03-4376-af89-6e4a95539b9c)

原本`xxx.createHttpClient(httpClientOptions)` 预期为同时修改`HttpClientOptions` 与 `PoolOptions`

![Image](https://github.com/user-attachments/assets/b1cd8d9f-6a4d-472c-9a48-063b4e6ce6d9)

导致在后续buildHttpClient时,`this.poolOptions`一直都为null,所以都是使用的默认`PoolOptions`

![Image](https://github.com/user-attachments/assets/a1a8f956-9af7-470f-ae43-2e8a1d7f1ed3)

![Image](https://github.com/user-attachments/assets/2b3f7a03-f3d7-4dc5-93ac-6ead1b70684c)

### Expected Behavior

预期只需要修改把`poolOptions`设置进去即可

![Image](https://github.com/user-attachments/assets/82c6dffd-e2f1-4976-8dcd-0a8163406db8)

### Servicecomb Version

_No response_

### Additional Context

_No response_

贡献指南

这个仓库没有索引到贡献指南

调研方向

跟踪 Java-Chassis3.2.1 中从 createHttpClient(httpClientOptions) 到 with(httpClientOptions) 的变更,然后继续检查 buildHttpClient 以及 HttpClientOptions 和 PoolOptions 的处理。验证 connection.maxPoolSize、http2.maxPoolSize 和 maxWaitQueueSize 是否传递到了 PoolOptions,而不是使用默认值,并为这些设置添加或运行回归测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
backend
Issue 类型
缺陷
难度
2/5
预计耗时
半天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。