Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert ConfigurationException due to binary incompatibility #6201

Conversation

Arkatufus
Copy link
Contributor

Fixes #6200

Changes

Revert changes to the static method

@@ -16,11 +16,11 @@ namespace Akka.Configuration
/// </summary>
public class ConfigurationException : AkkaException
{
public static ConfigurationException NullOrEmptyConfig<T>(string path = null, string reason = null)
public static ConfigurationException NullOrEmptyConfig<T>(string path = null)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverting this back to the old method fingerprint

@@ -35,7 +35,7 @@ public ClusterSettings(Config config, string systemName)
//TODO: Requiring!
var clusterConfig = config.GetConfig("akka.cluster");
if (clusterConfig?.GetConfig("failure-detector") == null)
throw ConfigurationException.NullOrEmptyConfig<ClusterSettings>("akka.cluster", "Did you forgot to set the 'akka.cluster.provider' HOCON property to 'cluster'?");
throw new ConfigurationException($"Failed to instantiate {nameof(ClusterSettings)}: Configuration does not contain `akka.cluster` node. Did you forgot to set the 'akka.cluster.provider' HOCON property to 'cluster'?");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just bake the exception message instead of using the helper method

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

Needs API approvals

@Arkatufus
Copy link
Contributor Author

Done

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) October 19, 2022 20:31
@Aaronontheweb
Copy link
Member

@Arkatufus going to give tests a chance to run, then we can push a new release

@Aaronontheweb Aaronontheweb merged commit 90dde25 into akkadotnet:v1.4 Oct 19, 2022
Arkatufus added a commit to Arkatufus/akka.net that referenced this pull request Oct 20, 2022
…et#6201)

* Revert ConfigurationException due to binary incompatibility

* Update API Verify list

(cherry picked from commit 90dde25)
Aaronontheweb pushed a commit that referenced this pull request Oct 20, 2022
…ity (#6204)

* Revert ConfigurationException due to binary incompatibility (#6201)

* Revert ConfigurationException due to binary incompatibility

* Update API Verify list

(cherry picked from commit 90dde25)

* Update API Verify list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants