Skip to content

Add Cluster.Sharding ActorInitializationException spec - #5999

Merged
Aaronontheweb merged 3 commits into
akkadotnet:v1.4from
Arkatufus:Add_PersistentShard_ActorInitializationException_spec
Jun 14, 2022
Merged

Aaronontheweb merged 3 commits into
akkadotnet:v1.4from
Arkatufus:Add_PersistentShard_ActorInitializationException_spec

Conversation

@Arkatufus

Copy link
Copy Markdown
Contributor

Add spec to make sure that Cluster.Sharding can survive any transient exceptions thrown from entity constructor and PreStart method

… exceptions thrown from entity constructor and PreStart method

var settings = ClusterShardingSettings.Create(Sys);
var tuning = settings.TuningParameters;
settings = settings.WithTuningParameters(new TuningParameters

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very bad coding experience. We need to at least add a Copy() method to TuningParameter class so no one should be forced to write this. Or use the record feature in .NET 5.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree. Can't go record until we drop .NET Standard 2.0 support, which isn't slated until 2.0.

@Aaronontheweb Aaronontheweb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - port this to 1.5 also.

@Aaronontheweb

Copy link
Copy Markdown
Member

Looks like this test fails under some conditions.

@Aaronontheweb
Aaronontheweb self-requested a review June 14, 2022 17:09

@Aaronontheweb Aaronontheweb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have an intermittent test failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants