summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_rep_changes_feed.erl
AgeCommit message (Collapse)Author
2011-04-14Merged revision 1092108 from branch 1.0.xFilipe David Borba Manana
Replicator: retry connection to remote _changes on close This clause was missing. Two different ibrowse errors signal that the connection was closed: sel_conn_closed and connection_closed. The later is received for streaming connections (like those to _changes). git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1092109 13f79535-47bb-0310-9956-ffa450edef68
2011-01-19Merged revision 1060860 from trunkFilipe David Borba Manana
Fix by-doc-IDs pull replication from a CouchDB server version < 1.1.0 Closes COUCHDB-1028 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1060862 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29Ignore closed connection after _changes are downloadedAdam Kocoloski
Closes COUCHDB-993 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1053658 13f79535-47bb-0310-9956-ffa450edef68
2010-11-16Replicator: use the new builtin _doc_ids filter for the by doc IDs replication.Filipe David Borba Manana
This reduces code complexity and allows for continuous by doc IDs replication. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1035780 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16Replicator: deal with 303 HTTP redirects. Closes COUCHDB-918.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1023345 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30Removing ?getv macros.Filipe David Borba Manana
With OTP releases up to R13B03 it's not possible to define a 2 macro functions with the same name and different arities. (Only allowed in R13B04 and R14). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003025 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27Replacing calls to couch_util:get_value with ?getvFilipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001879 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24Upgrading ibrowse from version 1.6.2 to 2.0.1.Filipe David Borba Manana
This version fixes a serious issue regarding streaming of chunked HTTP(S) responses. The issue is that the client occasionally gets blocked or receives a timeout (if inactivity_timeout parameter is given to ibrowse). This fixes part of ticket COUCHDB-491. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1000880 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16Replicator bug fix: properly stop link worker processes to avoid noproc ↵Filipe David Borba Manana
exceptions crashing the replicator's changes feed reader process. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@997547 13f79535-47bb-0310-9956-ffa450edef68
2010-09-14Replicator bug fix: make sure a replication fails when there's a stale ↵Filipe David Borba Manana
connection to a remote DB's _changes. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@997152 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Bug fixes:Filipe David Borba Manana
1) requests to remote /db/_changes were discarding the proxy options; 2) handle redirect code 302 besides 301 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996458 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Bug fix: add missing case for not preserving HTTP basic auth credentials ↵Filipe David Borba Manana
after a redirect for _changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996399 13f79535-47bb-0310-9956-ffa450edef68
2010-09-12Fix previous revision (module prefix not included)Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996293 13f79535-47bb-0310-9956-ffa450edef68
2010-09-12Replicator bug fix: redirect from remote /db/_changes not properly handled ↵Filipe David Borba Manana
(discarded user supplied HTTP Basic auth credentials) git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996292 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28don't require integer seqnums in the changes feed, COUCHDB-838Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@980265 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02trailing whitespace pedantryJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950545 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04use keysearch BIF to search ejson props. Closes COUCHDB-747Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@940708 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01Undo accidental revert. Sorry for the mess SVN acted weird on me. Probably ↵Jan Lehnardt
due to the LDAP infra issues. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917411 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28Revert "Avoid replication task crashes by imporoving timeout handling."Jan Lehnardt
Needs more testing. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917103 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28revert accidental commitJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917102 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28Merge branch 'show-deleted-docs' into trunkJan Lehnardt
* show-deleted-docs: treat deleted docs as nonexistant docs Revert "Avoid replication task crashes by imporoving timeout handling." git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917098 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28Apply fixes for COUCHDB-597 patch.Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@917096 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26Avoid replication task crashes by imporoving timeout handling.Jan Lehnardt
Closes COUCHDB-597. Patch by Randall Leeds. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916868 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26fdmananas patch for filtered replication via COUCHDB-673John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916518 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26_changes response might have completed alreadyAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829920 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26replication client should use inactivity timeout on changes feedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829871 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02replication bugfixes, see COUCHDB-516Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820851 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28we were skipping 1/1000 updates replicating old servers w/o _changesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819436 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21quietly start a new connection if changes feed is closedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817400 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14finish committing my changes adventure. pardon the dust.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814828 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02Support for replication over SSL. Resolves COUCHDB-491Adam Kocoloski
This turned out to be a decent amount of work, since: 1) ibrowse did not use SSL on dedicated connections. Wrote a simplistic patch, will contact Chandru for further discussion. 2) When nginx is used for the SSL wrapper, it wants to buffer the changes feed. Setting "proxy_buffering off" in nginx.conf helps, but some buffering still occurred. Fixed by making couch_rep_changes_feed smart enough to split merged chunks. 3) The Erlang ssl application showed instabilities when used with {active,once}. Switched to the "new implementation" using {ssl_imp, new} and instabilities disappeared. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810350 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25fix a process leak in local changes feed consumerAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807477 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25disable gen_server timeouts for internal replication processesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807473 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24also follow 302 for _changes feedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807345 13f79535-47bb-0310-9956-ffa450edef68
2009-08-23heartbeat bugfix for continuous replication from remote sourceAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@806918 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18continuous _changes are now newline-delimited JSON Objects (no commas)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@805430 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11fix pull replication w/o _changes (for 0.9.x remote sources)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@803192 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10new replicator using _changes feed for continuous replicationAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802888 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08update rep_changes_feed to use feed=continuous and rep_httpcAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@802416 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24reassemble split chunks in changes feed, add all() exportAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@797553 13f79535-47bb-0310-9956-ffa450edef68
2009-07-19oops, bug in r795297 (listen for local update notifications)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@795641 13f79535-47bb-0310-9956-ffa450edef68
2009-07-18listen for local update notifications when continuous=trueAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@795297 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16second cut at _changes feed consumer. still not used by replicatorAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794851 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16first cut at _changes feed consumer. not yet used by replicationAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@794848 13f79535-47bb-0310-9956-ffa450edef68