Add S3ErrorCode to S3BlobStore#12979
Closed
spraza wants to merge 3 commits into
Closed
Conversation
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Collaborator
|
Could mention that this is rdar://173399798 (I believe) |
saintstack
previously approved these changes
Apr 13, 2026
spraza
commented
Apr 13, 2026
| ERROR( backup_does_not_exist, 2319, "Backup does not exist") | ||
| ERROR( backup_not_filterable_with_key_ranges, 2320, "Backup before 6.3 cannot be filtered with key ranges") | ||
| ERROR( backup_not_overlapped_with_keys_filter, 2321, "Backup key ranges doesn't overlap with key ranges filter") | ||
| ERROR( backup_parse_s3_response_failure, 2322, "cannot parse s3 response properly" ) |
Collaborator
Author
There was a problem hiding this comment.
@saintstack in #11965, the code was 2323, because 2322 was used by another error not in this PR. Over here, I used 2322. Please review this part too.
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
saintstack
approved these changes
Apr 13, 2026
| ERROR( backup_does_not_exist, 2319, "Backup does not exist") | ||
| ERROR( backup_not_filterable_with_key_ranges, 2320, "Backup before 6.3 cannot be filtered with key ranges") | ||
| ERROR( backup_not_overlapped_with_keys_filter, 2321, "Backup key ranges doesn't overlap with key ranges filter") | ||
| ERROR( backup_parse_s3_response_failure, 2322, "cannot parse s3 response properly" ) |
neethuhaneesha
approved these changes
Apr 13, 2026
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Contributor
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
gxglass
reviewed
Apr 13, 2026
| return std::string(codeNode->value()); | ||
| } catch (Error e) { | ||
| TraceEvent("BackupParseS3ErrorCodeFailure").errorUnsuppressed(e); | ||
| throw backup_parse_s3_response_failure(); |
Collaborator
There was a problem hiding this comment.
I think this is problematic per the AI. It changes the retry behavior of the caller in a way that is different from today.
if we can't parse the XML just return an empty "" as per various intermediate failures above.
gxglass
reviewed
Apr 13, 2026
| event.suppressFor(60); | ||
| if (!err.present()) { | ||
| event.detail("ResponseCode", r->code); | ||
| std::string s3Error = parseErrorCodeFromS3(r->data.content); |
Collaborator
There was a problem hiding this comment.
A really simple alternative here would be to say
event.detail("Details", r->data.content);
Collaborator
Author
|
Converting to draft for now. We're discussing how to proceed with this PR. |
Contributor
|
#12986 adds the suggested changes on main. |
This file contains hidden or 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
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.

In 7.3, we reverted some backup related changes, but as part of that, also reverted S3 observability. This observability is useful so adding some of it back, specifically
S3ErrorCodeandS3BlobStoreBadRequest.100K: 20260413-204156-praza-4386c6e11f96d348 compressed=True data_size=35381800 fail_fast=10 max_runs=100000 priority=100 sanity=False submitted=20260413-204156 timeout=5400 username=praza
Radar: rdar://173399798
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branchormainif this is the youngest branch)