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

prepare to move timeouts and cancellation handling to remote_storage #6696

Merged
merged 16 commits into from
Feb 9, 2024

Conversation

koivunej
Copy link
Member

@koivunej koivunej commented Feb 8, 2024

This PR is preliminary cleanups and refactoring around remote_storage for next PR which will move the timeouts and cancellation into remote_storage.

Summary:

  • smaller drive-by fixes
  • code simplification
  • refactor common parts like DownloadError::is_permanent
  • align error types with RemoteStorage::list_* to use more download_retry helper

Cc: #6096

Copy link

github-actions bot commented Feb 8, 2024

2418 tests run: 2299 passed, 0 failed, 119 skipped (full report)


Flaky tests (2)

Postgres 16

  • test_crafted_wal_end[last_wal_record_crossing_segment]: debug

Postgres 14

  • test_pg_regress[None]: debug

Code coverage (full report)

  • functions: 55.0% (11800 of 21465 functions)
  • lines: 82.3% (66029 of 80275 lines)

The comment gets automatically updated with the latest test results
4118408 at 2024-02-09T12:39:53.755Z :recycle:

@koivunej koivunej force-pushed the move_timeout_cancel2 branch from 3e8cf0b to ae72c8a Compare February 9, 2024 07:12
@koivunej koivunej changed the title move timeouts and cancellation handling to remote_storage prepare to move timeouts and cancellation handling to remote_storage Feb 9, 2024
@koivunej koivunej marked this pull request as ready for review February 9, 2024 08:05
@koivunej koivunej requested a review from a team as a code owner February 9, 2024 08:05
@koivunej koivunej requested review from VladLazar and removed request for a team February 9, 2024 08:05
Copy link
Contributor

@VladLazar VladLazar left a comment

Choose a reason for hiding this comment

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

Looks good to me - just nits

libs/remote_storage/src/local_fs.rs Outdated Show resolved Hide resolved
libs/remote_storage/src/local_fs.rs Show resolved Hide resolved
@koivunej koivunej enabled auto-merge (squash) February 9, 2024 12:34
@koivunej koivunej merged commit eb919ca into main Feb 9, 2024
49 checks passed
@koivunej koivunej deleted the move_timeout_cancel2 branch February 9, 2024 12:53
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