Spring Webflux 3.2: agent attachment causes java.lang.IllegalStateException: The underlying HTTP client completed without emitting a response.
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java, spring, spring-boot
- Lĩnh vực
- backend, observability-sre
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề với Spring Boot 3.2.2, JDK 21.0.3 và APM agent 1.49.0, so sánh các lần chạy với attached-agent và no-agent với baseline Spring Boot 2.7.10. Theo dõi Mono.zip qua co.elastic.apm.agent.reactor.TracedSubscriber và so sánh apm.log đính kèm với stack trace của DefaultWebClient. Hoàn thành khi các endpoint WebFlux bị ảnh hưởng trả về response một cách nhất quán dù có hay không có APM.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Using Spring Boot 3.2.2 Webflux with attached APM agent 1.49.0 on JDK 21.0.3:
java.lang.IllegalStateException: The underlying HTTP client completed without emitting a response.
at org.springframework.web.reactive.function.client.DefaultWebClient.lambda$static$0(DefaultWebClient.java:78) ~[spring-webflux-6.1.3.jar!/:6.1.3]
at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:55) ~[reactor-core-3.6.2.jar!/:3.6.2]
at reactor.core.publisher.Mono.subscribe(Mono.java:4512) ~[reactor-core-3.6.2.jar!/:3.6.2]
at reactor.core.publisher.FluxSwitchIfEmpty$SwitchIfEmptySubscriber.onComplete(FluxSwitchIfEmpty.java:82) ~[reactor-core-3.6.2.jar!/:3.6.2]
at reactor.core.publisher.FluxOnAssembly$OnAssemblySubscriber.onComplete(FluxOnAssembly.java:549) ~[reactor-core-3.6.2.jar!/:3.6.2]
at co.elastic.apm.agent.reactor.TracedSubscriber.onComplete(TracedSubscriber.java:141) ~[na:na]
Steps to reproduce
We don't have a sample test app yet but our findings concluded that the only factor leading to this error is agent jar attachment to java command. Without attachment the application works. With APM enabled it only fails on Spring Boot 3.2.2 but works fine on Spring Boot 2.7.10.
Another finding - the application's endpoints are functioning except for ones using Mono.zip
Expected behavior
Spring Webflux endpoint works the same way with or without APM.
Debug logs
See logs attached
apm.log
- Ngôn ngữ chính
- Java
- Star
- 593
- Fork
- 338
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của elastic/apm-agent-java
-
agent-java
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 62/100
elastic/apm-agent-java#2844 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve docs and add error log related to illegal activation of transactionCó thể đã có người làm @AzazelSensei đã nhận 35 ngày trước. Đang mởdocs good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
elastic/apm-agent-java#850 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Custom HttpURLConnection throwing unchecked exception can stall the agentCó thể đã có người làm @jackshirazi đã nhận 6 ngày trước. Đang mởagent-java bug
elastic/apm-agent-java#4590 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-java community triage
elastic/apm-agent-java#4573 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-java
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
elastic/apm-agent-java#4549 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của elastic/apm-agent-java
Issue tương tự
-
status: waiting-for-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
AOT compilation fails for derived delete queries returning SetCó thể đã có người làm @ryujungkyun đã nhận hôm nay. Đang mởstatus: waiting-for-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
spring-projects/spring-data-jpa#4387 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/rocketmq-dashboard#6636 ·
Maintainer thường phản hồi trong vòng 3 ngày