summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bubble up missing_stub exceptions for proper retry1901-atomic-multipart-retriesAdam Kocoloski2013-10-021-0/+2
| | | | | | | A missing_stub exception is special in that the replicator retries the request without the atts_since optimmization. COUCHDB-1901
* Be a bit nicer about loggingAdam Kocoloski2013-10-021-1/+9
|
* Simplify doc_streamer initializationAdam Kocoloski2013-10-021-12/+12
| | | | | | | | The unlink at the end is a noop, so we can simplify this to use spawn_link/3 and the fully-exported function call instead of spawn_link/1 and a closure. BugzID: 20822
* Disable automatic retries of streaming writesAdam Kocoloski2013-10-021-2/+6
| | | | | | | | | An automatic retry makes no sense here, as we've already streamed part of the response body from the GET. Disabling the retries bubbles the error up to run_user_fun inside open_doc_revs allows us to retry the whole GET + PUT correctly. BugzID: 20822
* Ensure the att reader learns of a Parser deathAdam Kocoloski2013-10-021-0/+1
|
* Handle open_revs retries at a higher levelAdam Kocoloski2013-10-021-31/+67
| | | | | | | | | | This patch disables the httpc client retries for the request to stream document revisions to the replicator. The retry logic at that level could end up jumbling together response body data from different requests and thoroughly confusing the multipart parser. Moving the retry logic up a level allows us to start fresh each time. BugzID: 21367
* Fix replication deadlock after HTTP retriesPaul J. Davis2013-10-021-3/+33
| | | | | | | | | | | | | An HTTP failure in the open_doc_revs can lead to a replication deadlock if the retry happens while parsing the multipart/mime response. The UserFun callback can end up attempting to PUT a request using an attachment reader from the failed request while the pid that invoked open_doc_revs will never see the started_open_doc_revs message which indicates a retry has happened. This just spawns a middleman process so that the process that invoked open_doc_revs can listen for the response from the user function as well as the started_open_doc_revs message to handle retries appropriately.
* Avoid deadlocking the httpc poolPaul J. Davis2013-10-021-0/+14
| | | | | | | | | The multipart mime parsing code was getting into a state where it would orphan parsers that held onto pool connections. This just adds a monitor to make sure that the parser process dies when the parent dies normally without finishing reading the rest of the parser. BugzID: 16751
* Use latest=true when retrieving revisionsBob Dionne2013-10-022-2/+4
| | | | | | | This allows the replicator to keep up with revisions that may have occured after missing_revs was called. BugzID: 14241
* Revert to checking both files, but give .in priority.Dirkjan Ochtman2013-10-021-1/+4
|
* Make JS test runner work with single fileVolker Mische2013-10-011-1/+1
| | | | | | Commit 9dfddaa7bf30d30c8fbbc4e1cc2bff4dc35dadac broke running the JavaScript test runner with a single file. It just did not run the test.
* Don't start or stop if COUCHDB_NO_START is setVolker Mische2013-10-011-2/+7
| | | | | | The JavaScript test runner should not try to start or stop the CouchDB instance with ./utils/run when COUCHDB_NO_START is set.
* Update build system to deal with disappearance of gentoo section.Dirkjan Ochtman2013-10-011-3/+0
|
* Reorganize index a bit, add more topics.Dirkjan Ochtman2013-10-011-8/+27
|
* Rename Data Replication section to just Replication.Dirkjan Ochtman2013-10-012-4/+4
|
* The Gentoo section doesn't provide any useful information, delete it.Dirkjan Ochtman2013-10-012-30/+0
|
* For consistency, always look at acinclude.m4.in for versions.Dirkjan Ochtman2013-10-011-5/+2
|
* Tweak section subtitles on the index page.Dirkjan Ochtman2013-10-011-10/+10
|
* Language tweaks for http/compaction configuration reference.Dirkjan Ochtman2013-10-012-16/+16
|
* Add configuration domain.Alexander Shorin2013-10-0131-1757/+1624
| | | | | | | | | :config:section:`httpd` to point on specific section. :config:option:`httpd/port` to point on specific option. You have to use section-option pair for that due to clash of option names (ssl and replicator for example). As bonus provides complete configuration reference by section names.
* Fix license check.Alexander Shorin2013-09-281-1/+1
|
* Merge branch '1781-reorganize-and-improve-docs'Alexander Shorin2013-09-28151-8375/+24362
|\
| * Don't run license check for Python bytecode files.1781-reorganize-and-improve-docsAlexander Shorin2013-09-281-0/+3
| |
| * Fix distcheck.Alexander Shorin2013-09-281-0/+1
| |
| * Update license skip.Alexander Shorin2013-09-281-0/+2
| |
| * Import Security chapter from Guide to CouchDB. Describe _users db.Alexander Shorin2013-09-283-0/+529
| | | | | | | | | | | | TODO: Authorization and Database Security parts. COUCHDB-1822
| * Make HTTP domain default one.Alexander Shorin2013-09-2821-89/+89
| |
| * Add notes about multipart/related API requests.Alexander Shorin2013-09-281-0/+150
| | | | | | | | COUCHDB-1168
| * Describe POST /db/_changes and builtin filters.Alexander Shorin2013-09-281-17/+213
| |
| * Prepare for 1.5.0 release.Alexander Shorin2013-09-283-1/+35
| |
| * Add about page with CouchDB license.Alexander Shorin2013-09-283-0/+29
| | | | | | | | While sources are ships with all license bits, documentation artifacts lack of such.
| * Provides short description for the HTTP API reference entries.Alexander Shorin2013-09-283-3/+89
| | | | | | | | | | | | The description is defined within special JSON file instead of markup attributes. There should be way to hack sphinx for this, but currently I don't know how to do this. Hope this will be fixed in nearest future.
| * Stabilize order of HTTP API reference entries.Alexander Shorin2013-09-281-1/+15
| |
| * Normalize API path's params names.Alexander Shorin2013-09-284-24/+24
| |
| * Update Fauxton docs links.Alexander Shorin2013-09-281-7/+7
| |
| * docs: update the updatesDave Cottlehuber2013-09-283-13/+24
| |
| * docs: update api/database sectionDave Cottlehuber2013-09-285-23/+46
| |
| * docs: ensure scope of server administrator is clearDave Cottlehuber2013-09-285-18/+18
| |
| * docs: update changesDave Cottlehuber2013-09-271-23/+30
| |
| * docs: update bulk-apiDave Cottlehuber2013-09-271-9/+25
| |
| * docs: basics.rst extend floating point explanationDave Cottlehuber2013-09-271-6/+16
| |
| * Fix main TOC tree reference.Alexander Shorin2013-09-272-5/+5
| |
| * Limit sections enumeration.Alexander Shorin2013-09-271-1/+1
| |
| * docs: use sphinx automatic version numbers for protocol responsesDave Cottlehuber2013-09-2723-95/+95
| |
| * Improve grammar, text flow in new configuration docs.Dirkjan Ochtman2013-09-275-107/+160
| |
| * Remove duplicate MacPorts instructions.Dirkjan Ochtman2013-09-271-30/+0
| |
| * fix problem when LOCAL_VERSION_RELEASE isn't setDirkjan Ochtman2013-09-271-1/+1
| |
| * Add missed theme's files.Alexander Shorin2013-09-271-0/+2
| |
| * Make main page a bit nicer and friendly.Alexander Shorin2013-09-275-5/+189
| | | | | | | | Looks weird and empty, but we'll fix it later with more content and redesign.
| * Swap maintenance-replication sections.Alexander Shorin2013-09-271-1/+1
| |