Race condition in cluster-show

Bug #1643002 reported by Peter Stachowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
High
Peter Stachowski

Bug Description

There is a race condition in showing a cluster wherein the server gets the list of instances from the db and then iterates over the list to get the server information. If a shrink operation is in progress, it can happen that one of the instances is no longer present when trying to retrieve the server info, and this causes the show command to throw a NotFound error. This needs to be addressed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
assignee: nobody → Peter Stachowski (peterstac)
importance: Undecided → High
milestone: none → next
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/399686
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=1b114c873560620c5ab95921a61749c50e2ebd2a
Submitter: Jenkins
Branch: master

commit 1b114c873560620c5ab95921a61749c50e2ebd2a
Author: Peter Stachowski <email address hidden>
Date: Fri Nov 18 11:42:56 2016 -0500

    Fix race condition in cluster-show

    There is a race condition in showing a cluster wherein the
    server gets the list of instances from the db and then iterates
    over the list to get the server information. If a shrink
    operation is in progress, it can happen that one of the
    instances is no longer present when trying to retrieve
    the server info, and this causes the show command to throw
    a NotFound error.

    This is now trapped and the 'missing' server excluded from the list.

    Change-Id: I54edc4acac09ca2278f525c08ad0d87576f0549e
    Closee-Bug: 1643002

Changed in trove:
status: New → Fix Released
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.