Skip to content

fix(delete): poll deleter close future on exit#7316

Merged
Xuanwo merged 3 commits intoapache:mainfrom
dentiny:hjiang/fix-delete-exit
Mar 26, 2026
Merged

fix(delete): poll deleter close future on exit#7316
Xuanwo merged 3 commits intoapache:mainfrom
dentiny:hjiang/fix-delete-exit

Conversation

@dentiny
Copy link
Copy Markdown
Contributor

@dentiny dentiny commented Mar 26, 2026

Which issue does this PR close?

Closes #7315

Rationale for this change

On delete sink close, current implementation directly creates and drops close future, inside of which batch delete all left unsent requests.

What changes are included in this PR?

This PR checks close future before exit, to make sure all left unsent requests are taken care of.

Are there any user-facing changes?

No.

AI Usage Statement

Opus 4.6 crafted tests to trigger the issue.

@dentiny dentiny requested a review from Xuanwo as a code owner March 26, 2026 07:05
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/fix The PR fixes a bug or has a title that begins with "fix" labels Mar 26, 2026
@dentiny
Copy link
Copy Markdown
Contributor Author

dentiny commented Mar 26, 2026

Failed CI not related to my change :(

info: syncing channel updates for 'stable-aarch64-apple-darwin'
error: failed to download file error=Reqwest(reqwest::Error { kind: Request, url: "https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256", source: TimedOut })
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to '/Users/runner/.rustup/tmp/m1dniga3gy13b2f5_file': error downloading file: error sending request for url (https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256): operation timed out
Error: Process completed with exit code 1.

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 26, 2026
@dentiny dentiny force-pushed the hjiang/fix-delete-exit branch from 46f4cda to 43f71f2 Compare March 26, 2026 07:13
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 26, 2026
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Nice!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 26, 2026
@Xuanwo Xuanwo merged commit c8cfb19 into apache:main Mar 26, 2026
371 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: requested delete requests get dropped

2 participants