-
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
Log send time and sqNbr in verbose cluster heartbeat messages #6496. #6548
Conversation
@@ -248,7 +247,8 @@ private void CheckTickInterval() | |||
"Previous heartbeat was sent [{1}] ms ago, expected interval is [{2}] ms. This may cause failure detection " + | |||
"to mark members as unreachable. The reason can be thread starvation, e.g. by running blocking tasks on the " + | |||
"default dispatcher, CPU overload, or GC.", | |||
_cluster.SelfAddress, (now - _tickTimestamp).TotalMilliseconds, _cluster.Settings.HeartbeatInterval.TotalMilliseconds); | |||
_cluster.SelfAddress, (now - _tickTimestamp).TotalMilliseconds.ToString(CultureInfo.InvariantCulture), |
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.
Usage of CultureInfo.InvariantCulture here may be breaking changes, because without ToString logger calls object.ToString() which should use current culture.
Not sure do we need to use InvariantCulture here.
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.
InvariantCulture
is the right call - won't be a breaking change for anyone (we don't consider updates to the content of log messages to be breaking changes.)
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.
One minor usability nitpick
@@ -248,7 +247,8 @@ private void CheckTickInterval() | |||
"Previous heartbeat was sent [{1}] ms ago, expected interval is [{2}] ms. This may cause failure detection " + | |||
"to mark members as unreachable. The reason can be thread starvation, e.g. by running blocking tasks on the " + | |||
"default dispatcher, CPU overload, or GC.", | |||
_cluster.SelfAddress, (now - _tickTimestamp).TotalMilliseconds, _cluster.Settings.HeartbeatInterval.TotalMilliseconds); | |||
_cluster.SelfAddress, (now - _tickTimestamp).TotalMilliseconds.ToString(CultureInfo.InvariantCulture), |
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.
InvariantCulture
is the right call - won't be a breaking change for anyone (we don't consider updates to the content of log messages to be breaking changes.)
Fixes #6496
Changes
Log send time and sqNbr in verbose cluster heartbeat messages
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):