From 3ceaaa8ef81eac737d3960f434a545259b1ed67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Wed, 27 Nov 2024 14:00:30 +0100 Subject: [PATCH] Do not ignore mass indexing failures --- .../java/io/quarkus/search/app/indexing/IndexingService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/quarkus/search/app/indexing/IndexingService.java b/src/main/java/io/quarkus/search/app/indexing/IndexingService.java index dde72e7..0fc5619 100644 --- a/src/main/java/io/quarkus/search/app/indexing/IndexingService.java +++ b/src/main/java/io/quarkus/search/app/indexing/IndexingService.java @@ -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; @@ -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()); } }