You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/06 14:27:10 UTC

[jira] [Commented] (COUCHDB-3044) Changes feed filtered by a view with seq_indexed enabled crashes on clustered interface

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

ASF GitHub Bot commented on COUCHDB-3044:
-----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb-couch/pull/181


> Changes feed filtered by a view with seq_indexed enabled crashes on clustered interface
> ---------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-3044
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3044
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Eric Avdey
>
> When _changes feed got filtered by a view in a design doc with option "seq_indexed" set to true, it is following "fast_view" track in couch_changes:handle_changes/4, which passes the changes enumerator into view's btree instead of database btree and then filters the result by raw docs instead of #doc_info record in fast_view_filter/3. None of this is accounted in fabric's rpc and as a result attempt to filter _changes by a view with "seq_indexed" enabld lead there to following crash:
> {code}
> 15:19:49.066 - {"error":"error","reason":"{function_clause,nil,\n    [{couch_changes,filter,\n         [{db,<28273.395.0>,nil,<<\"1466446662476024\">>,<28273.373.0>,\n              #Ref<28273.0.4.5121>,\n              {db_header,6,12,0,\n                  {49987,{12,0,{size_info,2995,3439}},993},\n                  {50613,12,976},\n                  {422550,[],1061},\n
> ...skip...
> [{file,\"src/couch_changes.erl\"},{line,261}]},\n     {fabric_rpc,changes_enumerator,2,\n         [{file,\"src/fabric_rpc.erl\"},{line,326}]},\n     {couch_btree,stream_kv_node2,8,[{file,\"src/couch_btree.erl\"},{line,783}]},\n     {couch_btree,stream_kp_node,8,[{file,\"src/couch_btree.erl\"},{line,754}]},\n     {couch_btree,fold,4,[{file,\"src/couch_btree.erl\"},{line,220}]},\n     {couch_db,changes_since,5,[{file,\"src/couch_db.erl\"},{line,1244}]},\n     {fabric_rpc,changes,4,[{file,\"src/fabric_rpc.erl\"},{line,82}]},\n     {rexi_server,init_p,3,[{file,\"src/rexi_server.erl\"},{line,139}]}]}"}
> {code}  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)