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
Cluster - Add app-version to the Member information #4577
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ namespace Akka.Cluster | |
public CurrentClusterState() { } | ||
public CurrentClusterState(System.Collections.Immutable.ImmutableSortedSet<Akka.Cluster.Member> members, System.Collections.Immutable.ImmutableHashSet<Akka.Cluster.Member> unreachable, System.Collections.Immutable.ImmutableHashSet<Akka.Actor.Address> seenBy, Akka.Actor.Address leader, System.Collections.Immutable.ImmutableDictionary<string, Akka.Actor.Address> roleLeaderMap) { } | ||
public System.Collections.Immutable.ImmutableHashSet<string> AllRoles { get; } | ||
public bool HasMoreThanOneAppVersion { get; } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ran into this issue the other day with a large user cluster - looks like a good addition |
||
public Akka.Actor.Address Leader { get; } | ||
public System.Collections.Immutable.ImmutableSortedSet<Akka.Cluster.Member> Members { get; } | ||
public System.Collections.Immutable.ImmutableHashSet<Akka.Actor.Address> SeenBy { get; } | ||
|
@@ -184,6 +185,7 @@ namespace Akka.Cluster | |
{ | ||
public ClusterSettings(Akka.Configuration.Config config, string systemName) { } | ||
public bool AllowWeaklyUpMembers { get; } | ||
public Akka.Util.AkkaVersion AppVersion { get; } | ||
public System.Nullable<System.TimeSpan> AutoDownUnreachableAfter { get; } | ||
[System.ObsoleteAttribute("Use Cluster.DowningProvider.DownRemovalMargin [1.1.2]")] | ||
public System.TimeSpan DownRemovalMargin { get; } | ||
|
@@ -230,6 +232,7 @@ namespace Akka.Cluster | |
public static readonly System.Collections.Generic.IComparer<Akka.Actor.Address> AddressOrdering; | ||
public static readonly System.Collections.Generic.IComparer<Akka.Cluster.Member> AgeOrdering; | ||
public Akka.Actor.Address Address { get; } | ||
public Akka.Util.AkkaVersion AppVersion { get; } | ||
public System.Collections.Immutable.ImmutableHashSet<string> Roles { get; } | ||
public Akka.Cluster.MemberStatus Status { get; } | ||
public Akka.Cluster.UniqueAddress UniqueAddress { get; } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
using Akka.Dispatch; | ||
using Akka.Remote; | ||
using Akka.TestKit; | ||
using Akka.Util; | ||
using FluentAssertions; | ||
using Xunit; | ||
|
||
|
@@ -45,6 +46,7 @@ public void Clustering_must_be_able_to_parse_generic_cluster_config_elements() | |
settings.MinNrOfMembers.Should().Be(1); | ||
settings.MinNrOfMembersOfRole.Should().Equal(ImmutableDictionary<string, int>.Empty); | ||
settings.Roles.Should().BeEquivalentTo(ImmutableHashSet<string>.Empty); | ||
settings.AppVersion.Should().Be(AkkaVersion.Zero); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM |
||
settings.UseDispatcher.Should().Be(Dispatchers.InternalDispatcherId); | ||
settings.GossipDifferentViewProbability.Should().Be(0.8); | ||
settings.ReduceGossipDifferentViewProbability.Should().Be(400); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed for
optional
proto membersThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM