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: Fixed append test failures #84

Merged
merged 2 commits into from
Aug 24, 2021
Merged

Conversation

abyss-w
Copy link
Contributor

@abyss-w abyss-w commented Aug 24, 2021

fix: Fixed append test failures

storage.go Outdated

// If the object exists, we should set the offset to the next append position.
headInput := &service.HeadObjectInput{}
headOutput, err := s.bucket.HeadObjectWithContext(ctx, rp, headInput)
Copy link
Contributor

Choose a reason for hiding this comment

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

As described in GSP-134: https://github.com/beyondstorage/go-storage/blob/master/docs/rfcs/134-write-behavior-consistency.md#services-implementations

We need to delete this file instead of update append position.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, you are right, I should delete this object.

@Xuanwo
Copy link
Contributor

Xuanwo commented Aug 24, 2021

Nice work!

@Xuanwo Xuanwo merged commit 19bb7a0 into beyondstorage:master Aug 24, 2021
@abyss-w abyss-w deleted the fix-appender branch August 24, 2021 06:32
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