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.
Reviewed: https:/ /review. openstack. org/399686 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=1b114c87356 0620c5ab95921a6 1749c50e2ebd2a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1b114c873560620 c5ab95921a61749 c50e2ebd2a
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: I54edc4acac09ca 2278f525c08ad0d 87576f0549e
Closee-Bug: 1643002