algolia / algoliasearch-client-java

⚡️ A fully-featured and blazing-fast Java API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/java/
MIT License
47 stars 33 forks source link

CancellationException blocking whole service #780

Open CedricJezequel opened 2 years ago

CedricJezequel commented 2 years ago

Description

Currently we have a service implemented with vert.x for processing parallel tasks which consume a Kafka queue for injecting items in an Algolia index (~100 req/15min). During last development, we took the opportunity to upgrade algolia-core and algolia-apache depencendies from 3.2.1 to 3.16.5, and since this upgrade we observed CancellationException, which completely broke our service : since one HTTP call to Algolia with your framework had this exception, others will also have it and so can not update items anymore. The only solution we had was to restart the entire service. Before having a response from your team, we delivered a new version from our service, using v3.2.1 : no CancellationException seen since this update.

Steps To Reproduce

  1. Consume Kafka queue between 1 (~10 000 req) and 3 days (~30 000 req)