
This patch changes the way creating a claim behaves when the queue does not exist. Instead of returning 404, it returns 204, meaning the claim was not able to find any messages to claim. This was done for two reasons: 1. For eventually-consistent backends, a brand new queue may not appear to exist, so this new semantic allows the driver to just try to grab some messages without checking first whether the queue "exists". 2. For backends like MongoDB that require an extra check to determine whether a queue exists, this removes an extra round trip to the DB in order to perform the operation. Note that the SQLite driver was updated in order to be consistent with the new behavior. Change-Id: Icde4ce493a76ef145e99300b67d8344d5092e38d Partial-Bug: #1218990
Marconi
Message queuing service for OpenStack
Running a local Marconi server with MongoDB
Install MongoDB
Start a MongoDB instance:
mongod
Clone the Marconi repo:
git clone https://github.com/stackforge/marconi.git
cd to your local copy of the repo
Copy the Marconi config files to the directory ~/.marconi:
cp -r marconi/etc/*.conf-sample ~/.marconi/marconi.conf
Find the
[drivers:storage:mongodb]
section in ~/.marconi/marconi.conf and modify the URI to point to your local mongod instance:uri = mongodb://localhost
Run the following so you can see the results of any changes you make to the code, without having to reinstall the package each time:
python setup.py develop
Start the marconi server:
marconi-server
Description
Languages
Python
96.1%
PHP
1.5%
Shell
1.2%
HTML
0.8%
Lua
0.3%