<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 9:48 AM, Day, Phil <span dir="ltr"><<a href="mailto:philip.day@hp.com" target="_blank">philip.day@hp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> ><br>
> > I think we should aim to /always/ have 3 notifications using a pattern<br>
> > of<br>
> ><br>
> >    try:<br>
> >       ...notify start...<br>
> ><br>
> >       ...do the work...<br>
> ><br>
> >       ...notify end...<br>
> >    except:<br>
> >       ...notify abort...<br>
><br>
> Precisely my viewpoint as well. Unless we standardize on the above, our<br>
> notifications are less than useful, since they will be open to interpretation by<br>
> the consumer as to what precisely they mean (and the consumer will need to<br>
> go looking into the source code to determine when an event actually<br>
> occurred...)<br>
><br>
> Smells like a blueprint to me. Anyone have objections to me writing one up<br>
> for Kilo?<br>
><br>
> Best,<br>
> -jay<br>
><br>
</span>Hi Jay,<br>
<br>
So just to be clear, are you saying that we should generate 2 notification messages on Rabbit for every DB update ?   That feels like a big overkill for me.   If I follow that login then the current state transition notifications should also be changed to "Starting to update task state / finished updating task state"  - which seems just daft and confuisng logging with notifications.<br>
<br>
Sandy's answer where start /end are used if there is a significant amount of work between the two and/or the transaction spans multiple hosts makes a lot more sense to me.   Bracketing a single DB call with two notification messages rather than just a single one on success to show that something changed would seem to me to be much more in keeping with the concept of notifying on key events.<br></blockquote><div><br></div><div>+1 Following similar thinking, Keystone recently dropped a "pending" notification that proceeded a single DB call, which was always followed by either a success or failure notification.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Phil<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div></div>