dotnet / dotnet/orleans

Silo should forward request when asked to shutdown

Open
#2,287 14 comments 1 reaction 0 assignees View on GitHub
bug Status: investigating
Dominant language
C#
Stars
10.9k
Forks
2.1k
Avg merge
14h 42m
Merged PRs (30d)
354

Description

If I'm not mistaken, when a silo properly shutdown (not stop) it should:
1. Finish the requests that are being processed on locally activated grains (requests that were started to process before shutdown was called)
2. Then forward the remaining non processed requests to another silo so they can be completed by someone else

It seems that step 2. is not properly done. In this test https://github.com/benjaminpetit/orleans/commit/53631d95df931e6c416170d92bd6b4caeb0b1f45 the `await promisesAfterShutdown` throws `TimeoutException`

Am I missing something?

Contributor guide

Open the contributing guide

Research direction

Start with the shutdown test at commit 53631d95df931e6c416170d92bd6b4caeb0b1f45, focusing on the promisesAfterShutdown timeout. Trace silo shutdown handling and request forwarding from that test. Done means locally started requests finish and remaining requests are forwarded to another silo so the promises complete without a TimeoutException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.