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

refactor(virtual_file): take owned buffer in VirtualFile::write_all #6664

Conversation

problame
Copy link
Contributor

@problame problame commented Feb 7, 2024

Building atop #6660 , this PR converts VirtualFile::write_all to used owned buffers.

Part of #6663

Copy link

github-actions bot commented Feb 7, 2024

2430 tests run: 2319 passed, 0 failed, 111 skipped (full report)


Flaky tests (3)

Postgres 16

  • test_crafted_wal_end[last_wal_record_crossing_segment]: release

Postgres 15

  • test_vm_bit_clear_on_heap_lock: debug

Postgres 14

  • test_pg_regress[4]: debug

Code coverage (full report)

  • functions: 54.9% (11887 of 21665 functions)
  • lines: 82.1% (66269 of 80739 lines)

The comment gets automatically updated with the latest test results
8998178 at 2024-02-12T16:14:35.121Z :recycle:

…r-blob-writer' into problame/integrate-tokio-epoll-uring/write-path/virtual-file-write-all
…kio-epoll-uring/write-path/refactor-blob-writer
…r-blob-writer' into problame/integrate-tokio-epoll-uring/write-path/virtual-file-write-all
@problame problame marked this pull request as ready for review February 12, 2024 12:58
@problame problame requested a review from a team as a code owner February 12, 2024 12:58
@problame
Copy link
Contributor Author

Will rebase once the preceding PR #6660 has merged.

Base automatically changed from problame/integrate-tokio-epoll-uring/write-path/refactor-blob-writer to main February 12, 2024 14:58
@problame problame merged commit 7fa732c into main Feb 13, 2024
51 checks passed
@problame problame deleted the problame/integrate-tokio-epoll-uring/write-path/virtual-file-write-all branch February 13, 2024 17:46
problame added a commit that referenced this pull request Feb 14, 2024
context: #6663

Building atop #6664, this PR switches `write_all_at` to take owned
buffers.

The main challenge here is the `EphemeralFile::mutable_tail`, for which
I'm picking the ugly solution of an `Option` that is `None` while the IO
is in flight.

After this, we will be able to switch `write_at` to take owned buffers
and call tokio-epoll-uring's `write` function with that owned buffer.
That'll be done in #6378.
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