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

ASF subversion and git services commented on COUCHDB-3326:
----------------------------------------------------------

Commit b7c40dfdba76e86cbb95fd09c9e1eb6bc8267d5a in couchdb's branch 
refs/heads/COUCHDB-3326-clustered-purge-davisp-refactor from [~jiangph]
[ https://gitbox.apache.org/repos/asf?p=couchdb.git;h=b7c40df ]

Fix test failure from test_engine_util:apply_batch/3

   - Fix test failure with below stack
   in function couch_bt_engine:purge_tree_split/1 (src/couch_bt_engine.erl, 
line 712)
   called as 
purge_tree_split({<<"3f9e578d59cb2c2da66839a53b000935">>,<<"0001">>,
   [{0,<<119,160,158,229,152,183,85,80,...>>}]})
   in call from couch_btree:'-query_modify/4-fun-0-'/2 (src/couch_btree.erl, 
line 244)
   in call from lists:map/2 (lists.erl, line 1239)
   in call from couch_btree:query_modify/4 (src/couch_btree.erl, line 242)
   in call from couch_btree:add_remove/3 (src/couch_btree.erl, line 237)
   in call from couch_bt_engine:purge_docs/3 (src/couch_bt_engine.erl, line 469)
   in call from test_engine_util:apply_batch/3 (src/test_engine_util.erl, line 
143)
   in call from test_engine_util:apply_actions/3 (src/test_engine_util.erl, 
line 125)
   **error:function_clause
   output:<<"">>

COUCHDB-3326


> Implement clustered purge API: _purge
> -------------------------------------
>
>                 Key: COUCHDB-3326
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3326
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Database Core, Documentation, HTTP Interface
>            Reporter: Mayya Sharipova
>            Priority: Major
>
> This implements the clustered purge API:
> {code:}
> curl -H 'Content-Type: application/json' -X POST 
> "http://adm:[email protected]:5984/test1/_purge"; -d 
> '{"d1":["3-410e46c04b51b4c3304ed232790a49da", 
> "3-420e46c04b51b4c3304ed232790a35db"],"d2":["2-a39d6d63f29a956ae39930f84dd71ec3"],
>  "d3":["1-bdca7a3ac9503bf6e46d7d7a782e8f03"]}'
> {code}
> Response: status_code 201 or 202
> {code:javascript}
> {
>   "purged": [
>     {
>       "ok": true,             //Quorum was reached, at least W nodes 
> successfully purged doc
>       "id": "d1",
>       "revs": [
>         "3-410e46c04b51b4c3304ed232790a49da",
>        "3-420e46c04b51b4c3304ed232790a35db"
>       ]
>     },
>     {
>       "accepted": true,      //Quorum was NOT reached, but request was 
> accepted
>       "id": "d2",   
>       "revs": [
>         "2-a39d6d63f29a956ae39930f84dd71ec3"
>       ]
>     },
>     {
>       "ok": true,   
>       "id": "d3",
>       "revs": []            //(DocId or Revs missing) OR (Revs are not leaf 
> revisions) 
>     }  ],
>   "purge_seq": 
> "6-g1AAAABMeJzLYWBgYMpgTmHgz8tPSTV2MDQy1zMAQsMckEQiQ5L8____sxKZ4UoMcSrJAgC9PRRl"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to