dotnet / dotnet/orleans

Breaking change in v8.1.0 when configuring streaming on silo?

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

Description

Hi, I just updated to version 8.1.0 and are suddenly getting the following exception during silo startup

`Could not find Streaming provider named 'Default'. This can indicate that either the 'Microsoft.Orleans.Sdk' or the provider's package are not referenced by your application.`

I think it relates to the new configuration changes that made Aspire support possible and looks quite a lot like this one https://github.com/dotnet/orleans/issues/8932 I saw earlier on the "client" side - not exactly the same I guess.

Apparently on https://github.com/dotnet/orleans/blob/v8.1.0/src/Orleans.Runtime/Hosting/DefaultSiloServices.cs#L439 it looks for the provider type in the configuration section and if that does not exist it falls back to "Default" as the provider type

`var providerType = configurationSection["ProviderType"] ?? "Default";`

However we configure streaming using

`builder.SiloBuilder.AddEventHubStreams("default", configurator =>........`

With lowercase "default" and get the above exception. I looked through the release notes but have not been able to find any migration guide or mention of this change.

Is there some workaround we can use? I'm not sure it's feasible right now to move all our configuration/startup code to the new `IConfiguration` based setup.

Contributor guide

Open the contributing guide

Research direction

Start with src/Orleans.Runtime/Hosting/DefaultSiloServices.cs around line 439 and trace the provider lookup used by AddEventHubStreams("default", ...). Compare the lowercase stream configuration with the fallback to "Default" and review issue 8932 for related context. Done means the v8.1.0 startup behavior is explained and a verified workaround or regression fix is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.