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 leo read error for delete #713

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Fix leo read error for delete #713

merged 2 commits into from
Nov 10, 2022

Conversation

dacbd
Copy link
Contributor

@dacbd dacbd commented Nov 10, 2022

the delete wasn't syncing back data because of the read:

if t.Read(ctx) == nil {

it would try to check the Image, fail because it was not set, and then bailout from the read and continue to delete resources.

I don't think this should be the permanent solution. I think we should either use smaller parts on the existing interfaces to leo doesn't make unneeded API calls (instead of blank read for the whole task), or have a leo shutdown/close that is better suited for this (natural ending of a task syncing changes) and save delete for cleaning up broken tasks

Closes: #712

@dacbd dacbd requested review from tasdomas and 0x2b3bfa0 November 10, 2022 00:35
@dacbd dacbd self-assigned this Nov 10, 2022
@dacbd dacbd temporarily deployed to automatic November 10, 2022 00:35 Inactive
@dacbd dacbd temporarily deployed to automatic November 10, 2022 00:36 Inactive
@dacbd dacbd temporarily deployed to automatic November 10, 2022 00:36 Inactive
@dacbd dacbd temporarily deployed to automatic November 10, 2022 00:36 Inactive
@dacbd dacbd temporarily deployed to automatic November 10, 2022 00:36 Inactive
@dacbd dacbd merged commit fd4a940 into master Nov 10, 2022
@dacbd dacbd deleted the leo-delete-sync branch November 10, 2022 16:38
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.

leo delete doesn't sync data back?
3 participants