CancellationException blocking whole service

未關閉
#780 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
java, kafka
領域
api, backend

研究方向

未指定原始檔案或測試。首先使用 algoliasearch-client-java 3.16.5 重現長時間執行的 Kafka 工作負載,然後在觀察重複 HTTP 請求的同時將其與 3.2.1 進行比較;當一個 CancellationException 不再阻止後續項目更新時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

  • 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)
主要語言
Java
星號
51
分支
33
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

algolia/algoliasearch-client-java 的其他 Issue

查看 algolia/algoliasearch-client-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。