dotnet-architecture / eShopOnContainers

Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. Moved to https://github.com/dotnet/eShop.
https://dot.net/architecture
24.53k stars 10.35k forks source link

In the ASPNETCore2 version, after submitting a few orders, the Order microservice is in Open-Circuit state #291

Closed CESARDELATORRE closed 7 years ago

CESARDELATORRE commented 7 years ago

In the ASPNETCore2 version, after submitting a few orders, the Order page is in Open-Circuit state. But I cannot reproduce it more times...

image

I still didn't find out how exactly to repro with specific steps, but this shouldn't happen.

When this happened, it got to the submitted state but never went to paid state, so it could be related to the IHostedService implementation for the Order GracePeriod... image

However, other times it is working properly and changing to the "paid" state...

ramon-tomas-c commented 7 years ago

Fixed issue. Mediator autofac module was registering GracePeriodM anager hosted service. The ordering.api ended up initiating the hosted service twice.

CESARDELATORRE commented 7 years ago

Fixed, closing it.