Skip to content

Handle "invalid request" failures stemming from a kvv2 upgrade.#9550

Merged
ncabatoff merged 2 commits into
masterfrom
retry-kvv2-invalid-reqs
Jul 22, 2020
Merged

Handle "invalid request" failures stemming from a kvv2 upgrade.#9550
ncabatoff merged 2 commits into
masterfrom
retry-kvv2-invalid-reqs

Conversation

@ncabatoff
Copy link
Copy Markdown
Collaborator

@ncabatoff ncabatoff commented Jul 21, 2020

@ncabatoff ncabatoff requested a review from mgritter July 21, 2020 19:32
Copy link
Copy Markdown
Contributor

@mgritter mgritter left a comment

Choose a reason for hiding this comment

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

This seems sufficient.

if errors.Is(err, logical.ErrInvalidRequest) {
// Handle scenario where KVv2 upgrade is ongoing
time.Sleep(100 * time.Millisecond)
continue
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd feel better if there were a maximum number of retries.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@ncabatoff ncabatoff merged commit 70bb5fe into master Jul 22, 2020
@ncabatoff ncabatoff deleted the retry-kvv2-invalid-reqs branch July 22, 2020 14:56
@ncabatoff ncabatoff added this to the 1.6 milestone Aug 17, 2020
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