Skip to content

Commit

Permalink
Do not ignore mass indexing failures
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Nov 27, 2024
1 parent 1f3f33f commit 3ceaaa8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

import org.hibernate.search.backend.elasticsearch.ElasticsearchBackend;
import org.hibernate.search.mapper.pojo.standalone.mapping.SearchMapping;
import org.hibernate.search.util.common.impl.Throwables;

import org.elasticsearch.client.Request;
import org.elasticsearch.client.RestClient;
Expand Down Expand Up @@ -253,7 +254,7 @@ private void indexAll(FailureCollector failureCollector) {
} catch (TimeoutException e) {
future.cancel(true);
} catch (ExecutionException e) {
e.getCause();
throw Throwables.toRuntimeException(e.getCause());
}
}

Expand Down

0 comments on commit 3ceaaa8

Please sign in to comment.