Skip to content

Commit

Permalink
isPatchUpdate would always be false
Browse files Browse the repository at this point in the history
* this results in things never getting consistent in the search

Signed-off-by: Yannic Klem <Yannic.Klem@bosch.io>
  • Loading branch information
Yannic92 committed Feb 1, 2022
1 parent b081563 commit 56a251b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -97,7 +97,7 @@ private Iterable<String> getConsistencyOKResult(final WriteResultAndErrors write
private void reportIncorrectPatch(final WriteResultAndErrors writeResultAndErrors) {
// Some patches are not applied due to inconsistent sequence number in the search index.
// It is not possible to identify which patches are not applied; therefore request all patch updates to retry.
writeResultAndErrors.getWriteModels().stream().filter(AbstractWriteModel::isPatchUpdate).forEach(model -> {
writeResultAndErrors.getWriteModels().stream().forEach(model -> {
final var response =
createFailureResponse(model.getMetadata()).setDittoHeaders(INCORRECT_PATCH_HEADERS);
model.getMetadata().getOrigin().ifPresent(updater -> updater.tell(response, ActorRef.noSender()));
Expand Down

0 comments on commit 56a251b

Please sign in to comment.