Skip to content

CA-407564: Reintroduce try/with in Xapi_event #6345

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

Closed

Conversation

contificate
Copy link
Contributor

No description provided.

A try-with was accidentally removed by a previous PR, causing failures
when accumulating events for deleted objects.

Signed-off-by: Colin James <colin.barr@cloud.com>
else
events
events
with _ -> events
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to log this? Might want to add a comment why they can be ignored and don't represent a problem.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we want to log it when the kind is not del, when the kind is 'del' I think it is expected that find_get_record would fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or maybe this is happening on mod races, haven't been able to repro this through the python API, but booting/shutting down VMs in parallel causes XenCenter to lose connection quite often

@contificate
Copy link
Contributor Author

We're going to revert the cleanup overall.

@contificate contificate closed this Mar 7, 2025
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.

4 participants