Skip to content

Conversation

@marcoSanti
Copy link
Member

@marcoSanti marcoSanti commented Jan 16, 2026

This commit fixes a bug in the streaming logic. Previously, when a consumer step attempted to open a file that did not yet exist, an error code was returned to the POSIX application instead of blocking execution until the file became available. This has been fixed by spawning a new thread that waits for the file to be created.

This commit also rewrites the internal logic of the handle_local_read() to fix streaming issues and to make it more understandable.

This commit fixes a bug in the streaming logic. Previusly when a
consumer step tried to open a file that did not exist yet, an error code
was returned to the poix application, instead of halting the execution
until the file was present. This has now been fixed by spawning a new
thread to wait for the creation of the new file. Another issue that this
commit fixes is a missing negation of a condition on the read handler,
which prevented streaming to correctly occur.
@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

❌ Patch coverage is 21.21212% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.32%. Comparing base (84bfd83) to head (d812922).

Files with missing lines Patch % Lines
capio/server/include/handlers/read.hpp 26.08% 6 Missing and 11 partials ⚠️
capio/server/include/handlers/open.hpp 10.00% 1 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #200      +/-   ##
==========================================
- Coverage   56.34%   56.32%   -0.02%     
==========================================
  Files          71       71              
  Lines        3429     3444      +15     
  Branches     2126     2133       +7     
==========================================
+ Hits         1932     1940       +8     
- Misses        578      579       +1     
- Partials      919      925       +6     

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

🚀 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.

2 participants