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

Adding log lines to help troubleshoot snapshot and rollup #3889

Merged
merged 1 commit into from
Sep 6, 2019

Conversation

gitlw
Copy link

@gitlw gitlw commented Aug 30, 2019

During troubleshooting it's sometimes useful to see that the snapshot and rollup logic are being evaluated, and know the decision of the evaluation. This PR adds the logs at verbose level 3 to help with the troubleshooting.


This change is Reviewable

@gitlw gitlw requested review from manishrjain and a team as code owners August 30, 2019 19:23
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ A review job has been created and sent to the PullRequest network.


@gitlw you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

Minor comment on readability in-line.


Reviewed with ❤️ by PullRequest

@@ -403,6 +403,7 @@ func (n *node) processRollups() {
return
case readTs = <-n.rollupCh:
case <-tick.C:
glog.V(3).Infof("Evaluating rollup readTs:%d last:%d rollup:%v", readTs, last, readTs > last)
Copy link

Choose a reason for hiding this comment

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

You might want to add a space between all the : and the actual words for readability in the logtrace.

example readTs:%d -> readTs : %d

Ditto for the other log statement that was added in this PR.

Copy link
Contributor

@martinmr martinmr left a comment

Choose a reason for hiding this comment

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

:lgtm: other than spaces after colons.

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @gitlw and @manishrjain)

@gitlw gitlw merged commit e08d917 into master Sep 6, 2019
@gitlw gitlw deleted the gitlw/adding_log branch September 6, 2019 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants