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

fix(kube): ignore errors.IsConflict on update call #237

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

Cryptophobia
Copy link
Contributor

@Cryptophobia Cryptophobia commented Aug 4, 2021

  • multiple log-routers try to update a single unique ResourceVersion
  • ignore errors.IsConflict as it is ResourceVersion collision
  • no need to retry, each log-router is a process, muli-thread because of daemonset, etcd version is our lock
  • only one log-router needs to succeed, same validation happens in all log-routers

Signed-off-by: Anton Ouzounov aouzounov@vmware.com

 - multiple log-routers try to update a single unique ResourceVersion
 - ignore errors.IsConflict as it is ResourceVersion collision
 - no need to retry, each log-router is a process, muli-thread because of daemonset, etcd version is our lock
 - only one log-router needs to succeed, same validation happens in all log-routers

Signed-off-by: Anton Ouzounov <aouzounov@vmware.com>
@Cryptophobia Cryptophobia merged commit 886326e into vmware:master Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants