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

scope out virtualfile asyncification work #5158

Closed
wants to merge 5 commits into from

Conversation

problame
Copy link
Contributor

@problame problame commented Aug 31, 2023

(This PR explores what's necessary to asyncify VirtualFile)

See #4743 (comment)

commit edbe3d2
Author: Arpad Müller <[email protected]>
Date:   Mon Aug 28 11:49:56 2023 +0200

    Remove Read impl that was only used in one place

commit 0d9fa95
Author: Arpad Müller <[email protected]>
Date:   Mon Aug 28 11:31:43 2023 +0200

    Move used FileExt functions to inherent impls

commit e983b3c
Author: Arpad Müller <[email protected]>
Date:   Mon Aug 28 11:05:06 2023 +0200

    Don't use generics bounded by trait

commit a362ab9
Author: Arpad Müller <[email protected]>
Date:   Mon Aug 28 10:27:12 2023 +0200

    Move VirtualFile::seek to inherent function

commit 0cfc9ed
Author: Arpad Müller <[email protected]>
Date:   Thu Aug 17 00:02:37 2023 +0200

    Make read_blk and parts of the page cache async

    The returned PageReadGuard is not Send so we change the locks used for
    the SlotInner's in the page cache to the ones from tokio.

    Also, make read_blk async.
Insights: it's needed

- for save_metadata and persistent_tenant_conf: these always "replace"
  the file to be overwritten with contents provided in an in-memory
  buffer. We can have a dedicated VirtualFile API for that purpose.

- the Delta / Image layer writers need `Summary::ser_into(&summary, &mut file)?`
  and `write_all` . Probably feasible.
@problame problame requested a review from arpad-m August 31, 2023 09:06
@github-actions
Copy link

No tests were run or test report is not available

The comment gets automatically updated with the latest test results
7f9897e at 2023-08-31T09:10:54.222Z :recycle:

@arpad-m
Copy link
Member

arpad-m commented Sep 8, 2023

Closing as the VirtualFile asyncification is almost done, see #5247 and the PRs it links. Thanks @problame for your help.

@arpad-m arpad-m closed this Sep 8, 2023
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