summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for COUCHDB-13191319-large-headers-are-corruptedAdam Kocoloski2011-10-261-1/+8
|
* Fix retrieval of headers larger than 4kAdam Kocoloski2011-10-261-1/+1
| | | | | | | | | | | | | | | | Our headers start with a <<1>> and then four bytes indicating the length of the header and its checksum. When the header is larger than 4090 bytes it will be split across multiple blocks in the file and will need to be reassembled on read. The reassembly consists of stripping out <<0>> from the beginning of each subsequent block in the remove_block_prefixes/2 function. The bug here is that we tell remove_block_prefixes that we're starting 1 byte into the current block instead of 5, so it ends up removing one good byte from the header and injecting one or more random <<0>>s. Headers larger than 4k are very rare and generally require a view group with a huge number of indexes or indexes with fairly large reductions, which explains why this bug has gone undetected until now.
* Assert couch application starts successfullyFilipe David Manana2011-10-261-1/+1
| | | | | Patch by Matt Goodall. Thanks. Closes COUCHDB-1317.
* Hardcode couchjs binary namePaul Joseph Davis2011-10-232-3/+6
| | | | | | Windows doesn't have the libgen.h header or an easily identified basename function. Instead of playing games we just configure the name with autoconf and run with that.
* Fix JavaScript CLI test runner.Paul Joseph Davis2011-10-201-1/+1
| | | | | Accidentally inverted the logic of a test when patching for newer versions of SpiderMonkey.
* Fix object sealing on sm 1.7.0Robert Newson2011-10-201-1/+1
|
* Minor fixes to link agianst SpiderMonkey trunkPaul Joseph Davis2011-10-183-7/+15
| | | | | | | | | | This patch allows couchjs to link against the SpiderMonkey as it existed in the mercurial hash 59c1e6bdb11 from [1]. This does *not* ensure compatibility with CouchDB as there are other things that will also need to be fixed. Specifically, the anonymous function issue for builtin JS functions. [1] http://hg.mozilla.org/mozilla-central/
* Prevent linking against too new of a SpiderMonkeyPaul Joseph Davis2011-10-181-0/+22
| | | | | | | | | | Versions of SpiderMonkey newer than js185-1.0.0 have removed the JSOPTION_ANONFUNFIX which basically invalidates all CouchDB JavaScript functions ever written. This configure patch prevents the accidental linking to a library that has this new behavior while allowing people to forcefully override the check.
* Fix builtin changes filters with ?descending=trueFilipe David Manana2011-10-182-32/+74
| | | | | | | After a recent optimization (COUCHDB-1288), querying the _changes feed using one of the builtin filters (_doc_ids, _design) with ?descending=true was not producing the correct results anymore. This changes fixes it and adds a test.
* Fix test test/etap/160-vhosts.tFilipe David Manana2011-10-151-29/+10
| | | | It was broken after the vendor property was added.
* restore couch_util:verify call in oauth.Robert Newson2011-10-132-2/+2
|
* Remove duplicated word "the"Filipe David Manana2011-10-121-1/+1
|
* recommend Homebrew over MacPortsJan Lehnardt2011-10-071-2/+4
|
* Revert "Fix function evaluation by newer SpiderMonkey's."Robert Newson2011-10-071-5/+1
| | | | This reverts commit 293ae2236859629a6dabc3727d0ccca977b8a8f8.
* Update CHANGES and NEWS for the 1.1.1 releaseFilipe David Manana2011-10-052-0/+6
|
* update CHANGES and NEWS to include a one line summary for every ticket ↵Robert Newson2011-10-052-0/+36
| | | | resolved in 1.1.1
* Increase test 240-replication-compact pause periodFilipe David Manana2011-10-051-1/+1
| | | | | | The small period of 50ms was causing the test to fail on slower machines, as the source the database compaction didn't finish within 30 seconds.
* Open replicator database in child processFilipe David Manana2011-10-051-4/+7
| | | | This is more correct and less confusing.
* vendor info in welcome message (COUCHDB-1285)Randall Leeds2011-10-043-1/+16
|
* Replicator: configurable # of retries per requestFilipe David Manana2011-10-044-4/+15
| | | | | | Instead of using an hardcoded value of 10, this parameter is now configurable via .ini configuration or per replication in the replication document/object (field "retries_per_request").
* Remove no longer necessary call in replicator dbFilipe David Manana2011-10-041-6/+4
|
* Replicator: update task status more oftenFilipe David Manana2011-10-033-120/+115
| | | | | | | | Instead of having workers report their stats only when they finish a batch, allow them to report them more often so that the replication entry in _active_tasks is updated more often. This avoids giving the wrong idea to applications that the replicator is stuck when workers are processing heavy batches.
* fix couchjs help language and use short optionsRandall Leeds2011-10-023-23/+12
|
* distclean couchjs.1 help2man fileRandall Leeds2011-10-021-5/+5
|
* improve argument parsing in couchjsRandall Leeds2011-10-027-141/+144
| | | | | | | This change makes argument parsing in couchjs more robust: * Removes the need for couchjs script * Adds long options * Makes all the options to couchjs available (fix COUCHDB-893)
* Updated CHANGES and NEWS about the switch to Git.Paul J. Davis2011-10-012-0/+16
| | | | | | Apache CouchDB is now hosted in Git. http://xkcd.com/269/
* fix COUCHDB-648 - _update handler ignores "code"Randall Leeds2011-10-013-8/+33
| | | | | | Test by Christian Carter git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177890 13f79535-47bb-0310-9956-ffa450edef68
* Replicator: update timeout to match the .ini configFilipe David Borba Manana2011-09-301-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177555 13f79535-47bb-0310-9956-ffa450edef68
* Replicator: skip documents with empty IDFilipe David Borba Manana2011-09-301-2/+12
| | | | | | | | | | | | | Due to a bug, older releases allowed the creation of documents with an empty ID, which are impossible to GET therefore making the replicator crash. This change simply skips such documents and logs an error message to inform users. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177548 13f79535-47bb-0310-9956-ffa450edef68
* fix tests after the change on trunk@1177162 .Benoit Chesneau2011-09-301-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177495 13f79535-47bb-0310-9956-ffa450edef68
* Remove usage of http module from etap testsFilipe David Borba Manana2011-09-296-233/+192
| | | | | | | | | | This module is deprecated in OTP R15, which is going to be released by the end of this year. The etap tests now use ibrowse instead. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177459 13f79535-47bb-0310-9956-ffa450edef68
* be nice to the poor http parsersRandall Leeds2011-09-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1177162 13f79535-47bb-0310-9956-ffa450edef68
* Rest of the fix for COUCHDB-1265Paul Joseph Davis2011-09-282-36/+60
| | | | | | | | | | | | | | | | | | As a follow up to COUCHDB-1265 I was missing the fact that after the insertion of a new update_seq into an internal node it is quite possible that a compaction runs before the doc is updated again. This is important because compaction removes information of the largest update seq from the tree itself. The fix is simple to include the update_seq from the #full_doc_info{} record when calculating #doc_info.high_seq. The way to think of this is that it's the maximum value from all known values for the update sequence which can be defined as all values known in the tree or in the full_doc_info record. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176701 13f79535-47bb-0310-9956-ffa450edef68
* Allow CommonJS modules to be an empty string.Paul Joseph Davis2011-09-281-1/+1
| | | | | | | | | | | We were making a typical JavaScript mistake testing a module for truthiness instead of checking that it was undefined. Fixes COUCHDB-1223 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176677 13f79535-47bb-0310-9956-ffa450edef68
* Fix function evaluation by newer SpiderMonkey's.Paul Joseph Davis2011-09-271-1/+5
| | | | | | | | | | | | | | | Found this error using the Debian package for SM 1.8.5 and have since had reports of users seeing it as well. The basic error is that some versions of SpiderMonkey appear to dislike this call to eval: eval("function(){}"); The fix is simply to wrap the function source in parenthesis so that SM is convinced that it knows how to evaluate a function. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176666 13f79535-47bb-0310-9956-ffa450edef68
* close #COUCHDB-1297Benoit Chesneau2011-09-271-1/+1
| | | | | | | make sure we have a binary here. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176648 13f79535-47bb-0310-9956-ffa450edef68
* reflect api changes in couch_api_index. While I'm here, even if theBenoit Chesneau2011-09-271-3/+5
| | | | | | | | module isn't used give it a proper module declaration. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176269 13f79535-47bb-0310-9956-ffa450edef68
* fix typosBenoit Chesneau2011-09-272-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1176267 13f79535-47bb-0310-9956-ffa450edef68
* Fix database compaction crash on retryFilipe David Borba Manana2011-09-241-2/+7
| | | | | | | | | | If the compaction is retried 2 or more times, there's a badmatch when asserting that the number of changes processed equals the number of total changes. This is due to the fact that the task properties were not updated properly once a retry happens. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1175089 13f79535-47bb-0310-9956-ffa450edef68
* Commit the compacted index before returning it.Paul Joseph Davis2011-09-231-0/+1
| | | | | | | | | | | Failing to compact here could cause errors trying to resume a compaction due to timeouts while searching for a header. See COUCHDB-994 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1174984 13f79535-47bb-0310-9956-ffa450edef68
* Change internal atom from val to value.Paul Joseph Davis2011-09-217-52/+52
| | | | | | | | | | | | I tried really hard to think of a reason to keep this as val. But in the end it was just calming my OCD to have atoms almost all the same size. Fixes COUCHDB-1291 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173445 13f79535-47bb-0310-9956-ffa450edef68
* Add test 201-view-group-shutdown.t (COUCHDB-1283)Filipe David Borba Manana2011-09-212-0/+292
| | | | git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173442 13f79535-47bb-0310-9956-ffa450edef68
* Ignore build output for new directories.Paul Joseph Davis2011-09-210-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173440 13f79535-47bb-0310-9956-ffa450edef68
* Remember to provide a 2-arity wrapper to udpate.Paul Joseph Davis2011-09-211-1/+5
| | | | | | | | | Expose the proper API to allow the compactor to use the updater to top off a compaction when the view was udpated during compaction. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173439 13f79535-47bb-0310-9956-ffa450edef68
* Keep the databae open for index compaction.Paul Joseph Davis2011-09-213-7/+10
| | | | | | | | | | | | | Long running index compactions could fail to complete if something was iterating db's due to the underlying db being closed. Seeing as index compaction is non-resumable this prevented index compaction from completing. Fixes COUCHDB-1283 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173435 13f79535-47bb-0310-9956-ffa450edef68
* Disable verbose output for mrview tests.Paul Joseph Davis2011-09-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173431 13f79535-47bb-0310-9956-ffa450edef68
* Efficient implementation of builtin filtersFilipe David Borba Manana2011-09-204-41/+483
| | | | | | | | | | | | | | | Currently, the builtin changes filters "_doc_ids" and "_design" are not very efficient because they fold the entire seq btree and then filter the values by document ID. This implementation avoids that by doing direct lookups against the id btree, and then, for continuous changes requests, it just listens for database update events and does partial seq btree folds. COUCHDB-1288 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1173419 13f79535-47bb-0310-9956-ffa450edef68
* Fix test 240-replication-compact.tFilipe David Borba Manana2011-09-191-20/+9
| | | | | | | | | | Don't check for a progress of 100%. Because the number of documents the test writes is variable, sometimes the progress is below 100% (99, 98 for e.g.) due to integer division truncation. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172423 13f79535-47bb-0310-9956-ffa450edef68
* Update replication task status more oftenFilipe David Borba Manana2011-09-193-7/+29
| | | | | | | | | The task status for a replication is now updated more often. It also avoids the case where the reported progress was greater than 100%. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172418 13f79535-47bb-0310-9956-ffa450edef68
* Replicator: don't use chunked encoding for _bulk_docsFilipe David Borba Manana2011-09-181-18/+26
| | | | | | | | | | | | | Nginx and a few other servers don't like PUT/POST requests without a Content-Length header, making it impossible to do a chunked transfer encoding for these requests. Issue and patch tested by Dale Harvey, thanks. Closes COUCHDB-1286. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172388 13f79535-47bb-0310-9956-ffa450edef68