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

updater: remove FindLock(), use errgroup to avoid races #685

Merged
merged 12 commits into from
Feb 14, 2019
Merged

updater: remove FindLock(), use errgroup to avoid races #685

merged 12 commits into from
Feb 14, 2019

Conversation

jzelinskie
Copy link
Contributor

@jzelinskie jzelinskie commented Jan 10, 2019

This addresses a race condition in the updater, and cleans up numerous minor issues.

@jzelinskie jzelinskie added kind/cleanup no functional changes, only reorganization component/database labels Jan 10, 2019
This addresses a race condition and makes this code much more
understandable.
This adds context support to a few more functions in the update process.
This makes progress towards to goal of having cancellable updates.
@jzelinskie jzelinskie changed the title Updater cleanup updater: remove FindLock(), use errgroup to avoid races Jan 10, 2019
Copy link
Contributor

@KeyboardNerd KeyboardNerd left a comment

Choose a reason for hiding this comment

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

Please also update mock.go

pkg/timeutil/timeutil.go Show resolved Hide resolved
pkg/timeutil/timeutil.go Show resolved Hide resolved
pkg/timeutil/timeutil.go Outdated Show resolved Hide resolved
updater.go Outdated Show resolved Hide resolved
updater.go Show resolved Hide resolved
Copy link
Contributor

@KeyboardNerd KeyboardNerd left a comment

Choose a reason for hiding this comment

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

some minor comments, otherwise looks good.

updater.go Outdated Show resolved Hide resolved
@KeyboardNerd
Copy link
Contributor

Copy link
Contributor

@KeyboardNerd KeyboardNerd left a comment

Choose a reason for hiding this comment

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

LGTM

@jzelinskie jzelinskie merged commit cafe097 into quay:master Feb 14, 2019
@jzelinskie jzelinskie deleted the updater-cleanup branch February 14, 2019 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup no functional changes, only reorganization
Development

Successfully merging this pull request may close these issues.

None yet

2 participants