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

pkg/test/client: retry cleanup function if cluster is temporarily unavailable #2277

Merged
merged 1 commit into from
Jan 20, 2020

Commits on Jan 17, 2020

  1. pkg/test/client: retry cleanup function if cluster is temporarily una…

    …vailable
    
    There are instances where the cluster could be temporarily unavailable.
    e.g. when etcd is doing leader re-election.
    
        https://search.svc.ci.openshift.org/?search=etcdserver%3A+leader+changed&maxAge=336h&context=2&type=all
    
    While this is not a very normal scenario, it would be good to be lenient
    on the cleanup side of things and retry if such a case happens.
    
    This will be reflected as Timeout or Unavailable errors coming from etcd.
    This patch proposes to retry with backoff in an error happens. After a
    set number of retries, it'll return the appropriate error.
    JAORMX committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    4299539 View commit details
    Browse the repository at this point in the history