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: ignore version conflicts in destroy calls #158

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

Unix4ever
Copy link
Member

Add a small reproducer.
Make the destroy code treat not found version as successful deletion.

Add a small reproducer.
Make the destroy code treat not found version as successful deletion.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
@Unix4ever Unix4ever force-pushed the fix-delete-conflicts branch from c678bfb to a316525 Compare July 25, 2024 17:57
@Unix4ever Unix4ever changed the title fix: when Destroy is called in parallel it might end with conflict err fix: ignore version conflicts in destroy calls Jul 25, 2024

var eg errgroup.Group

err := s.Create(ctx, res)
Copy link
Member

Choose a reason for hiding this comment

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

I would probably move this to COSI conformance, as it should pass for all state implementations.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can add it there too. And keep it here

Copy link
Member

Choose a reason for hiding this comment

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

This repo should run all conformance from COSI anyways.

Copy link
Member Author

Choose a reason for hiding this comment

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

ahh, I see.

@Unix4ever
Copy link
Member Author

/m

@talos-bot talos-bot merged commit a316525 into cosi-project:main Jul 25, 2024
13 checks passed
Unix4ever added a commit to Unix4ever/omni that referenced this pull request Jul 25, 2024
See: cosi-project/state-etcd#158

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
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.

3 participants