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

layer file download: final rename: fix durability #6991

Conversation

problame
Copy link
Contributor

@problame problame commented Mar 1, 2024

Before this PR, the layer file download code would fsync the inode after
rename instead of the timeline directory. That is not in line with what
a comment further up says we're doing, and it's obviously not achieving
the goal of making the rename durable.

part of #6663

Before this PR, the layer file download code would fsync the inode after
rename instead of the timeline directory. That is not in line with what
a comment further up says we're doing, and it's obviously not achieving
the goal of making the rename durable.

part of #6663
…kio-epoll-uring/write-path/ondemand-download-preliminary-1
Copy link
Member

@koivunej koivunej left a comment

Choose a reason for hiding this comment

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

Regardless of fsync(new) after rename or the discrepency due to lack of it to the comment above, this is already a good fix. Good note on the sync_all blocking on std-fs, bifurcation.

Copy link

github-actions bot commented Mar 1, 2024

2484 tests run: 2362 passed, 0 failed, 122 skipped (full report)


Flaky tests (1)

Postgres 15

  • test_vm_bit_clear_on_heap_lock: debug

Code coverage* (full report)

  • functions: 28.8% (6960 of 24202 functions)
  • lines: 47.2% (42625 of 90217 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
cc22d64 at 2024-03-05T11:15:22.517Z :recycle:

…kio-epoll-uring/write-path/ondemand-download-preliminary-1
@problame problame enabled auto-merge (squash) March 5, 2024 10:28
@problame problame merged commit f3e4f85 into main Mar 5, 2024
52 checks passed
@problame problame deleted the problame/integrate-tokio-epoll-uring/write-path/ondemand-download-preliminary-1 branch March 5, 2024 11:09
problame added a commit that referenced this pull request Mar 5, 2024
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.

None yet

2 participants