amqpdriver connection pool doesn't work

Bug #1346253 reported by Alexei Kornienko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Undecided
Mehdi Abaakouk

Bug Description

In https://github.com/openstack/oslo.messaging/blob/1.3.0/oslo/messaging/_drivers/amqpdriver.py#L337

we set pooled=False if we have some server_params set.

In init we have https://github.com/openstack/oslo.messaging/blob/1.3.0/oslo/messaging/_drivers/amqpdriver.py#L298
it means that it's always set and connection pool is efficiently useless.

Tags: 1.3.0
tags: added: 1.3.0
Revision history for this message
Mehdi Abaakouk (sileht) wrote :

This have already been fixed in master

It was the desired behavior until the ConnectionPool object can handle multiple connection object.

Not sure it's really a bug, even you want to backport the connection pool fixes from master

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

s/even/unless

Revision history for this message
Alexei Kornienko (alexei-kornienko) wrote :

Cause of this behaviour new connection is opened for each message sent. So for me it looks like a bug

Revision history for this message
Mehdi Abaakouk (sileht) wrote :

Yes the pool are never created in 1.3.0 and this was the desired behavior and since

https://github.com/openstack/oslo.messaging/commit/53b9d741a8f5a2fa6cbaea9e23a3679a6af235a4

It works.

Changed in oslo.messaging:
status: New → Invalid
Mehdi Abaakouk (sileht)
Changed in oslo.messaging:
status: Invalid → Fix Released
assignee: nobody → Mehdi Abaakouk (sileht)
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.