-
Notifications
You must be signed in to change notification settings - Fork 463
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
move timeouts and cancellation handling to remote_storage #6697
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
koivunej
commented
Feb 9, 2024
koivunej
commented
Feb 9, 2024
koivunej
commented
Feb 9, 2024
koivunej
commented
Feb 9, 2024
koivunej
commented
Feb 9, 2024
2436 tests run: 2316 passed, 0 failed, 120 skipped (full report)Flaky tests (4)Postgres 15Postgres 14Code coverage (full report)
The comment gets automatically updated with the latest test results
31ade7f at 2024-02-14T21:01:48.911Z :recycle: |
koivunej
commented
Feb 9, 2024
koivunej
commented
Feb 9, 2024
arpad-m
reviewed
Feb 9, 2024
I am unsure why that was even there; we do not need Unpin but also I am surprised it ever was.
it returns an error on the FIRST timeout or cancel, which can be ignored to disable it.
as it will be used as the root cause of anyhow, we have no choice but to do the pointer chasing on queries.
koivunej
force-pushed
the
move_timeout_cancel3
branch
3 times, most recently
from
February 13, 2024 13:57
1005167
to
df74b57
Compare
koivunej
commented
Feb 13, 2024
koivunej
commented
Feb 13, 2024
koivunej
commented
Feb 13, 2024
koivunej
commented
Feb 13, 2024
koivunej
force-pushed
the
move_timeout_cancel3
branch
from
February 13, 2024 15:09
e47e937
to
eb2449b
Compare
arpad-m
reviewed
Feb 13, 2024
arpad-m
reviewed
Feb 13, 2024
this has the minimal changes, no api is changed yet.
Co-authored-by: arpad-m <[email protected]>
Co-authored-by: arpad-m <[email protected]>
I added this method in this PR because of permit issues: timetravel already has a permit, but it was not propagated but I also did not want to do an implementation which required no permit. in code review it was noticed this additional hop was unnecessary and could be melt into delete_oids.
koivunej
force-pushed
the
move_timeout_cancel3
branch
from
February 14, 2024 08:33
eb2449b
to
a2eeb13
Compare
Latest force push got rid of the extra |
koivunej
added a commit
that referenced
this pull request
Feb 21, 2024
As noticed in #6836 some occurances of error conversions were missed in #6697: - `std::io::Error` popped up by `tokio::io::copy_buf` containing `DownloadError` was turned into `DownloadError::Other` - similarly for secondary downloader errors These changes come at the loss of pathname context. Cc: #6096
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cancellation and timeouts are handled at remote_storage callsites, if they are. However they should always be handled, because we've had transient problems with remote storage connections.
trait RemoteStorage
methodsdownload*
,list*
methods there isDownloadError::{Cancelled,Timeout}
anyhow::Error
, it will have root causeremote_storage::TimeoutOrCancel::{Cancel,Timeout}
::is_permanent
equivalent which should be passed tobackoff::retry
timeout
, defaults to 120sstd::io::Error
Fixes: #6096
Closes: #4781