[zmq] Don't use assertions in receive message

Bug #1558601 reported by Oleksii Zamiatin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Undecided
Oleksii Zamiatin

Bug Description

When consumer receives wrong message (message format is broken or unsupported)
correct behavior is to report an error and drop the message rather than server side unrecoverable failure (which assertions currently may cause).

Fix the logic, stick to the behavior described above.

Tags: zmq
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (master)

Fix proposed to branch: master
Review: https://review.openstack.org/309334

Changed in oslo.messaging:
assignee: nobody → Oleksii Zamiatin (ozamiatin)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.messaging (master)

Change abandoned by Oleksii Zamiatin (<email address hidden>) on branch: master
Review: https://review.openstack.org/309334
Reason: Fixed in another patch

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

Reviewed: https://review.openstack.org/308653
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=b5955b6ca938bfccfeefb37062bb5ff81c8895a4
Submitter: Jenkins
Branch: master

commit b5955b6ca938bfccfeefb37062bb5ff81c8895a4
Author: ozamiatin <email address hidden>
Date: Thu Apr 21 01:06:39 2016 +0300

    [zmq] Redesign router proxy

    In this change router was redesigned in a way most
    appropriate for routing concept of zmq.ROUTER socket.

    DEALER(cli)-ROUTER(proxy)-DEALER(srv) instead of
    DEALER-ROUTER-DEALER-ROUTER (3 layers instead of 4)

    The main reason is to use zmq.DEALER identity in message
    routing. For this reason DealerConsumer was introduced
    server-side. RouterConsumer is left for peer-to-peer
    DEALER-ROUTER deployment option.

    Also handled assertions in receive-methods in order
    to not stop server when received message with wrong format.

    Change-Id: If25edf500fa8d220d4233bb13d67121824e841c6
    Closes-Bug: #1558601
    Related-Bug: #1555007

Changed in oslo.messaging:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/oslo.messaging 5.1.0

This issue was fixed in the openstack/oslo.messaging 5.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.