xen-org/xen-api — pull request #798 by djs55 (2012-08-01 14:30:51+00:00)
Title: CA-87459: if an event from xapi is received for a VM which has been dest...

...royed, skip and don't pause for 15s

It's possible to have a VM be shutdown and uninstalled before all
events have been processed. If this happens then we log the
event and avoid calling "Thread.delay 15."

When a VM is actually shutdown, we trigger a xapi event re-registration
since we don't need to receive events on it any more.

Signed-off-by: David Scott

Tested by:
1. calling "clone; start; shutdown; uninstall; start" in a loop, to try to trigger the 15s pause: no pause was seen
2. quicktest