GET /queues returns duplicated items when pooling enabled
Bug #1490807 reported by
Feilong Wang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
High
|
Feilong Wang |
Bug Description
control plane: sqlalchemy
data plane: redis
zaqar code base: master branch
How to recreate:
1. Create a queue
2. Get /queues
{
"queues": [
{
"href": "/v2/queues/fake",
"name": "fake"
},
{
"href": "/v2/queues/fake",
"name": "fake"
},
{
"href": "/v2/queues/test",
"name": "test"
},
{
"href": "/v2/queues/test",
"name": "test"
}
],
"links": [
{
"href": "/v2/queues?
"rel": "next"
}
]
}
Changed in zaqar: | |
assignee: | nobody → Fei Long Wang (flwang) |
Changed in zaqar: | |
importance: | Undecided → High |
Changed in zaqar: | |
milestone: | none → liberty-rc1 |
status: | Fix Committed → Fix Released |
Changed in zaqar: | |
milestone: | liberty-rc1 → 1.0.0 |
To post a comment you must log in.
The root cause is we're saving the queues data on management plane. So it's no necessary to iterate all the pools to list queues. So if there are X pools, the queues count will be multipuled X times.