apache / apache/bookkeeper

Add cancellation support for async add interface with pre-IO check

Open
#4,644 3 comments 0 reactions 0 assignees View on GitHub
type/feature
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

**FEATURE REQUEST**

Currently, the async add operation in Bookie (e.g., asyncAddEntry) lacks a mechanism to fast-fail if the request is cancelled before actual I/O (e.g., writeAndFlush). This can lead to unnecessary resource consumption (e.g., thread pool, queue, direct mem) for cancelled requests, especially in high-throughput scenarios where clients may cancel pending writes due to timeouts or application logic.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.