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

Queue destroying of linked events when instance of MiqServer destroyed #15995

Conversation

yrudman
Copy link
Contributor

@yrudman yrudman commented Sep 19, 2017

Queue request to destroy linked events should prevent UI to hang when deleting instance of MiqServer

https://bugzilla.redhat.com/show_bug.cgi?id=1446585

\cc @gtanzillo @carbonin

@miq-bot add-label bug, core

@yrudman yrudman force-pushed the use-after_destroy-instead-of-dependent-destroy-in-miq-server branch from 11322a2 to 5e28dad Compare September 20, 2017 17:39
@gtanzillo
Copy link
Member

@yrudman What's the difference in time it takes to destroy the events with this change? Afaict this will still block the UI until all the events are destroyed.

@carbonin
Copy link
Member

I wonder if it would be better to queue a deletion of all the events related to a particular object in the callback rather than actually doing the deletion there.

@yrudman yrudman force-pushed the use-after_destroy-instead-of-dependent-destroy-in-miq-server branch from 5e28dad to a14d2c7 Compare September 20, 2017 18:51
@yrudman yrudman changed the title [WIP] When deleting instance of MiqServer: use after_update: destroy to destroy linked events [WIP] Queue destroying of linked events when instance of MiqServer destroyed Sep 20, 2017
@yrudman yrudman force-pushed the use-after_destroy-instead-of-dependent-destroy-in-miq-server branch from a14d2c7 to 61cb1fe Compare September 20, 2017 19:08
@yrudman yrudman changed the title [WIP] Queue destroying of linked events when instance of MiqServer destroyed Queue destroying of linked events when instance of MiqServer destroyed Sep 20, 2017
@yrudman
Copy link
Contributor Author

yrudman commented Sep 20, 2017

@miq-bot remove-label wip

@miq-bot miq-bot removed the wip label Sep 20, 2017
@miq-bot
Copy link
Member

miq-bot commented Sep 20, 2017

Checked commits yrudman/manageiq@79ca041~...61cb1fe with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🍪

@carbonin carbonin added this to the Sprint 70 Ending Oct 2, 2017 milestone Sep 21, 2017
@carbonin carbonin merged commit 4a7c7bd into ManageIQ:master Sep 21, 2017
@yrudman yrudman deleted the use-after_destroy-instead-of-dependent-destroy-in-miq-server branch September 21, 2017 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants