Implement QueryOrchestrationStatesSegmentedAsync functionality in DurableTask.Emulator (LocalOrchestrationService)
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
- Lĩnh vực
- backend, distributed-systems
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
QueryOrchestrationStatesSegmentedAsyncthat allows query patterns similar to those inAzureTableInstanceStore. - Querying orchestration state in local scenarios would enable better automated tests and developer workflows without requiring a full Azure Storage/Table backend.
Actual Behavior
QueryOrchestrationStatesSegmentedAsyncis 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
LocalOrchestrationServiceand callQueryOrchestrationStatesSegmentedAsync. - Observe the crash.
Suggestions
- Implement
QueryOrchestrationStatesSegmentedAsyncin 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
- Đọ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 Azure/durabletask
-
AzureStorage: a permanent history-load failure in ScheduleOrchestrationStatePrefetch increases memory without limitCó thể đã có người làm @saurav2104 đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Azure/durabletask#1419 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Azure Storage backend: ExecutionTerminated message is never deleted when the Instances row is absent, causing permanent control-queue poison (regression in 2.7.0 from #1256)Có thể đã có người làm @sean0407 đã nhận 6 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Azure/durabletask#1398 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Azure Storage backend: control queue partition left unowned for hours/days after lease expiresCó thể làm lại được @nytian đã nhận 48 ngày trước và không có pull request nào đang mở. Đang mở
Azure/durabletask#1389 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Azure/durabletask#1318 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Early (compile-time) detection of non-determinism in orchestrators — maintainer perspective?Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Azure/durabletask#1301 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của Azure/durabletask
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Docs] README/PRIVACY still name AppCenter although v1.5.6.0+ uses the Microsoft Store Services SDKĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
swisstopo/swissgeol-boreholes-suite#3086 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: wiki jump bugĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Altinn/altinn-studio#21355 ·
Maintainer thường phản hồi trong vòng 1 ngày