orleans
orleans copied to clipboard
Breaking change in v8.1.0 when configuring streaming on silo?
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.