Skip to content

Commit

Permalink
Addressing assertion failure, 'downgrading' to Exception - enrich (#7…
Browse files Browse the repository at this point in the history
…9717)

 Addressing assertion failure, 'downgrading' to Exception by moving to try catch. Fixes "java.lang.AssertionError: java.lang.AssertionError: callback must handle its own exceptions"
  • Loading branch information
mjmbischoff authored Oct 25, 2021
1 parent c10bf9b commit 809c13f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ public void run() {
client.admin().indices().getIndex(getIndexRequest, listener.delegateFailure((l, getIndexResponse) -> {
try {
validateMappings(getIndexResponse);
prepareAndCreateEnrichIndex(toMappings(getIndexResponse));
} catch (Exception e) {
l.onFailure(e);
return;
}
prepareAndCreateEnrichIndex(toMappings(getIndexResponse));
}));
}

Expand Down

0 comments on commit 809c13f

Please sign in to comment.