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

[Bug]: Router hides the final resume error when the retry budget expires

Đã đóng Phù hợp với người mới
#2,245 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api, backend

Hướng nghiên cứu

Đọc cmd/atenet/internal/router/ingress/resumer.go, đặc biệt là flightResult, và kiểm tra ingress test client hiện có cùng các bài kiểm thử sử dụng testing/synctest. Tái hiện chuỗi sự kiện khi bật parking, sau đó kiểm tra rằng khi hết ngân sách thử lại, lỗi cuối cùng NotFound được trả về thay vì lỗi ResourceExhausted trước đó.

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

Mô tả

area/network kind/bug
What happened?

With request parking enabled, the router can return an earlier capacity error even after a retry returns NotFound. The client then gets HTTP 503 instead of 404.

This is reproducible in a unit test. When the budget has expired, flightResult returns the saved lastRetryErr instead of the final RPC error.

Expected Behavior

Return the final non-retryable error, even if the RPC finishes after the retry budget expires.

Steps to Reproduce

Using the existing ingress test client and testing/synctest:

  1. Enable parking with a 300 ms budget.
  2. Return ResourceExhausted from the first ResumeActor call.
  3. On the next call, sleep for 300 ms and return NotFound.
  4. The resumer returns ResourceExhausted instead of NotFound.
expected terminal error rpc error: code = NotFound desc = actor not found, got rpc error: code = ResourceExhausted desc = no free workers available
Sandbox Runtime

Both / Runtime Agnostic. Reproduced in a unit test; no cluster involved.

Agent Substrate Version / Commit SHA

main at fa858d0fdbec0e942e43667dba75194665a2ff38, macOS arm64, Go 1.27.0.

Additional Context

Related to #1562, but this case already returns an error the router considers non-retryable.

Ngôn ngữ chính
Go
Star
5.7k
Fork
612
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
541

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 agent-substrate/substrate

Tất cả issue của agent-substrate/substrate

Issue tương tự

Thêm issue về Go

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.