-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Allow cluster singleton zero buffer size to disable buffering #4769
Conversation
if (bufferSize <= 0) | ||
throw new ArgumentException("bufferSize must be positive", nameof(bufferSize)); | ||
if (bufferSize < 0) | ||
throw new ArgumentException("bufferSize must not be negative", nameof(bufferSize)); |
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.
The 0
value is actually supported in the code:
akka.net/src/contrib/cluster/Akka.Cluster.Tools/Singleton/ClusterSingletonProxy.cs
Line 252 in b76b98a
if (_settings.BufferSize == 0) |
So this is just a minor validation issue.
@@ -30,40 +30,38 @@ public class ReceiveTimeoutSpecs : TestKit | |||
public class CheckTimeout : INotInfluenceReceiveTimeout { } | |||
public class ReceiveTimeoutActor : ReceiveActor | |||
{ | |||
private bool _timedOut = false; | |||
private readonly TimeSpan _inactivityTimeout; |
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.
Nevermind, I will fix this racy spec in separate PR: #4775
PR is sometimes passing, sometimes fails on some racy queries - but it is ready for review and merge I think. |
Closes #4763