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

chore: decrease mutable write buffer limit #2390

Merged
merged 4 commits into from
Sep 14, 2023

Conversation

evenyag
Copy link
Contributor

@evenyag evenyag commented Sep 14, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This PR reduces the mutable write buffer limit to global_write_buffer_size / 2. Otherwise, when we reach the mutable limit and trigger flush, it is easy to stall the engine as there is only 1/8 capacity left.

Other minor refactors:

  • Changes position of handle_flush_finished()
  • Renames tests.rs

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@evenyag evenyag marked this pull request as ready for review September 14, 2023 07:40
@evenyag evenyag self-assigned this Sep 14, 2023
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #2390 (355bc70) into develop (a7df5a7) will decrease coverage by 0.05%.
Report is 1 commits behind head on develop.
The diff coverage is 86.88%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2390      +/-   ##
===========================================
- Coverage    77.52%   77.47%   -0.05%     
===========================================
  Files          717      717              
  Lines       113961   113962       +1     
===========================================
- Hits         88348    88294      -54     
- Misses       25613    25668      +55     

Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008 killme2008 added this pull request to the merge queue Sep 14, 2023
Merged via the queue into GreptimeTeam:develop with commit 26992d5 Sep 14, 2023
13 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* chore: set mutable limit to half of the global write buffer size

* refactor: put handle_flush_finished after handle_flush_request

* refactor: rename tests.rs to basic_test.rs

* style: fmt code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants