<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Looks like a textbook example of a "leaky abstraction" <<a href="http://www.joelonsoftware.com/articles/LeakyAbstractions.html">http://www.joelonsoftware.com/articles/LeakyAbstractions.html</a>> to me.<br><div><br></div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Take care,</div><div><br></div><div>Lorin</div><div>--</div><div>Lorin Hochstein</div><div>Lead Architect - Cloud Services</div><div>Nimbis Services, Inc.</div><div><a href="https://www.nimbisservices.com/">www.nimbisservices.com</a></div><div><br></div></div></span></div></div><br><div><div>On Mar 2, 2012, at 1:35 PM, Joshua Harlow wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<title>Re: [Openstack] eventlet weirdness</title>
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Does anyone else feel that the following seems really “dirty”, or is it just me.<br>
<br>
“adding a few sleep(0) calls in various places in the<br>
Nova codebase (as was recently added in the _sync_power_states()<br>
periodic task) is an easy and simple win with pretty much no ill<br>
side-effects. :)”<br>
<br>
Dirty in that it feels like there is something wrong from a design point of view.<br>
Sprinkling “sleep(0)” seems like its a band-aid on a larger problem imho. <br>
But that’s just my gut feeling.<br>
<br>
<i>:-(<br>
</i><br>
On 3/2/12 8:26 AM, "Armando Migliaccio" <<a href="x-msg://191/Armando.Migliaccio@eu.citrix.com">Armando.Migliaccio@eu.citrix.com</a>> wrote:<br>
<br>
</span></font><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">I knew you'd say that :P<br>
<br>
There you go: <a href="https://bugs.launchpad.net/nova/+bug/944145">https://bugs.launchpad.net/nova/+bug/944145</a><br>
<br>
Cheers,<br>
Armando<br>
<br>
> -----Original Message-----<br>
> From: Jay Pipes [<a href="mailto:jaypipes@gmail.com">mailto:jaypipes@gmail.com</a>]<br>
> Sent: 02 March 2012 16:22<br>
> To: Armando Migliaccio<br>
> Cc: <a href="x-msg://191/openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> Subject: Re: [Openstack] eventlet weirdness<br>
><br>
> On 03/02/2012 10:52 AM, Armando Migliaccio wrote:<br>
> > I'd be cautious to say that no ill side-effects were introduced. I found a<br>
> race condition right in the middle of sync_power_states, which I assume was<br>
> exposed by "breaking" the task deliberately.<br>
><br>
> Such a party-pooper! ;)<br>
><br>
> Got a link to the bug report for me?<br>
><br>
> Thanks!<br>
> -jay<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
Post to : <a href="x-msg://191/openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br>
<br>
</span></font></blockquote>
</div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></body></html>