Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 13, 2015
  1. @rnewson
Commits on Apr 10, 2015
  1. @rnewson

    export dbname/1

    rnewson authored
    BugzID: 45853
Commits on Apr 1, 2015
  1. @rnewson

    Merge pull request #161 from cloudant/45762-changes-epoch

    rnewson authored
    Add ability to gracefully terminate existing changes feeds
  2. @rnewson

    Add ability to gracefully terminate existing changes feeds

    rnewson authored
    Calling fabric:end_changes() will cause all current changes
    feeds to gracefully exit without preventing new changes requests from
    starting (unlike maintenance_mode).
    
    BugzID: 45762
Commits on Dec 5, 2014
  1. @iilyak

    Merge pull request #158 from cloudant/17500-open_revs-true-when-no-do…

    iilyak authored
    …cument
    
    Exit early when there is a quorum but list of docs is empty
  2. @iilyak

    Exit early when there is a quorum but list of docs is empty

    iilyak authored
    There is no point to go through repair stage since this set of
    conditions meens that the doc with given id doesn't exists.
    Besides not going through repair process fixes the case when
    we request open_revs=all for non existent document
    
    BugzID: 17500
Commits on Dec 1, 2014
  1. @rnewson

    Return unauthorized error if encountered on any shard

    rnewson authored
    Hot upgrade friendly version
  2. @rnewson
Commits on Nov 20, 2014
  1. @eiri

    Merge pull request #157 from cloudant/12933-access-to-full-doc-info

    eiri authored
    Provide an access to a document info
  2. @eiri

    Provide an access to a document info

    eiri authored
    The functions `get_doc_info/3` and `get_full_doc_info/3` were
    added to API to provide an access to the records `#doc_info{}`
    and `#full_doc_info{}` accordingly.
    
    The functions are re-using `fabric_open_doc` coordinator
    and consequently are the subject of the same read quorum rules
    as `open_doc/3` function. However the info functions do not trigger
    read repair on a not fully complete quorum.
    
    Function `get_full_doc_info/3` accepts an option `deleted` to
    allow to provide an information for a deleted document,
    similar to `open_doc/3`.
    
    FogBugz: 12933
Commits on Oct 29, 2014
  1. @rnewson @mikewallace1979

    Return unauthorized error if encountered on any shard

    rnewson authored mikewallace1979 committed
    We had a mismatch here that caused us to return an unpleasant 500
    status code (after discarding lots of unauthorized events from each
    shard).
    
    The mismatch was introduced in "Teach fabric_util:get_db/2 about maintenance
    mode".
    
    I also simplified the open_shard function and tuple syntax for further
    clarity in this critical section.
    
    This commit is a backport of:
    
     - f657a4c211d9f7e916be6e721a7474216e61a1e5
    
    From:
    
     - https://git-wip-us.apache.org/repos/asf/couchdb-fabric.git
Commits on Sep 30, 2014
  1. @rnewson
Commits on Sep 12, 2014
  1. @rnewson @mikewallace1979

    Don't receive foreign rexi replies

    rnewson authored mikewallace1979 committed
    This commit is a backport of:
    
     - d87ee0db917d091d11cd68fd35b7b2724ec03860
    
    From:
    
     - https://git-wip-us.apache.org/repos/asf/couchdb-fabric.git
Commits on Sep 11, 2014
  1. @mikewallace1979

    Merge pull request #156 from cloudant/34360-teach-fabric-get_db-about…

    mikewallace1979 authored
    …-maintenance-mode
    
    Teach fabric_util:get_db/2 about maintenance mode
  2. @mikewallace1979

    Teach fabric_util:get_db/2 about maintenance mode

    mikewallace1979 authored
    This commit is a backport of:
    
     - 88ff6d323f904425f5130a237ce712b68ac70dfb
    
    From:
    
     - https://git-wip-us.apache.org/repos/asf/couchdb-fabric.git
    
    BugzID: 34360
    
    If the node servicing a request does not have a shard for the db
    involved then fabric_util:get_db/2 can return a shard from a node
    which is in maintenance mode. If that node is a replacement node
    that has not yet been brought into the cluster then the security
    object will be empty.
    
    Because fabric:get_security/2 calls fabric_util:get_db/2 and is in
    the code path for authorizing requests at the HTTP layer, this can
    result in live nodes returning 403s.
    
    This commit replaces an rpc:call/4 with a rexi:cast/4 and adds
    a new rpc endpoint in fabric_rpc for opening single shards. This
    uses set_io_priority which will reply with a rexi_EXIT if
    maintenance mode is set.
    
    Closes COUCHDB-2325
