algolia / algolia/algoliasearch-client-java

CancellationException blocking whole service

Open
#780 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
52
Forks
33
PR merge metrics
No merged PRs in 30d

Description

- Algolia Client Version: 3.16.5
- Language Version: JAVA

### 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)

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by reproducing the long-running Kafka workload with algoliasearch-client-java 3.16.5, then compare it with 3.2.1 while observing repeated HTTP requests; done means one CancellationException no longer prevents later item updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kafka
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.