Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

XdsClientImpl inconsistently includes nodeId

Đang mở
#12,750 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@shivaspeaks đang làm issue này rồi.

Từ ngày 9/4/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement

When creating https://github.com/grpc/grpc-java/pull/12749 I noticed that the error generated by XdsDependencyManager is:

Status{code=UNAVAILABLE, description=Error retrieving LDS resource the-service-name nodeID: node-id: NOT_FOUND: expected nodeID: node-id, cause=java.lang.IllegalArgumentException: a random exception...}

"nodeID: node-id" is repeated twice. XdsClientImpl adds it once, and XdsDependencyManager adds it again. XdsDependencyManager shouldn't be adding the node id from errors that come from XdsClient. But if you look at CdsLoadBalancer2Test from my PR, you'll see that "Timed out waiting for resource" errors don't have node id duplicated.

XdsClientImpl includes node id in all results originating from ResourceSubscriber.onError(), but it doesn't from onAbsent() and addWatcher(). Apparently it also forgets the absent error details in addWatcher(). We need to fix onAbsent() and errorDescription, and probably save the absent error in lastError for later use in addWatcher(). At that point we can remove the node id from XdsDependencyManager (when it gets the error from xds client; if it generates the error itself, it may still need to include the node id).

Ngôn ngữ chính
Java
Star
12.1k
Fork
4k
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
30

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của grpc/grpc-java

Tất cả issue của grpc/grpc-java

Issue tương tự

Thêm issue về Java

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.