Releasing a claim not releasing (immediately)
Bug #1210633 reported by
Amit Gandhi
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
Critical
|
Allele Dev |
Bug Description
To Reproduce:
1. POST a new message to the queue
2. POST a claim to claim a message
3. DELETE the claim to release that message
4. GET the list of messages for the queue - notice that the released message is still not in the list of messages in that queue for another worker to claim.
Expected Behavior:
The released message should be in the list of messages (include_claimed = false).
Changed in marconi: | |
status: | New → Confirmed |
Changed in marconi: | |
importance: | Undecided → Critical |
Changed in marconi: | |
assignee: | nobody → Alejandro Cabrera (cpp-cabrera) |
Changed in marconi: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's the repro using httpie:
auth=<auth_token>
marconi=<endpoint>
http put $marconi/ v1/queues/ taco x-auth-token:$auth v1/queues/ taco/messages x-auth-token:$auth client-id:1 < messages.json v1/queues/ taco/claims x-auth-token:$auth
http post $marconi/
http post $marconi/
http delete $marconi/<claim location>
Expected behavior:
http get $marconi/ v1/queues/ taco/messages? echo=true x-auth-token:$auth client-id:1
HTTP/1.1 200 OK taco/messages? echo=true
Content-Length: 708
Content-Location: /v1/queues/
Content-Type: application/json; charset=utf-8
{ taco/messages? marker= 5&include_ claimed= true&echo= true",
"taco" : "delicious1" taco/messages/ 5208fbda6f1ecd7 38983ab5f" ,
"taco" : "delicious2" taco/messages/ 5208fbda6f1ecd7 38983ab60" ,
"taco" : "delicious3" taco/messages/ 5208fbda6f1ecd7 38983ab61" ,
"taco" : "delicious4" taco/messages/ 5208fbda6f1ecd7 38983ab62" ,
"taco" : "delicious5" taco/messages/ 5208fbda6f1ecd7 38983ab63" ,
"links": [
{
"href": "/v1/queues/
"rel": "next"
}
],
"messages": [
{
"age": 89,
"body": {
},
"href": "/v1/queues/
"ttl": 200
},
{
"age": 89,
"body": {
},
"href": "/v1/queues/
"ttl": 200
},
{
"age": 89,
"body": {
},
"href": "/v1/queues/
"ttl": 200
},
{
"age": 89,
"body": {
},
"href": "/v1/queues/
"ttl": 200
},
{
"age": 89,
"body": {
},
"href": "/v1/queues/
"ttl": 200
}
]
}
Actual behavior:
HTTP/1.1 204 No Content taco/messages? echo=true
Content-Location: /v1/queues/
# messages.json
[
{
"ttl": 100,
"body" : {
"taco": "delicious1"
}
},
{
"ttl": 100,
"body" : {
"taco": "delicious2"
}
},
{
"ttl": 100,
"body" : {
"taco": "delicious3"
}
},
{
"ttl": 100,
"body" : {
"taco": "delicious4"
}
},
{
"ttl": 100,
"body" : {
"taco": "delicious5"
}
}
]