Skip to content

Conversation

@tvernum
Copy link
Contributor

@tvernum tvernum commented Nov 6, 2020

This changes the token service so that it recognises when a refresh
token is already invalidated and does not attempt to invalidated it
again.

Although the update would be detected as a no-op and handled
appropriately, the code could fail if the underlying document was
deleted between the search and the update.

Since we know that update will be a no-op, we can skip any attempt to
do the update, and return immediately.

Backport of: #64259

This changes the token service so that it recognises when a refresh
token is already invalidated and does not attempt to invalidated it
again.

Although the update would be detected as a no-op and handled
appropriately, the code could fail if the underlying document was
deleted between the search and the update.

Since we know that update will be a no-op, we can skip any attempt to
do the update, and return immediately.

Backport of: elastic#64259
@tvernum
Copy link
Contributor Author

tvernum commented Nov 9, 2020

@elasticmachine update branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants