[openstack-dev] [Oslo] Does ZeroMQ RPCs handle caller side exceptions correctly?

Ray Pekowski pekowski at gmail.com
Mon Jan 28 17:53:35 UTC 2013


On Mon, Jan 28, 2013 at 11:19 AM, Eric Windisch <eric at cloudscaling.com>wrote:

> The primary concern here would be that 'method' isn't in data, which is
> something that is a bit of a concern. I have thought about it, too, because
> we ran into a bug around receiving messages with a missing 'args' key.
> Practically, what would happen here is that it would stacktrace, but since
> process() is wrapped in an eventlet.spawn_n(), there isn't much effect
> other than ugly/bad logging.
>

That is the beauty of the dictionary get() method.  It returns None (be
default) if the key does not exist in the dictionary.  That would eliminate
the stacktrace from happening if the 'method' keyword were missing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130128/16b14ec1/attachment.html>


More information about the OpenStack-dev mailing list