envoyproxy / envoyproxy/java-control-plane

"Cancelled" streams causing gRPC status code 13 in Envoy proxy

Đang mở
#239 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
312
Fork
149
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I see an info level `[n] stream cancelled` in my xDS server logs (where the `[n]` is the stream id) immediately followed by a warning level `StreamEndpoints gRPC config stream closed: 13` in my Envoy logs. I'm running v0.1.31 of `java-control-plane` and `1.18.6` of Envoy. Envoy appears to be getting the data successfully but logs are getting filled on both sides of the connection. It "feels" like something is abruptly ending the gRPC connection.

My reading of the code suggests the `[n] stream cancelled` message is a red herring. It appears this will be outputted whenever a stream is cancelled (the `DiscoveryRequestStreamObserver.onCancelled` method) and that the `DiscoveryRequestStreamObserver.cancel` method is called whenever a stream closed, whether with an error or not. The cancel method appears to only cancel watchers though.

I'm trying to collect more information on this issue. I'll try getting a debugger on the xDS server tomorrow.

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start with the DiscoveryRequestStreamObserver.onCancelled and cancel entry points mentioned in the issue, using java-control-plane v0.1.31 and Envoy 1.18.6 while comparing both sides' logs. Trace when cancellation and stream closure occur and determine whether status code 13 is expected or indicates an error; done means the cause and a reproducible correction or explanation are established.

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

Đánh giá

Công nghệ
grpc, java
Lĩnh vực
api, backend
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/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.