Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid write queue full block #1065

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

baojinri
Copy link
Contributor

@baojinri baojinri commented Jul 11, 2023

Rationale

If the first write request is canceled, the write request in the queue will never be executed, until the queue is full, then an error will be returned.

Detailed Changes

Use CancellationSafeFuture to execute the write requests, see #1071

Test Plan

Existing tests.

@baojinri baojinri marked this pull request as draft July 14, 2023 05:56
@baojinri baojinri force-pushed the fix-write-with-pending-queue branch from f092e6a to 0d86dd1 Compare July 14, 2023 09:16
@baojinri baojinri marked this pull request as ready for review July 14, 2023 09:19
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jiacai2050 jiacai2050 merged commit 5b3b757 into apache:main Jul 17, 2023
MichaelLeeHZ pushed a commit to MichaelLeeHZ/ceresdb that referenced this pull request Jul 18, 2023
## Rationale
If the first write request is canceled, the write request in the queue
will never be executed, until the queue is full, then an error will be
returned.

## Detailed Changes
Use `CancellationSafeFuture` to  execute the write requests, see apache#1071 

## Test Plan
Existing tests.
@baojinri baojinri deleted the fix-write-with-pending-queue branch December 5, 2023 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants