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

fix(layer): error out early if layer path is non-file #5756

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

koivunej
Copy link
Member

@koivunej koivunej commented Nov 1, 2023

In an earlier PR #5743 (comment) I added a FIXME and there's a simple solution suggested by @jcsp, so implement it. Wondering why I did not implement this originally, there is no concept of a permanent failure, so this failure will happen quite often. I don't think the frequency is a problem however.

Sadly for std::fs::FileType there is only decimal and hex formatting, no octal.

@koivunej koivunej requested a review from jcsp November 1, 2023 17:48
@koivunej koivunej requested a review from a team as a code owner November 1, 2023 17:48
@koivunej koivunej requested review from hlinnaka and removed request for a team November 1, 2023 17:48
@koivunej koivunej changed the title fix(layer): error out early if layer file is non-file fix(layer): error out early if layer path is non-file Nov 1, 2023
Copy link

github-actions bot commented Nov 1, 2023

2340 tests run: 2224 passed, 0 failed, 116 skipped (full report)


Flaky tests (4)

Postgres 16

  • test_restarts_frequent_checkpoints: release

Postgres 15

  • test_competing_branchings_from_loading_race_to_ok_or_err: debug
  • test_ts_of_lsn_api: debug
  • test_empty_tenant_size: debug

Code coverage (full report)

  • functions: 53.3% (8644 of 16206 functions)
  • lines: 81.4% (50090 of 61513 lines)

The comment gets automatically updated with the latest test results
7b56c21 at 2023-11-02T11:16:20.029Z :recycle:

Base automatically changed from fix_layer_livelock_3 to main November 2, 2023 08:06
@jcsp
Copy link
Collaborator

jcsp commented Nov 2, 2023

Looks fine, presuming the e032bb9 commit is the only one that this PR is about

@koivunej koivunej force-pushed the fix_layer_livelock_6 branch from 887189a to 05623a7 Compare November 2, 2023 09:46
@koivunej
Copy link
Member Author

koivunej commented Nov 2, 2023

Looks fine, presuming the e032bb9 commit is the only one that this PR is about

I forgot I had already created a PR on this so you probably reviewed this while a parent PR was merged and before I pushed a rebase (right now). It was supposed to be two commits, one to treat it as an error, second to remove the fixme (it is that way now).

Thanks for review.

@koivunej koivunej enabled auto-merge (squash) November 2, 2023 09:50
@koivunej
Copy link
Member Author

koivunej commented Nov 2, 2023

Failures on Postgres 15

  • test_ts_of_lsn_api: debug

Created #5768.

@koivunej koivunej merged commit 3737fe3 into main Nov 2, 2023
@koivunej koivunej deleted the fix_layer_livelock_6 branch November 2, 2023 11:03
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