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

fix missing check for empty deployment id #2786

Merged

Conversation

sebastianburckhardt
Copy link
Contributor

This is a fix for the bug observed in #2774.

The problem was that cluster-id was picking deployment-id as a default, but deployment-id can be null or empty. This PR adds a check to catch this and use an appropriate default in all cases.

}

private const string CLUSTER_ID_DEFAULT = "A"; // if no id is configured, we pick a nonempty default.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better to put something more meaningful than "A", e.g. "DefaultClusterID".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair enough.

@sergeybykov sergeybykov merged commit 7ba1072 into dotnet:master Mar 1, 2017
sergeybykov pushed a commit to sergeybykov/orleans that referenced this pull request Mar 17, 2017
jdom pushed a commit that referenced this pull request Mar 17, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants