forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Amend
prepareIndexIfNeededThenExecute
for token refresh (elastic#41697
) This fixes a low level bug that manifests, in certain circumstances, by the failure of the refresh operation. Version 7.1 added a new `superseded_by` field to the `.security` index mapping. This field is used when indexing a refresh operation (a document update). Because the document update was not guarded by the obligatory `prepareIndexIfNeededThenExecute` the refresh operation would fail if it were the first operation when the cluster was upgraded from a version < 7.1 . This failure was catched (and fails reliably) in the backport elastic#41673 .
- Loading branch information
1 parent
56c9d94
commit 18dd12b
Showing
1 changed file
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters