Skip to content

feat: Support rapid appends for rw/w/w+ file open modes#4613

Draft
kislaykishore wants to merge 3 commits intomasterfrom
fix-known-issues
Draft

feat: Support rapid appends for rw/w/w+ file open modes#4613
kislaykishore wants to merge 3 commits intomasterfrom
fix-known-issues

Conversation

@kislaykishore
Copy link
Copy Markdown
Collaborator

When opening a file in a write-capable mode (O_WRONLY or O_RDWR), bypass the redundant StatObject call for zonal buckets when EnableRapidAppends is true.

Previously, this optimization was only applied to explicitly opened O_APPEND modes. This change broadens the scope to allow buffered writes to be initialized for workflows that open files for writing, seek to the end, and write without explicitly using append modes (a common pattern for database workloads).

* Indicate that the premature-EOF/incorrect data reads can happen for versions older than 3.0.
* Remove disabling-streaming-writes from the list of workarounds.
When opening a file in a write-capable mode (O_WRONLY or O_RDWR), bypass the
redundant StatObject call for zonal buckets when EnableRapidAppends is true.
Previously, this optimization was only applied to O_APPEND modes.
This change broadens the scope to allow buffered writes to be initialized
for workflows that open files for writing, seek to the end, and write without
explicitly using append modes.
@kislaykishore kislaykishore added the execute-integration-tests Run only integration tests label Apr 13, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.66%. Comparing base (cfe974b) to head (ac19e2d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4613      +/-   ##
==========================================
- Coverage   83.67%   83.66%   -0.01%     
==========================================
  Files         164      164              
  Lines       20215    20217       +2     
==========================================
+ Hits        16914    16915       +1     
- Misses       2664     2665       +1     
  Partials      637      637              
Flag Coverage Δ
unittests 83.66% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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

execute-integration-tests Run only integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant