-
Notifications
You must be signed in to change notification settings - Fork 871
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
Add more logging message to monitor branch token update #5058
Conversation
@@ -121,6 +127,10 @@ func GetOrPollMutableState( | |||
return nil, err | |||
} | |||
if !versionhistory.ContainsVersionHistoryItem(currentVersionHistory, request.VersionHistoryItem) { | |||
logger.Warn("Request history branch and current history branch are mismatched prior to poll the mutable state.", |
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.
logger.Warn("Request history branch and current history branch are mismatched prior to poll the mutable state.", | |
logger.Warn("Request history branch and current history branch don't match prior to polling the mutable state", |
@@ -94,6 +96,10 @@ func GetOrPollMutableState( | |||
// We return the full version histories. Callers need to fetch the last version history item from current branch | |||
// and use the last version history item in following calls. | |||
if !versionhistory.ContainsVersionHistoryItem(currentVersionHistory, request.VersionHistoryItem) { | |||
logger.Warn("Request history branch and current history branch are mismatched.", | |||
tag.Value(currentVersionHistory), |
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.
I don't know much about this yet; is currentVersionHistory
safe to log? Safe in terms of (a) security, (b) size and (c) performance?
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.
change to log the last item. The length is fixed.
Co-authored-by: Stephan Behnke <stephanos@users.noreply.github.com>
Co-authored-by: Stephan Behnke <stephanos@users.noreply.github.com>
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.
1 of the 3 messages hasn't been updated yet
Co-authored-by: Stephan Behnke <stephanos@users.noreply.github.com>
<!-- Describe what has changed in this PR --> **What changed?** Add more logging message to monitor branch token update <!-- Tell your future self why have you made these changes --> **Why?** better debugging. <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** only logging. <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** --------- Co-authored-by: Stephan Behnke <stephanos@users.noreply.github.com>
What changed?
Add more logging message to monitor branch token update
Why?
better debugging.
How did you test it?
only logging.
Potential risks
Is hotfix candidate?