Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andresilva
Copy link
Collaborator

@andresilva andresilva commented Aug 24, 2025

Timeout operations were not acounted for when submitting to the ring, this could lead to capacity overflow. Contains a regression test to showcase the problem (panics before the last commit).

@andresilva
Copy link
Collaborator Author

Should we internally double the ring size when op_timeout is enabled? As it is right now it might be a bit surprising to users that the effective useful capacity of the ring is half of what they configured.

// Try to fill the submission queue with incoming work.
// Stop if we are at the max number of processing work.
while waiters.len() < cfg.size as usize {
// NOTE: When op_timeout is set, each operation uses 2 SQ entries
Copy link
Contributor

Choose a reason for hiding this comment

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

noice

@patrick-ogrady
Copy link
Contributor

Should we internally double the ring size when op_timeout is enabled? As it is right now it might be a bit surprising to users that the effective useful capacity of the ring is half of what they configured.

That's a good question. I think doubling makes the most sense.

@andresilva
Copy link
Collaborator Author

Should we internally double the ring size when op_timeout is enabled? As it is right now it might be a bit surprising to users that the effective useful capacity of the ring is half of what they configured.

That's a good question. I think doubling makes the most sense.

Yeah that makes the most sense to me too. Updated the PR.

@patrick-ogrady patrick-ogrady merged commit 96fe859 into commonwarexyz:main Aug 25, 2025
36 checks passed
@codecov
Copy link

codecov bot commented Aug 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.69%. Comparing base (8523459) to head (83476fa).
⚠️ Report is 2 commits behind head on main.

@@            Coverage Diff             @@
##             main    #1465      +/-   ##
==========================================
- Coverage   91.69%   91.69%   -0.01%     
==========================================
  Files         278      278              
  Lines       70326    70326              
==========================================
- Hits        64487    64486       -1     
- Misses       5839     5840       +1     

see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8523459...83476fa. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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