You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2012/08/01 02:28:57 UTC

[Couchdb Wiki] Trivial Update of "Replication" by DaveCottlehuber

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Replication" page has been changed by DaveCottlehuber:
http://wiki.apache.org/couchdb/Replication?action=diff&rev1=45&rev2=46

Comment:
cleanup for 1.2.0

  
  Notice: the request which initiated the replication will fail with error 500 (shutdown).
  
- Starting from CouchDB version 1.2.0 (unreleased at the time of this writing), the original replication object no longer needs to be known. Instead a simple JSON object with the fields '''"replication_id"''' (a string) and '''"cancel"''' (set to the boolean ''true'' value) is enough. The names ''_local_id'' and ''id'' are aliases to ''replication_id''. The replication ID can be obtained from the original replication request (if it's a continuous replication), from '''_active_tasks''' or from the log. Example:
+ Starting from CouchDB version 1.2.0, the original replication object no longer needs to be known. Instead a simple JSON object with the fields '''"replication_id"''' (a string) and '''"cancel"''' (set to the boolean ''true'' value) is enough. The names ''_local_id'' and ''id'' are aliases to ''replication_id''. The replication ID can be obtained from the original replication request (if it's a continuous replication), from '''_active_tasks''' or from the log. Example:
  
  {{{
  $ curl -H 'Content-Type: application/json' -X POST http://localhost:5984/_replicate -d ' {"source": "http://myserver:5984/foo", "target": "bar", "create_target": true, "continuous": true} '
@@ -78, +78 @@

  
  {"source":"http://example.org/example-database","target":"http://admin:password@127.0.0.1:5984/example-database", "continuous":true}
  }}}
- At this time, CouchDB doesn’t remember continuous replications over a server restart. For more info visit http://books.couchdb.org/relax/reference/replication - CouchDB: The Definitive Guide, chapter Replication.
+ CouchDB can persist continuous replications over a server restart. For more, see the {{{_replicator}}} daatabase below.
  
  === Cancelling a continuous replication task ===
  To cancel a continuous replication task, add "cancel":true parameter to JSON, for example:
@@ -136, +136 @@

  
  {"source":"example-database","target":"http://example.org/example-database", "proxy":"http://localhost:8888"}
  }}}
- 
- This feature was introduced in CouchDB 1.0.1, however this release shipped with few bugs for this feature (some were from the bundled third party HTTP client library). This feature should be fully functional as of CouchDB 1.0.2.
  
  See also: