apache / apache/servicecomb-java-chassis

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

Đang mở
#4,854 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
1.9k
Fork
814
Merge trung bình
8 ngày 23 giờ
Pull request đã merge (30 ngày)
1

Mô tả

### 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_

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Theo dõi thay đổi trong Java-Chassis3.2.1 từ createHttpClient(httpClientOptions) sang with(httpClientOptions), sau đó lần theo buildHttpClient và cách xử lý HttpClientOptions và PoolOptions. Xác minh rằng connection.maxPoolSize, http2.maxPoolSize và maxWaitQueueSize được truyền tới PoolOptions thay vì các giá trị mặc định, đồng thời thêm hoặc chạy một regression test cho các thiết lập đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
Nửa ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.