Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 204 in couchdb-python: KeyError when resolving conflicts
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
couchdb-pyt...@googlecode.com  
View profile   Translate to Translated (View Original)
 More options Nov 16 2011, 10:19 am
From: couchdb-pyt...@googlecode.com
Date: Wed, 16 Nov 2011 15:19:44 +0000
Local: Wed, Nov 16 2011 10:19 am
Subject: Issue 204 in couchdb-python: KeyError when resolving conflicts
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 204 by d...@playcanvas.com: KeyError when resolving conflicts
http://code.google.com/p/couchdb-python/issues/detail?id=204

What steps will reproduce the problem?
1. Run the attached script couch.py

What is the expected output? What do you see instead?
I expect to see conflicts resolved resulting in doc with value=10
Instead I get KeyError: 'http://localhost:5984/keyerror_test/test'
from:
/couchdb/http.py", line 251, in request
     del self.cache[url]

What version of the product are you using? On what operating system?
couchdb-python 0.8, python 2.7, Ubuntu 11.04

Please provide any additional information below.

I can fix this issue by changing lint 251 of http.py to

try:
     del self.cache[url]
except KeyError, e:
     pass

I guess this is a threading issue as self.cache has been altered between  
line 165 and line 251. Is it even valid to use couchdb-python in this way?

Note, I originally discovered this in my Pylons web app when I would get  
this exception during a Mapping.load(db, id) call.

Attachments:
        couch.py  585 bytes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile   Translate to Translated (View Original)
 More options Nov 16 2011, 12:44 pm
From: couchdb-pyt...@googlecode.com
Date: Wed, 16 Nov 2011 17:44:12 +0000
Local: Wed, Nov 16 2011 12:44 pm
Subject: Re: Issue 204 in couchdb-python: KeyError when resolving conflicts

Comment #1 on issue 204 by matt.goo...@gmail.com: KeyError when resolving  
conflicts
http://code.google.com/p/couchdb-python/issues/detail?id=204

couchdb.http.Session does attempt to be thread-safe so I'd definitely say  
you're using it just fine and this is a bug. Thanks for reporting!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 21 2012, 4:32 am
From: couchdb-pyt...@googlecode.com
Date: Fri, 21 Sep 2012 08:32:25 +0000
Local: Fri, Sep 21 2012 4:32 am
Subject: Re: Issue 204 in couchdb-python: KeyError when resolving conflicts
Updates:
        Owner: kxepal

Comment #2 on issue 204 by djc.ochtman: KeyError when resolving conflicts
http://code.google.com/p/couchdb-python/issues/detail?id=204

(No comment was entered for this change.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Sep 21 2012, 8:46 pm
From: couchdb-pyt...@googlecode.com
Date: Sat, 22 Sep 2012 00:46:28 +0000
Local: Fri, Sep 21 2012 8:46 pm
Subject: Re: Issue 204 in couchdb-python: KeyError when resolving conflicts
Updates:
        Labels: Milestone-0.9

Comment #3 on issue 204 by wickedg...@gmail.com: KeyError when resolving  
conflicts
http://code.google.com/p/couchdb-python/issues/detail?id=204

(No comment was entered for this change.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
couchdb-pyt...@googlecode.com  
View profile  
 More options Oct 5 2012, 4:31 pm
From: couchdb-pyt...@googlecode.com
Date: Fri, 05 Oct 2012 20:31:38 +0000
Local: Fri, Oct 5 2012 4:31 pm
Subject: Re: Issue 204 in couchdb-python: KeyError when resolving conflicts
Updates:
        Status: Fixed

Comment #4 on issue 204 by kxepal: KeyError when resolving conflicts
http://code.google.com/p/couchdb-python/issues/detail?id=204

Fixed in r4c4d3ecf896b


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »