Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

rgw/sfs: fail gracefully if objref not created #257

Merged
merged 3 commits into from
Nov 23, 2023

Conversation

jecluis
Copy link
Member

@jecluis jecluis commented Nov 23, 2023

It may happen if we conflict in-flight with another thread. Ensure we
just fail gracefully to the client.

Additionally, remove dangling final multipart build files.

Fixes: aquarist-labs/s3gw#820

Signed-off-by: Joao Eduardo Luis <[email protected]>

@jecluis jecluis added kind/bug Something isn't working area/rgw-sfs RGW & SFS related priority/0 Needs to go into the next release or force a patch labels Nov 23, 2023
@jecluis jecluis added this to the v0.24.0 milestone Nov 23, 2023
@jecluis jecluis requested review from tserong and irq0 November 23, 2023 05:59
@jecluis jecluis self-assigned this Nov 23, 2023
tserong
tserong previously approved these changes Nov 23, 2023
Copy link
Member

@tserong tserong left a comment

Choose a reason for hiding this comment

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

Looks sensible to me.

Also, amusingly, I wrote a comment in fsck.sfs last week which said this once picked up a ".m" file, which is a combined multipart upload temp file, prior to it being moved to the final object. No idea how I managed to hit that - it should be really difficult... so I guess I hit one of these failure points in the past, but since your third commit to clean that stuff up, suspect I won't hit it again :-)

irq0
irq0 previously approved these changes Nov 23, 2023
@jecluis jecluis dismissed stale reviews from irq0 and tserong via 70ad559 November 23, 2023 13:59
irq0
irq0 previously approved these changes Nov 23, 2023
@jecluis jecluis dismissed irq0’s stale review November 23, 2023 14:02

The merge-base changed after approval.

irq0
irq0 previously approved these changes Nov 23, 2023
@jecluis jecluis dismissed irq0’s stale review November 23, 2023 14:25

The merge-base changed after approval.

irq0
irq0 previously approved these changes Nov 23, 2023
@jecluis jecluis dismissed irq0’s stale review November 23, 2023 14:36

The merge-base changed after approval.

It may happen if we conflict in-flight with another thread. Ensure we
just fail gracefully to the client.

Fixes: aquarist-labs/s3gw#820

Signed-off-by: Joao Eduardo Luis <[email protected]>
@jecluis jecluis merged commit 70d8c11 into aquarist-labs:s3gw Nov 23, 2023
5 checks passed
@jecluis jecluis deleted the wip-fix-820 branch November 23, 2023 14:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/rgw-sfs RGW & SFS related kind/bug Something isn't working priority/0 Needs to go into the next release or force a patch
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Segfault during multipart complete
3 participants