lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Extra document posted 2 create calls leads to three documents #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get version 0.6 of python-couchdb (I'm using Ubuntu Lucid (alpha))
2. Run the attached code, once to initialize the database
3. Run the attached code a second time with an argument
4. Open the local couchdb to check

What is the expected output? What do you see instead?
I would expect two documents to end up in the couchdb instance, instead
there are three documents. This also works for more documents and after
running the code there is always a document to many in the database. It
seems like the first document is actually posted twice.

What version of the product are you using? On what operating system?
0.6, Ubuntu Lucid 64bit, Python 2.6.4

Original issue reported on code.google.com by bne...@gmail.com on 21 Jan 2010 at 9:12

Attachments:

GoogleCodeExporter commented 8 years ago
Could you try it with 0.6.1, just to be sure?

Original comment by djc.ochtman on 21 Jan 2010 at 9:25

GoogleCodeExporter commented 8 years ago
I've just installed 0.6.1 and it is still a problem there. I decided to update 
the
debian package (I had a problem there[1]). I now have 0.6.1 running and I'm
experiencing the exact same problem.

Maybe there is some kind of buffering/caching problem?

[1] Packaging problem, may deserve it's own report: setup.py build-doc failed 
becaues
doc/conf/epydoc.ini is not distributed and will cause epydoc to error out. In my
package https://launchpad.net/~bneijt/+archive/ppa I decided to disable all
documentation. Please take a short look at that and see if it deserves it's own
bugreport.

I'm on vacation for the upcoming week and will not be able to reply within that 
time.
Best of luck!

Original comment by bne...@gmail.com on 22 Jan 2010 at 11:55

GoogleCodeExporter commented 8 years ago
I fixed the documentation problem in rb20821de0eb2.

Will look at the other problem soon, hopefully (unless someone else beats me to 
it?).

Original comment by djc.ochtman on 22 Jan 2010 at 12:32

GoogleCodeExporter commented 8 years ago
I can't reproduce. Here's what I ran from the interactive interpreter:

>>> import couchdb
>>> couch = couchdb.Server()
>>> couch.create('testing')
<Database 'testing'>
>>> db = couch['testing']
>>> db.create({'first': True})
'e311da7a45c3fe16e18143cfa3ed04b3'
>>> db.create({'second': True})
'3d943a4b748e764ef42d1bb34313bb5c'

That's equivalent to your script, right?

Original comment by djc.ochtman on 22 Jan 2010 at 10:47

GoogleCodeExporter commented 8 years ago
I wanted to be sure, so I ran it with your script as well, but I still only got 
two
documents out of it. Closing this for now, though it'd be swell to know what's 
going
wrong on your side.

Original comment by djc.ochtman on 22 Jan 2010 at 10:50

GoogleCodeExporter commented 8 years ago
I have no idea what went wrong the first times, but with the newest updates
everything seems to work just fine.

Maybe my Ubuntu Lucid Alpha 1 was less stable then I could imagine, who knows. 
I'm
no-longer able to reproduce this bug in my current setup so I consider this 
fixed.

Thanks for the support!

Original comment by bne...@gmail.com on 4 Feb 2010 at 11:12