Comments (7)
Thanks for the quick response! Indeed a mystery. Will try to figure it out.
from durabletask-netherite.
Just putting the link to the relevant discussion on DfMon's side: microsoft/DurableFunctionsMonitor#126 (comment)
from durabletask-netherite.
Instance Ids of suborchestrations are already included as part of the List<History>
returned by Netherite. Execution histories are not interpreted or modified in any way by Netherite, this is all just represented exactly like DurableTask.Core
defines it.
I think the problem may be that the DFMon implementation is not using the DurableTask.Core
representation of histories, which is the same for all storage providers, but a reverse engineering of the Azure Table storage format which is specific to the Azure Table Storage provider?
from durabletask-netherite.
@sebastianburckhardt , DfMon does not do any 'reverse engineering' , when bound to Netherite. For Netherite DfMon falls back to IDurableOrchestrationClient.GetStatusAsync()
and renders precisely what that method returns.
Have a test Netherite-based orchestration like this:
Running it locally, with Azurite as a storage and an Event Hub in Azure.
Testing .GetStatusAsync() like this:
[FunctionName("HttpStatusTest")]
public static async Task<IActionResult> HttpStatusTest(
[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequestMessage req,
[DurableClient] IDurableOrchestrationClient starter,
ILogger log)
{
var status = await starter.GetStatusAsync("57f8e7d45e3540ed9e83cfc0f6636812", true, true, true);
return new ObjectResult(status);
}
Here is the output:
{
"name": "DurableFunctionsOrchestrationCSharp1",
"instanceId": "57f8e7d45e3540ed9e83cfc0f6636812",
"createdTime": "2023-08-16T15:32:11.6209051Z",
"lastUpdatedTime": "2023-08-16T15:32:52.4618299Z",
"input": null,
"output": [
"Hello Oslo!",
"Hello Reykjavik!"
],
"runtimeStatus": 1,
"customStatus": null,
"history": [
{
"EventType": "ExecutionStarted",
"Input": null,
"Correlation": null,
"ScheduledStartTime": null,
"Generation": null,
"Timestamp": "2023-08-16T15:32:11.6209051Z",
"FunctionName": "DurableFunctionsOrchestrationCSharp1"
},
{
"EventType": "SubOrchestrationInstanceCompleted",
"Result": [
"Hello Tokyo Subway!",
"Hello London Subway!"
],
"Timestamp": "2023-08-16T15:32:32.2081703Z",
"ScheduledTime": "2023-08-16T17:32:11.810787+02:00",
"FunctionName": "SubOrchestrationCSharp1",
"Input": null
},
{
"EventType": "TaskCompleted",
"Result": "Hello Oslo!",
"Timestamp": "2023-08-16T15:32:42.3814044Z",
"ScheduledTime": "2023-08-16T17:32:32.3416229+02:00",
"FunctionName": "SayHello",
"Input": null
},
{
"EventType": "TaskCompleted",
"Result": "Hello Reykjavik!",
"Timestamp": "2023-08-16T15:32:52.4449048Z",
"ScheduledTime": "2023-08-16T17:32:42.424239+02:00",
"FunctionName": "SayHello",
"Input": null
},
{
"EventType": "ExecutionCompleted",
"OrchestrationStatus": "Completed",
"Result": [
"Hello Oslo!",
"Hello Reykjavik!"
],
"FailureDetails": null,
"Timestamp": "2023-08-16T15:32:52.4614817Z"
}
]
}
You see, no child instanceId (which is supposed to be ea459c8948d74e6fb86635a48c2517a1:0
) returned.
What are we missing?
from durabletask-netherite.
What seems to happen is that IDurableOrchestrationClient.GetStatusAsync
is not returning the original history, but a processed version that removes some events and does some event correlation.
I was not aware that this is happening (the code that does this processing is not part of Netherite, it is in the DF extension).
Here is the code that does it:
https://github.com/Azure/azure-functions-durable-extension/blob/2455636cca50cfb4d1543633d28657437bbb5173/src/WebJobs.Extensions.DurableTask/ContextImplementations/DurableClient.cs#L850
Not sure why it does that. Seems unnecessarily complicated.
from durabletask-netherite.
@sebastianburckhardt does it make sense to raise an issue with the DF extension, then, if that's the root cause of this issue?
from durabletask-netherite.
Yes, I think the appropriate place to modify this would be the code I linked to above.
from durabletask-netherite.
Related Issues (20)
- Netherite scaling not working on consumption plan HOT 1
- Shadow store support HOT 2
- Entities become unresponsive under load HOT 7
- Partitions become unresponsive HOT 7
- partitions become unresponsive because recovery hangs after reading object log HOT 5
- Startup error : Storage provider type (Netherite) was not found HOT 19
- NetheriteOrchestrationService.StartAsync throws cached exception on retry if first call fails
- Question about performance warning logs HOT 4
- Unable to Debug Durable Entities on local machine HOT 2
- Partition becomes unresponsive because event batch blob was deleted prematurely HOT 5
- Question: is there support for the Event Hub to have private endpoints? HOT 2
- overwrite amqp protocol to amqpWebSockets HOT 1
- Purging and getting instances with DurableTaskClient in dotnet-isolated runtime HOT 3
- Large amounts of warnings from FASTER.KV HOT 13
- Perhaps longer latencies for Netherite for medium-sized payloads HOT 13
- System.NotSupportedException: Durable entities are not supported by the current backend configuration HOT 15
- Activity Function started multiple times before completion HOT 1
- Duplicate Messages from SignalEntityAsync HOT 2
- Error in orchestrator: Netherite backend failed to start: Operations per second is over the account limit. HOT 9
- ScheduleNewOrchestrationInstanceAsync fails when scale controller scaling in HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from durabletask-netherite.