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

Propose snapshot once indexing is complete #5005

Merged
merged 3 commits into from
Mar 25, 2020
Merged

Conversation

mangalaman93
Copy link
Member

@mangalaman93 mangalaman93 commented Mar 23, 2020

This change is Reviewable

@mangalaman93 mangalaman93 requested review from manishrjain and a team as code owners March 23, 2020 16:07
worker/mutation.go Outdated Show resolved Hide resolved
Copy link
Contributor

@manishrjain manishrjain left a comment

Choose a reason for hiding this comment

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

:lgtm: Do address the comment.

Reviewed 1 of 1 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @golangcibot)


worker/mutation.go, line 157 at r1 (raw file):

Previously, golangcibot (Bot from GolangCI) wrote…

Error return value of gr.Node.proposeSnapshot is not checked (from errcheck)

Maybe add a check for time. If it took more than 10s to do the indexing job, then do the proposeSnapshot.

Copy link
Member Author

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @golangcibot)


worker/mutation.go, line 157 at r1 (raw file):

Previously, manishrjain (Manish R Jain) wrote…

Maybe add a check for time. If it took more than 10s to do the indexing job, then do the proposeSnapshot.

Done.

@mangalaman93 mangalaman93 merged commit 2d5c094 into master Mar 25, 2020
@mangalaman93 mangalaman93 deleted the aman/snapshot branch March 25, 2020 12:37
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.

3 participants