Skip to content

Commit

Permalink
removed pre-process the Update Indices hook. For current code to trac…
Browse files Browse the repository at this point in the history
…k events for kibana, we have to go through kafka route
  • Loading branch information
neojunjie committed Feb 19, 2024
1 parent 55848ef commit a4c83ea
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ public boolean isEnabled() {

@Override
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 coming from the UI, we pre-process the Update Indices hook as a fast path to avoid Kafka lag
return;
}
}
}
_updateIndicesService.handleChangeEvent(event);
}
}

0 comments on commit a4c83ea

Please sign in to comment.