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

cache: fix buffer conflict in writeback mode #5563

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

polyrabbit
Copy link
Contributor

@polyrabbit polyrabbit commented Jan 16, 2025

A bug introduced in #5230

Otherwise, data corruption may happen.
image

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 21.49%. Comparing base (5714660) to head (9ddcf24).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5563       +/-   ##
===========================================
- Coverage   50.57%   21.49%   -29.09%     
===========================================
  Files         166       29      -137     
  Lines       48152    19167    -28985     
===========================================
- Hits        24353     4119    -20234     
+ Misses      21076    14558     -6518     
+ Partials     2723      490     -2233     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jiefenghuang jiefenghuang changed the title Fix buffer conflict in writeback mode cache: fix buffer conflict in writeback mode Jan 16, 2025
@jiefenghuang
Copy link
Contributor

jiefenghuang commented Jan 16, 2025

Currently, WithTimeout does not interrupt the goroutine after a timeout. It is necessary to set an appropriate default value for MaxStageWrite to prevent excessive concurrency under high load or abnormal conditions.

@polyrabbit
Copy link
Contributor Author

Updated

@jiefenghuang jiefenghuang merged commit 3416e45 into juicedata:main Jan 16, 2025
35 checks passed
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