Hi Sebastien!

Could you tell more about testing environment, couchdb-python version
and code which could reproduce this bug?

--
,,,^..^,,,



On Fri, Sep 23, 2011 at 10:03 PM, Sebastien PASTOR
<[email protected]> wrote:
> Anybody ?
> Maybe i am unclear? Please let me know and thanx for your help.
>
> Seb
>
> On Wed, Sep 21, 2011 at 10:18:07AM +0200, Sebastien PASTOR wrote:
>>  Hi there,
>>
>>  I've written a web service using couchdb-python/couchdb. All is great so 
>> far, until today i ran into
>>  a strange behaviour, you might be able to  explain me ...
>>  One part of my app is providing a list of available IDs to the user. To do 
>> that, i save docs in couchdb, if there is a conflict
>>  i discard that ID because it is already taken if not i keep into my list of 
>> available IDs and present it to the user. He picks one, and
>>  i can safely delete the unused ones.
>>  During that last phase popped-up a not-found exception for one of the ID 
>> while it has been considered as saved.
>>  The ID is pastorseb2, see the logs below :
>>
>>
>>  [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/sebpastor2 409
>>  1 [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/pastorseb1 201
>>  2 [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/callsanta5 201
>>  [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/seb.pastor 409
>>  [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/pastor.seb 409
>>  3 [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/sebpastor6 201
>>  4 [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/pastorseb2 201
>>  [Wed, 21 Sep 2011 07:22:07 GMT] [info] [<0.4691.165>] 127.0.0.1 - - 'PUT' 
>> /app/callsanta%40gmx.com 201
>>  [Wed, 21 Sep 2011 07:22:42 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 'GET' 
>> /app/callsanta%40gmx.com 200
>>
>>  [Wed, 21 Sep 2011 07:22:42 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 'GET' 
>> /app/pastorseb1 200
>>  [Wed, 21 Sep 2011 07:22:42 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 'PUT' 
>> /app/pastorseb1 201
>>  [Wed, 21 Sep 2011 07:22:43 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 'GET' 
>> /app/callsanta5 200>
>>  [Wed, 21 Sep 2011 07:22:43 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 
>> 'DELETE' /app/callsanta5?rev=1-76fce231726f004b153cde534dde664f 200
>>  [Wed, 21 Sep 2011 07:22:43 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 'GET' 
>> /app/sebpastor6 200
>>  [Wed, 21 Sep 2011 07:22:43 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 
>> 'DELETE' /app/sebpastor6?rev=1-76fce231726f004b153cde534dde664f 200
>>  [Wed, 21 Sep 2011 07:22:43 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 'GET' 
>> /app/pastorseb2 404
>>  [Wed, 21 Sep 2011 07:22:43 GMT] [info] [<0.3381.165>] 127.0.0.1 - - 'PUT' 
>> /app/d3ae810e34a549a9ad4798cf4a6ed5d3 201
>>
>>  The IDs i proposed here are /app/pastorseb1, /app/callsanta5, 
>> /app/sebpastor6, /app/pastorseb2. The user wants to keep : /app/pastorseb1 
>> so i should be able to
>>  delete /app/callsanta5, /app/sebpastor6 and /app/pastorseb2 but as you can 
>> see /app/pastorseb2 is 404. How can this be true? it should have been saved 
>> at 07:22:07
>>
>>  Could it be something related to delayed_commits ? (it s set to true). I am 
>> running couchdb 1.1.0.
>>
>>  Thanks in advance for your expert lights on this.
>>
>>
>>  Regards
>>
>>  Sebastien
>>
>

Reply via email to