RuntimeError: dictionary changed size during iteration

Bug #1432966 reported by Li Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Low
Li Ma
oslo.messaging (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When starting heartbeat in matchmaker-redis, keys in matchmaker may be changed during interation and a runtime exception is thrown:

RuntimeError: dictionary changed size during iteration

Li Ma (nick-ma-z)
tags: added: zmq
Changed in oslo.messaging:
assignee: nobody → Li Ma (nick-ma-z)
Changed in oslo.messaging:
status: New → Confirmed
importance: Undecided → Low
Changed in oslo.messaging:
status: Confirmed → In Progress
Li Ma (nick-ma-z)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.messaging (master)

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

commit 72a9984d8f28933fadf0f186bc40cc3454fc9353
Author: Li Ma <email address hidden>
Date: Tue Mar 17 00:07:12 2015 -0700

    Fix changing keys during iteration in matchmaker heartbeat

    When starting heartbeat in matchmaker-redis, keys may be changed
    during iteration and a runtime exception is thrown as follows:

    RuntimeError: dictionary changed size during iteration

    Change-Id: I016a449674619294196055614c62c2856002291c
    Closes-Bug: #1432966

Changed in oslo.messaging:
status: In Progress → Fix Committed
James Page (james-page)
Changed in oslo.messaging (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in oslo.messaging:
milestone: none → 1.8.1
status: Fix Committed → Fix Released
Mehdi Abaakouk (sileht)
Changed in oslo.messaging:
milestone: 1.8.1 → next-liberty
status: Fix Released → Fix Committed
Changed in oslo.messaging:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oslo.messaging - 1.8.1-0ubuntu1

---------------
oslo.messaging (1.8.1-0ubuntu1) vivid; urgency=medium

  * New upstream release for OpenStack Kilo, including enablement
    of RabbitMQ heartbeating for improved connection failure detection
    (LP: #856764):
    - d/p/zmq-redis-fix-topic-registration.patch,
      d/p/disable-zmq-tests.patch: Dropped, included upstream.
    - d/p/zmq-client-pooling.patch: Rebase.
    - d/p/disable-new-executors.patch: Disable hard requirement for
      trollius and aioeventlet executors for vivid release.
    - d/control: Align minimum version requirements with upstream.
  * d/pydist-overrides: Add overrides for new oslo package naming.
  * Misc fixes for zmq driver:
    - d/p/Fix-changing-keys-during-iteration-in-matchmaker-hea.patch:
      Fix changing keys during iteration in matchmaker heartbeat
      (LP: #1432966).
    - d/p/Add-pluggability-for-matchmakers.patch: Add entry points
      for matchmaker drivers (LP: #1291701).
 -- James Page <email address hidden> Mon, 30 Mar 2015 09:52:29 +0100

Changed in oslo.messaging (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/172063

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

Reviewed: https://review.openstack.org/172063
Committed: https://git.openstack.org/cgit/openstack/oslo.messaging/commit/?id=e06c5b822e43e441eee0136fd7ee6e1571b1c97c
Submitter: Jenkins
Branch: stable/kilo

commit e06c5b822e43e441eee0136fd7ee6e1571b1c97c
Author: Li Ma <email address hidden>
Date: Tue Mar 17 00:07:12 2015 -0700

    Fix changing keys during iteration in matchmaker heartbeat

    When starting heartbeat in matchmaker-redis, keys may be changed
    during iteration and a runtime exception is thrown as follows:

    RuntimeError: dictionary changed size during iteration

    Change-Id: I016a449674619294196055614c62c2856002291c
    Closes-Bug: #1432966
    (cherry picked from commit 72a9984d8f28933fadf0f186bc40cc3454fc9353)

tags: added: in-stable-kilo
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.