Commits on Aug 12, 2014
  1. @davisp

    Merge pull request #141 from cloudant/27061-merge-couchdb-data-size

    davisp authored
    Report new data size entries in info blobs
  2. @davisp

    Report new data size entries in info blobs

    davisp authored
    This consolidates all of the file size information under a single key in
    the info JSON. The previous entries for disk_size and data_size are left
    untouched for backwards compatibility.
    
    BugzId: 27061
Commits on Jul 19, 2014
  1. @sagelywizard

    Merge pull request #144 from cloudant/16742-couch-stats

    sagelywizard authored
    Replace margaret with couch_stats
Commits on Jul 15, 2014
  1. @banjiewen @sagelywizard

    Add meck directives for couch_stats to eunit tests

    banjiewen authored sagelywizard committed
    BugzID: 16742
  2. @banjiewen @sagelywizard

    Replace calls to margaret with calls to couch_stats

    banjiewen authored sagelywizard committed
    Also add a stats_description.cfg file.
    
    BugzID: 16742
Commits on Jun 16, 2014
  1. @rnewson

    Merge pull request #152 from cloudant/31725-since-now

    rnewson authored
    Support since=now
  2. @rnewson

    Support since=now

    rnewson authored
    BugzID: 31725
Commits on May 28, 2014
  1. @mikewallace1979

    Merge pull request #148 from cloudant/26984-log-fabric-timeouts

    mikewallace1979 authored
    Consistently log fabric worker timeouts
  2. @mikewallace1979

    Consistently log fabric worker timeouts

    mikewallace1979 authored
    Write a log line for each worker that did not return a response
    when a fabric request times out. The format of the log line is:
    
        fabric_worker_timeout ENDPOINT,NODE,SHARD_NAME
    
    This is intented to be easily consumable by downstream tools
    (e.g., Splunk).
    
    BugzID: 26984
Commits on May 20, 2014
  1. @rnewson

    Merge pull request #149 from cloudant/28992-fix-get-shard-replacements

    rnewson authored
    Clear worker references for get_shard_replacements
Commits on Mar 13, 2014
  1. @sagelywizard

    Merge pull request #150 from cloudant/28847-set_security-ignore-mm

    sagelywizard authored
    Set non-interactive default for set_security
  2. @sagelywizard

    Set non-interactive default for set_security

    sagelywizard authored
    Prior to this commit, fabric:set_security would default to interactive
    IO priority. This would cause all nodes to set the security header
    except shards on any nodes which were in MM. Subsequent calls to
    fabric:get_security would cause inconsistent security properties to be
    applied to the request. This patch sets a non-interactive default for
    fabric:set_security, which will cause security updates to be applied to
    all nodes regardless of MM by default.
    
    BugzID: 28847
Commits on Mar 12, 2014
  1. @davisp

    Clear worker references for get_shard_replacements

    davisp authored
    This function relies on record equality. If a request passes workers
    that have references defined it would return all copies of the shard
    range incorrectly.
    
    BugzId: 28992
Commits on Feb 18, 2014
  1. @rnewson

    Merge pull request #147 from cloudant/28181-view-ordering

    rnewson authored
    Use couch_view:less_json_ids when comparing view row ids
  2. Use couch_view:less_json_ids when comparing view row ids

    Robert Newson authored
    Fix by @davisp, githubbery by @rnewson.
    
    BugzID: 28181
Commits on Feb 12, 2014
  1. Merge pull request #134 from cloudant/24518-attachment-metadata

    Brian Mitchell authored
    Move attachment code into couch_att
Commits on Jan 31, 2014
  1. @davisp

    Merge pull request #143 from cloudant/27660-fix-db-listener-upgrades

    davisp authored
    Fix fabric_db_update_listener code upgrades
  2. @davisp

    Fix fabric_db_update_listener code upgrades

    davisp authored
    Changes procesess waiting idle for db update messages will never upgrade
    their code. This just adds a timeout before recursing through the module
    exports table to load new code.
    
    BugzId: 27660
Commits on Jan 30, 2014
  1. @banjiewen

    Merge pull request #142 from cloudant/27483-check-io-priority-earlier

    banjiewen authored
    Call set_io_priority/2 before fetching design documents
  2. @banjiewen

    Call set_io_priority/2 before fetching design documents

    banjiewen authored
    This change causes nodes that are in maintenance mode to drop view
    requests earlier than they would otherwise. Without it, calls to
    ddoc_cache:open_doc/3 are being made on nodes that are in maintenance
    mode, with what appears to be undesirable results.
    
    BugzID: 27483
Something went wrong with that request. Please try again.