Skip to content

Commit

Permalink
fix(mae-consumer): fix UpdateIndicesHook ignoring events with forceIn…
Browse files Browse the repository at this point in the history
…dexing property set to true
  • Loading branch information
Masterchen09 committed May 24, 2024
1 parent 47ba6d9 commit a58f742
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public UpdateIndicesHook init(@javax.annotation.Nonnull OperationContext systemO
public void invoke(@Nonnull final MetadataChangeLog event) {
if (event.getSystemMetadata() != null) {
if (event.getSystemMetadata().getProperties() != null) {
if (UI_SOURCE.equals(event.getSystemMetadata().getProperties().get(APP_SOURCE))
if (!Boolean.parseBoolean(event.getSystemMetadata().getProperties().get(FORCE_INDEXING_KEY))
&& UI_SOURCE.equals(event.getSystemMetadata().getProperties().get(APP_SOURCE))
&& !reprocessUIEvents) {
// If coming from the UI, we pre-process the Update Indices hook as a fast path to avoid
// Kafka lag
Expand Down

0 comments on commit a58f742

Please sign in to comment.