fixed bug that release the connection to the poll two times and makes the pool in an inconsistency status

This commit is contained in:
Sandro La Bruzzo 2023-11-14 09:36:12 +01:00
parent dbe6d76c59
commit dab357e82d
2 changed files with 1 additions and 2 deletions

View File

@ -163,7 +163,6 @@ public class ScholixIndexManager {
final SearchHits<ScholixFlat> hits = client.search(searchQuery, ScholixFlat.class, IndexCoordinates.of(elasticSearchProperties.getIndexName()));
final Aggregations aggregations = hits.getAggregations();
connectionPool.returnResource(resource);
if (aggregations == null)
return null;

View File

@ -453,7 +453,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.plugin.version>3.6.0</maven.compiler.plugin.version>
<java.version>1.8</java.version>
<dhp-schemas-version>3.16.1-SNAPSHOT</dhp-schemas-version>
<dhp-schemas-version>3.17.2-FLAT-SNAPSHOT</dhp-schemas-version>
<apache.solr.version>7.1.0</apache.solr.version>
<mongodb.driver.version>3.4.2</mongodb.driver.version>
<prometheus.version>0.10.0</prometheus.version>