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

rawkv: Fix context leak in BatchDelete #704

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

pingyu
Copy link
Contributor

@pingyu pingyu commented Feb 15, 2023

Close #696 (#696 (comment))

Change

  • invoke cancel() to release ctx in bo when there is no error.

Test

Run this same program for reproducing in #696 (comment), the memory usage is stable and low for tens of minutes.
image

Signed-off-by: Ping Yu <yuping@pingcap.com>
@pingyu
Copy link
Contributor Author

pingyu commented Feb 15, 2023

@haojinming @zeminzhou PTAL, thanks~

Copy link
Contributor

@haojinming haojinming left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zeminzhou zeminzhou left a comment

Choose a reason for hiding this comment

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

LGTM~

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.

rawkv: Context leak in BatchPut
4 participants