Permalink
Switch branches/tags
Commits on Jan 16, 2017
  1. Merge pull request #173 from cloudant/80794-nopass-filter

    Handle no_pass message when limit is 0
    rnewson committed on GitHub Jan 16, 2017
  2. Handle no_pass message when limit is 0

    A view query that uses both a filter and a limit value can appear to
    'hang' because the workers continue to run even after the number of
    requested items have been returned, as workers that find no more
    matches return 'no_pass' messages not 'change' messages, and thus the
    short-circuiting code is never activated.
    
    COUCHDB-3269
    rnewson committed Jan 9, 2017
Commits on Jun 27, 2016
  1. Merge pull request #171 from cloudant/68486-handle-null-docs-in-all-d…

    …ocs-post
    
    Emit error row for a null doc id in POSTs to _all_docs
    nickva committed on GitHub Jun 27, 2016
Commits on Jun 20, 2016
  1. Emit error row for a null doc id in POSTs to _all_docs

    This is compatible behavior with CouchDB 1.x
    
    BugzID: 68486
    Jira: COUCHDB-3039
    nickva committed Jun 17, 2016
Commits on Mar 10, 2016
Commits on Mar 2, 2016
  1. Merge pull request #168 from cloudant/58187-dont-send-ddocs-over-the-…

    …wire
    
    Allow rpc changes requests to fetch ddoc from local cache
    chewbranca committed Mar 2, 2016
Commits on Feb 26, 2016
Commits on Jan 26, 2016
  1. Merge pull request #160 from cloudant/44287-fix-shard-move-replacemen…

    …t-in-changes
    
    Use the correct sequence for shard replacement
    davisp committed Jan 26, 2016
Commits on Jan 22, 2016
  1. Merge pull request #170 from cloudant/59496-backport-dbexist-check

    [backport] Check if db exists before creating
    rnewson committed Jan 22, 2016
Commits on Jan 21, 2016
  1. [backport] Check if db exists before creating

    Should help with clients which always try to
    create db (PUT /db), then handle a 412 response
    if exists.
    
    dbnext issue & pr:
    
     https://issues.apache.org/jira/browse/COUCHDB-2819
     cloudant/couchdb-fabric@61fbb94
    
    BugzID: 59496
    
    (Related to customer support ticket BugzID: 59106)
    nickva committed Jan 21, 2016
  2. Merge pull request #169 from cloudant/58341-epoch-last-seq

    Add owner of shard to last_seq of changes query
    sagelywizard committed Jan 21, 2016
  3. Add owner of shard to last_seq of changes query

    Prior to this commit, there was a bug where the response of a changes
    query would include epoch information for every change, but not for the
    last sequence. Subsequent shard changes queries would rewind from zero
    if the last_seq field was used in the clustered changes query and any
    shard had previously been moved.
    
    BugzID: 58341
    sagelywizard committed Jan 15, 2016
Commits on Aug 20, 2015
  1. Don't delay attachment uploads

    This was only for the R14B01 -> 17.5 hop, and that's
    in the past.
    rnewson committed Aug 20, 2015
Commits on Aug 8, 2015
  1. Merge pull request #167 from cloudant/50369-add-metric-for-fabric-wor…

    …ker-timeout
    
    Added counter metric for fabric-worker-timeout.
    dbgreen committed Aug 8, 2015
  2. Added counter metric for fabric-worker-timeout.

    This is being done as a good indicator for when mspot is
    having issues.  An alert threshold will be set in
    centinela.
    
    BugzID: 50369
    Bryan Green committed Aug 8, 2015
Commits on Jul 22, 2015
  1. Revert "Pass MFA instead of function"

    This reverts commit 7084cee.
    rnewson committed Jul 22, 2015
  2. Merge pull request #166 from cloudant/49742-delay-attachment-uploads

    Delay attachment uploads if upgrade is in progress
    rnewson committed Jul 22, 2015
  3. Delay attachment uploads if upgrade is in progress

    This avoids badsig errors when the anonymous functions in
    fabric_doc_attachments do not match.
    
    BugzID: 49742
    rnewson committed Jul 22, 2015
Commits on Jul 20, 2015
  1. Merge pull request #165 from cloudant/49513-remove-anon-fun

    Pass MFA instead of fun
    rnewson committed Jul 20, 2015
  2. Pass MFA instead of function

    This avoids passing a reference to an anonymous function between
    nodes. During upgrades (of the erlang VM version, say) a badfun would
    result if the checksum of the BEAM files are different.
    
    BugzID: 49513
    rnewson committed Jul 20, 2015
Commits on Jun 26, 2015
  1. same twig as parent

    rnewson committed Jun 26, 2015
  2. bump meck

    rnewson committed Jun 26, 2015
Commits on Apr 13, 2015
  1. Merge pull request #162 from cloudant/erlang-17-compatibility

    export dbname/1
    rnewson committed Apr 13, 2015
Commits on Apr 10, 2015
  1. export dbname/1

    BugzID: 45853
    rnewson committed Apr 9, 2015
Commits on Apr 1, 2015
  1. Merge pull request #161 from cloudant/45762-changes-epoch

    Add ability to gracefully terminate existing changes feeds
    rnewson committed Apr 1, 2015
  2. Add ability to gracefully terminate existing changes feeds

    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
    rnewson committed Mar 29, 2015
Commits on Feb 11, 2015
  1. Use the correct sequence for shard replacement

    The call to unpack the since sequence for _changes incorrectly filtered
    the value for any shard that didn't exist. This means that any shard
    that was moved ended up requiring a complete rescan which is a bug. This
    just sets the update sequence to the range of the shard being replaced
    rather than zero.
    
    BugzID: 44287
    davisp committed Feb 11, 2015
Commits on Dec 5, 2014
  1. Merge pull request #158 from cloudant/17500-open_revs-true-when-no-do…

    …cument
    
    Exit early when there is a quorum but list of docs is empty
    iilyak committed Dec 5, 2014
  2. Exit early when there is a quorum but list of docs is empty

    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
    iilyak committed Dec 5, 2014
Commits on Dec 1, 2014
  1. Return unauthorized error if encountered on any shard

    Hot upgrade friendly version
    rnewson committed Dec 1, 2014
  2. Revert "Return unauthorized error if encountered on any shard"

    This reverts commit 3d32810.
    rnewson committed Dec 1, 2014
Commits on Nov 20, 2014
  1. Merge pull request #157 from cloudant/12933-access-to-full-doc-info

    Provide an access to a document info
    eiri committed Nov 20, 2014
  2. Provide an access to a document info

    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
    eiri committed Nov 11, 2014
Commits on Oct 29, 2014
  1. Return unauthorized error if encountered on any shard

    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
    rnewson committed with mikewallace1979 Sep 30, 2014