summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cleaning up console logsAPI-url-docssuelockwood2013-10-102-3/+2
|
* Adding documentation to the models/collectionssuelockwood2013-10-0717-33/+57
|
* api url docs fixsuelockwood2013-10-049-15/+28
|
* add my-first-couchdb-plugin skeleton plugin & guideJan Lehnardt2013-10-036-0/+227
|
* Add note about COUCHDB-1901 to changelog.Dirkjan Ochtman2013-10-031-0/+2
|
* Fix changelog formatting, order.Dirkjan Ochtman2013-10-031-8/+8
|
* Merge branch '1901-atomic-multipart-retries' of ↵Dirkjan Ochtman2013-10-032-36/+133
|\ | | | | | | | | | | https://github.com/apache/couchdb Merged after r+ from rnewson on IRC, general trustworthiness of process.
| * 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
* | [doc] fix commit refJan Lehnardt2013-10-031-1/+1
| |
* | Fix build warnings.Alexander Shorin2013-10-032-11/+7
| |
* | Fix broken reference to config option.Alexander Shorin2013-10-031-2/+2
| |
* | update referenceJan Lehnardt2013-10-031-2/+2
| |
* | reference plugins in exprimental featuresJan Lehnardt2013-10-031-0/+8
| |
* | update changelogJan Lehnardt2013-10-031-4/+15
| |
* | Merge branch '1888-fix-user-fields-disabled-for-admins'Jan Lehnardt2013-10-032-10/+33
|\ \ | | | | | | | | | | | | * 1888-fix-user-fields-disabled-for-admins: admins can always read all doc fields, regardless of public_fields
| * | admins can always read all doc fields, regardless of public_fields1888-fix-user-fields-disabled-for-adminsJan Lehnardt2013-10-032-10/+33
| | | | | | | | | | | | Closes COUCHDB-1888
* | | Merge branch '1425-fix-graceful-surrogate-handling'Jan Lehnardt2013-10-032-13/+17
|\ \ \ | | | | | | | | | | | | | | | | * 1425-fix-graceful-surrogate-handling: Handle invalid UTF-8 byte sequences gracefully by replacing them with 0xFFFD
| * | | Handle invalid UTF-8 byte sequences gracefully by replacing them with 0xFFFDJan Lehnardt2013-10-022-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CouchDB's Erlang JSON parser allows storing of invalid UTF-8 byte sequences. The Query Server inside CouchDB fails upon encountering these byte sequences. The view process fails for the current batch of document updates. The result is that the view is invariably broken. Only removing the document in question solves this otherwise, but finding that is hard as the `log()` inside the Query Server dies with the invalid byte sequence because our protocol is synchronous and map results an `log()` messages generated therein are submitted together. This patch replaces invalid bytes with the the surrogate chacracter 0xFFFD. Closes COUCHDB-1425. Patch by Sam Rijs <recv@awesan.de> and Paul Davis. Eventually, this should be fixed at the HTTP level, so that no documents with invalid byte sequences can be written to CouchDB. The jiffy encoder we'll get with BigCouch will do that for us. This is a fix for the releases until then.
* | | | remove unused module imports and improved module structure1894-feature-experimental-nodejs-couchjsSven Lito2013-10-036-68/+69
| | | |
* | | | move module exports past function decrarationsSven Lito2013-10-031-8/+10
| | | |
* | | | applied formatting for constancySven Lito2013-10-0310-357/+441
| | | |
* | | | Add 'html/experimental.html' to 'Makefile.am'Klaus Trainer2013-10-031-0/+1
| | | |
* | | | remove user-facing docs from in-src README, point to docsJan Lehnardt2013-10-031-23/+1
| | | |
* | | | prefer install from sourceJan Lehnardt2013-10-031-5/+5
| | | |
* | | | move config to local.iniJan Lehnardt2013-10-032-1/+4
| | | |
* | | | add differences noticeJan Lehnardt2013-10-031-0/+6
| | | |
* | | | remove last extra referenceJan Lehnardt2013-10-031-1/+1
| | | |
* | | | add sandbox.jsJan Lehnardt2013-10-033-0/+45
| | | |
* | | | add files to license.skipJan Lehnardt2013-10-031-0/+2
| | | |
* | | | add license headersJan Lehnardt2013-10-038-85/+79
| | | |
* | | | handle extrasJan Lehnardt2013-10-033-388/+0
| | | |
* | | | rm license file, we have one in hte top levelJan Lehnardt2013-10-031-202/+0
| | | |
* | | | add docsJan Lehnardt2013-10-033-0/+76
| | | |
* | | | configure nodejs view serverJan Lehnardt2013-10-031-0/+1
| | | |
* | | | add couchjs-node from JasonJan Lehnardt2013-10-0313-0/+1290
| | | |
* | | | update license.skip for compiled fauxton imagesJan Lehnardt2013-10-031-0/+1
| | | |
* | | | [docs] re-add plugins dir config sectionJan Lehnardt2013-10-031-2/+4
| | | |
* | | | unlink plugins from Futon & FauxtonJan Lehnardt2013-10-032-3/+3
| | | |
* | | | add license to fauxton addons/plugins.htmlJan Lehnardt2013-10-031-0/+14
| | | |
* | | | fix formattingJan Lehnardt2013-10-031-4/+4
| | | |
* | | | add plugins plugin for FauxtonJan Lehnardt2013-10-036-1/+188
| | | |
* | | | Fire a log_request event when requests are loggedJason Smith (work)2013-10-031-2/+3
| | | |