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

Implement QueryOrchestrationStatesSegmentedAsync functionality in DurableTask.Emulator (LocalOrchestrationService)

Đang mở
#1,332 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 3 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
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
csharp

Hướng nghiên cứu

Bắt đầu với LocalOrchestrationService.cs và lần theo QueryOrchestrationStatesSegmentedAsync cùng với phần triển khai AzureTableInstanceStore tương ứng. Tái hiện lời gọi bằng một client LocalOrchestrationService, sau đó xác minh rằng các truy vấn trạng thái orchestration hoạt động với trạng thái trong bộ nhớ hoặc trả về một NotSupportedException rõ ràng thay vì một NullReferenceException.

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

Mô tả

Problem

Currently, calling QueryOrchestrationStatesSegmentedAsync on client services that use DurableTask.Emulator (LocalOrchestrationService) results in a NullReferenceException, since the emulator does not implement the instance store query APIs. This breaks scenarios where consumers want to test or query orchestration states in-proc (e.g., for integration testing or local feature development) and depend on behavior parity with instance-backed services like AzureTableInstanceStore.

This is only specific to client using DurableTask.ServiceBus backend in production and using DurableTask.Emulator for local runs.

Expected Behavior

  • The emulator should provide a (possibly in-memory) implementation of QueryOrchestrationStatesSegmentedAsync that allows query patterns similar to those in AzureTableInstanceStore.
  • Querying orchestration state in local scenarios would enable better automated tests and developer workflows without requiring a full Azure Storage/Table backend.

Actual Behavior

  • QueryOrchestrationStatesSegmentedAsync is not implemented and instanceStore is null, so attempting to call it results in a crash (NullReferenceException).
  • This is confusing when writing code agnostic to target backend.

To Reproduce

  • Use any client with LocalOrchestrationService and call QueryOrchestrationStatesSegmentedAsync.
  • Observe the crash.

Suggestions

  • Implement QueryOrchestrationStatesSegmentedAsync in the emulator so the query will enumerate in-memory orchestration state.
  • At a minimum, gracefully throw NotSupportedException with a clear message instead of returning null or failing with NullReferenceException.

References

  • [Issue context and analysis: https://github.com/Azure/durabletask]
  • [Emulator implementation: LocalOrchestrationService.cs]
Ngôn ngữ chính
C#
Star
1.7k
Fork
338
Merge trung bình
4 ngày 13 giờ
Pull request đã merge (30 ngày)
10

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 Azure/durabletask

Tất cả issue của Azure/durabletask

Issue tương tự

Thêm issue về C#

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.