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: write cancel when flush pending write queue #940

Merged
merged 4 commits into from
May 30, 2023

Conversation

ShiKaiWi
Copy link
Member

@ShiKaiWi ShiKaiWi commented May 29, 2023

Related Issues

Closes #

Detailed Changes

Currently, the writer for the first request in the pending write queue is responsible for flushing all the writes in the queue, but it can't be ensured to always trigger flush because it may be cancelled when await for the serial exec lock. And this change set replaces the try_join_all in the rpc services to avoid such cancellation.

Test Plan

Test it manually.

@ShiKaiWi ShiKaiWi force-pushed the fix-write-cancel branch from d4e439d to 7a45082 Compare May 29, 2023 11:38
@ShiKaiWi ShiKaiWi marked this pull request as draft May 29, 2023 12:11
@ShiKaiWi ShiKaiWi force-pushed the fix-write-cancel branch from 7a45082 to ac37f56 Compare May 30, 2023 02:32
@ShiKaiWi ShiKaiWi marked this pull request as ready for review May 30, 2023 05:57
@ShiKaiWi ShiKaiWi mentioned this pull request May 30, 2023
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

@ShiKaiWi ShiKaiWi merged commit 2b9de8d into apache:main May 30, 2023
@ShiKaiWi ShiKaiWi deleted the fix-write-cancel branch May 30, 2023 06:37
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.

3 participants