[ 
https://issues.apache.org/jira/browse/COUCHDB-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661974#action_12661974
 ] 

Bob Dionne commented on COUCHDB-196:
------------------------------------

attached is a simpler test case that exhibits the bug. I stepped into this a 
bit in a debugger. The AdapterFun (line#-288 in couch_httpd_db) is called twice 
with oth records "Z" and "a", which the debug statements already confirm. Not 
too up on the code yet so I'm not sure if it's in 
couch_httpd_view:make_view_fold_fun or couch_db:enum_docs.  Here's what the 
state looks like the first time through:

http://gist.github.com/44721



> Bug in _all_docs: extra incorrect row returned when ?key= is specified
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-196
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-196
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Jason Davies
>         Attachments: collation_ids.diff, collation_test.2.diff, 
> collation_test.diff
>
>
> I first noticed this when attempting to reverse the order of docs displayed 
> in Futon, when listing the design docs.  When the order is reversed, 
> non-design docs are displayed.
> After digging deeper I discovered that querying _all_docs with key="Z" can 
> potentially return two rows, with keys "Z" and "a".
> I will attach a test case to reproduce this.  My locale is set to 
> en_GB.UTF-8, which could be related to this problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to