commit | dd02a3938f267716e3479b7162e0b0a4f8ba3d51 | [log] [tgz] |
---|---|---|
author | Tony Sun <tony.sun@cloudant.com> | Wed Jan 25 13:47:00 2017 -0800 |
committer | Tony Sun <tony.sun@cloudant.com> | Wed Jan 25 14:12:47 2017 -0800 |
tree | f3573a9a3689cd0d2c7c093321b2cd352c4bfca7 | |
parent | f9f568138ff24f4769b5047f13f4db7a7f3ce94a [diff] |
Return error when workers crash Currently, when one worker survives in fabric_open_revs, we return that as the response. However, when all workers crash, we still return {ok, []}. This changes the response to an error. COUCHDB-3113
Fabric is a collection of proxy functions for CouchDB operations in a cluster. These functions are used in CouchDB as the remote procedure endpoints on each of the cluster nodes.
For example, creating a database is a straightforward task in CouchDB 1.x, but for a clustered CouchDB, each node that will store a shard for the database needs to receive and execute a fabric function. The node handling the request also needs to compile the results from each of the nodes and respond accordingly to the client.
Fabric is used in conjunction with ‘Rexi’ which is also an application within CouchDB.
Fabric requires R13B03 or higher and can be built with rebar.