Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing glance-api hangs in the qpid notifier
Glance-api was able to hang in qpid notifier under heavy image creation load. The ``thread`` and ``select`` modules used by the python-qpid for managing the AMQP connection. When the eventlet was not able to switch between threads because leaded to hang and/or pipe(2) leaking issues. * Monkey patching the ``select`` and ``thread`` modules to be eventlet friendly in order to avoid hanging issues. * The reference to the connection object in the QpidStrategy was replaceable by a concurrent thread, which could cause various issues. Using just local variables for storing connection object in order to avoid concurrent unsafe manipulation. Fixing bug 1229042 Change-Id: I8fa8c4f36892b96d406216cb3c64854a94ca9df7
- Loading branch information
Showing
3 changed files
with
44 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters