Akka.Cluster.Hosting: ShardOptions.PassivateIdleEntityAfter
overwrites custom akka.cluster.sharding.passivate-idle-entity-after
setting in HOCON
#303
Labels
Version Information
Version of Akka.NET? v1.5.6
Which Akka.NET Modules? Akka.Cluster.Hosting
Describe the bug
Not 100% if this is a bug or not yet (going off an end-user's report), but if I set
In a separate
.hocon
file added via theAddHoconFile
method (with prepending et al done correctly), but if I start anyShardRegion
using the defaultShardOptions
(without specifyingShardOptions.PassivateIdleEntityAfter
) I get the following logs:This indicates that we're still using the default 2 minutes setting, and I believe that's because of our default value for
ShardOptions
here:Akka.Hosting/src/Akka.Cluster.Hosting/AkkaClusterHostingExtensions.cs
Line 288 in 9e08da2
To Reproduce
ActorSystem
withakka.cluster.sharding.passivate-idle-entity-after = 24h
ShardRegion
using Akka.Hosting;Additional context
We should probably make
null
the default value here so that way the HOCON values will be used if not user-supplied value is defined.The text was updated successfully, but these errors were encountered: